Class ECPProjectManagerFactory

  • All Implemented Interfaces:
    java.io.Serializable, org.eclipse.rap.rwt.service.UISessionListener, org.eclipse.swt.internal.SerializableCompatibility, org.osgi.framework.PrototypeServiceFactory<ECPProjectManager>, org.osgi.framework.ServiceFactory<ECPProjectManager>

    public class ECPProjectManagerFactory
    extends java.lang.Object
    implements org.osgi.framework.PrototypeServiceFactory<ECPProjectManager>, org.eclipse.rap.rwt.service.UISessionListener
    This is the factory for creating the ECPProjectManager service.
    Author:
    neilmack
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void beforeDestroy​(org.eclipse.rap.rwt.service.UISessionEvent event)
      ECPProjectManager getService​(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<ECPProjectManager> registration)
      this method returns the ECPProjectManager service for the current session.
      void init()
      initialise the factory.
      void ungetService​(org.osgi.framework.Bundle bundle, org.osgi.framework.ServiceRegistration<ECPProjectManager> registration, ECPProjectManager service)
      this methodis called to unget a serive from a service registration.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ECPProjectManagerFactory

        public ECPProjectManagerFactory()
        default constructor.
    • Method Detail

      • init

        public final void init()
        initialise the factory.
      • getService

        public ECPProjectManager getService​(org.osgi.framework.Bundle bundle,
                                            org.osgi.framework.ServiceRegistration<ECPProjectManager> registration)
        this method returns the ECPProjectManager service for the current session. It is called by the OSGI framework.
        Specified by:
        getService in interface org.osgi.framework.PrototypeServiceFactory<ECPProjectManager>
        Specified by:
        getService in interface org.osgi.framework.ServiceFactory<ECPProjectManager>
        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<ECPProjectManager> registration,
                                 ECPProjectManager service)
        this methodis called to unget a serive from a service registration.
        Specified by:
        ungetService in interface org.osgi.framework.PrototypeServiceFactory<ECPProjectManager>
        Specified by:
        ungetService in interface org.osgi.framework.ServiceFactory<ECPProjectManager>
        Parameters:
        bundle - the OSGI bundle
        registration - the service registration
        service - the service
      • beforeDestroy

        public void beforeDestroy​(org.eclipse.rap.rwt.service.UISessionEvent event)
        Specified by:
        beforeDestroy in interface org.eclipse.rap.rwt.service.UISessionListener
        See Also:
        UISessionListener.beforeDestroy(org.eclipse.rap.rwt.service.UISessionEvent)