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

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

public class ECPRepositoryManagerFactory
extends Object
implements org.osgi.framework.ServiceFactory<ECPRepositoryManager>

This is the factory for creating the ECPRepositoryManager service.

Author:
neilmack

Constructor Summary
ECPRepositoryManagerFactory()
          default constructor.
 
Method Summary
 ECPRepositoryManager getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<ECPRepositoryManager> registration)
          this method returns the ECPRepositoryManager service for the current session.
 void init()
          initialise the factory.
 void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<ECPRepositoryManager> registration, ECPRepositoryManager 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

ECPRepositoryManagerFactory

public ECPRepositoryManagerFactory()
default constructor.

Method Detail

init

public void init()
initialise the factory.


getService

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

Specified by:
getService in interface org.osgi.framework.ServiceFactory<ECPRepositoryManager>
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<ECPRepositoryManager> registration,
                         ECPRepositoryManager service)
this method is called to unget a service from a service registration.

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


Copyright © 2015. All Rights Reserved.