Package org.eclipse.emf.ecp.core.rap
Class ECPObserverBusFactory
- java.lang.Object
-
- org.eclipse.emf.ecp.core.rap.ECPObserverBusFactory
-
- All Implemented Interfaces:
java.io.Serializable
,org.eclipse.rap.rwt.service.UISessionListener
,org.eclipse.swt.internal.SerializableCompatibility
,org.osgi.framework.PrototypeServiceFactory<ECPObserverBus>
,org.osgi.framework.ServiceFactory<ECPObserverBus>
public class ECPObserverBusFactory extends java.lang.Object implements org.osgi.framework.PrototypeServiceFactory<ECPObserverBus>, org.eclipse.rap.rwt.service.UISessionListener
This is the factory for5 creating the ECPObserverBus service.- Author:
- neilmack
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ECPObserverBusFactory()
default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
beforeDestroy(org.eclipse.rap.rwt.service.UISessionEvent event)
ECPObserverBus
getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<ECPObserverBus> registration)
this method returns the ECPObserverBus service for the current session.void
init()
initialise the factory.void
ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<ECPObserverBus> registration, ECPObserverBus service)
this methodis called to unget a serive from a service registration.
-
-
-
Method Detail
-
init
public final void init()
initialise the factory.
-
getService
public final ECPObserverBus getService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<ECPObserverBus> registration)
this method returns the ECPObserverBus service for the current session. It is called by the OSGI framework.- Specified by:
getService
in interfaceorg.osgi.framework.PrototypeServiceFactory<ECPObserverBus>
- Specified by:
getService
in interfaceorg.osgi.framework.ServiceFactory<ECPObserverBus>
- Parameters:
bundle
- the OSGI bundleregistration
- the service registration- Returns:
- the service
-
ungetService
public void ungetService(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<ECPObserverBus> registration, ECPObserverBus service)
this methodis called to unget a serive from a service registration.- Specified by:
ungetService
in interfaceorg.osgi.framework.PrototypeServiceFactory<ECPObserverBus>
- Specified by:
ungetService
in interfaceorg.osgi.framework.ServiceFactory<ECPObserverBus>
- Parameters:
bundle
- the OSGI bundleregistration
- the service registrationservice
- the observerbus
-
beforeDestroy
public void beforeDestroy(org.eclipse.rap.rwt.service.UISessionEvent event)
- Specified by:
beforeDestroy
in interfaceorg.eclipse.rap.rwt.service.UISessionListener
- See Also:
UISessionListener.beforeDestroy(org.eclipse.rap.rwt.service.UISessionEvent)
-
-