org.eclipse.emf.ecp.core.rap
Class ECPProviderRegistryFactory

java.lang.Object
  extended by org.eclipse.emf.ecp.core.rap.ECPProviderRegistryFactory
All Implemented Interfaces:
org.osgi.framework.ServiceFactory<ECPProviderRegistry>

public class ECPProviderRegistryFactory
extends Object
implements org.osgi.framework.ServiceFactory<ECPProviderRegistry>

This is the factory for creating the ECPProviderRegistry service.

Author:
neilmack

Constructor Summary
ECPProviderRegistryFactory()
          default constructor.
 
Method Summary
 ECPProviderRegistry getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<ECPProviderRegistry> registration)
          this method returns the ECPProviderRegistry service for the current session.
 void init()
          initialise the factory.
 void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<ECPProviderRegistry> registration, ECPProviderRegistry service)
          this method is called to unget a service from a service registration.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ECPProviderRegistryFactory

public ECPProviderRegistryFactory()
default constructor.

Method Detail

init

public void init()
initialise the factory.


getService

public ECPProviderRegistry getService(org.osgi.framework.Bundle bundle,
                                      org.osgi.framework.ServiceRegistration<ECPProviderRegistry> registration)
this method returns the ECPProviderRegistry service for the current session. It is called by the OSGI framework.

Specified by:
getService in interface org.osgi.framework.ServiceFactory<ECPProviderRegistry>
Parameters:
bundle - the OSGI bundle
registration - the service registration
Returns:
the service

ungetService

public void ungetService(org.osgi.framework.Bundle bundle,
                         org.osgi.framework.ServiceRegistration<ECPProviderRegistry> registration,
                         ECPProviderRegistry service)
this method is called to unget a service from a service registration.

Specified by:
ungetService in interface org.osgi.framework.ServiceFactory<ECPProviderRegistry>
Parameters:
bundle - the OSGI bundle
registration - the service registration
service - the service


Copyright © 2015. All Rights Reserved.