Javolution 6.0.0 java
javolution.osgi.internal.JavolutionActivator Class Reference
Inheritance diagram for javolution.osgi.internal.JavolutionActivator:
[legend]
Collaboration diagram for javolution.osgi.internal.JavolutionActivator:
[legend]

Public Member Functions

void start (BundleContext bc) throws Exception
 
void stop (BundleContext bc) throws Exception
 

Private Attributes

ServiceRegistration< XMLInputFactoryxmlInputFactoryRegistration
 
ServiceRegistration< XMLOutputFactoryxmlOutputFactoryRegistration
 

Detailed Description

Javolution OSGi bundle activator.

Author
Jean-Marie Dautelle
Version
6.0, July 21, 2013

Definition at line 24 of file JavolutionActivator.java.

Member Function Documentation

◆ start()

void javolution.osgi.internal.JavolutionActivator.start ( BundleContext  bc) throws Exception

Definition at line 31 of file JavolutionActivator.java.

31  {
32 
33  // Activate services trackers.
34  OSGiServices.CONCURRENT_CONTEXT_TRACKER.activate(bc);
35  OSGiServices.CONFIGURABLE_LISTENER_TRACKER.activate(bc);
36  OSGiServices.LOCAL_CONTEXT_TRACKER.activate(bc);
37  OSGiServices.LOG_CONTEXT_TRACKER.activate(bc);
38  OSGiServices.LOG_SERVICE_TRACKER.activate(bc);
39  OSGiServices.SECURITY_CONTEXT_TRACKER.activate(bc);
40  OSGiServices.TEXT_CONTEXT_TRACKER.activate(bc);
41  OSGiServices.XML_CONTEXT_TRACKER.activate(bc);
42  OSGiServices.XML_INPUT_FACTORY_TRACKER.activate(bc);
43  OSGiServices.XML_OUTPUT_FACTORY_TRACKER.activate(bc);
44 
45  // Publish XMLInputFactory/XMLOutputFactory services.
46  xmlInputFactoryRegistration = (ServiceRegistration<XMLInputFactory>) bc
47  .registerService(XMLInputFactory.class.getName(),
48  new XMLInputFactoryProvider(), null);
49  xmlOutputFactoryRegistration = (ServiceRegistration<XMLOutputFactory>) bc
50  .registerService(XMLOutputFactory.class.getName(),
51  new XMLOutputFactoryProvider(), null);
52 
53  // Ensures low latency for real-time classes.
54  OSGiServices.initializeRealtimeClasses();
55  }

References javolution.osgi.internal.ServiceTrackerImpl< C >.activate(), javolution.osgi.internal.OSGiServices.CONCURRENT_CONTEXT_TRACKER, javolution.osgi.internal.OSGiServices.CONFIGURABLE_LISTENER_TRACKER, javolution.osgi.internal.OSGiServices.initializeRealtimeClasses(), javolution.osgi.internal.OSGiServices.LOCAL_CONTEXT_TRACKER, javolution.osgi.internal.OSGiServices.LOG_CONTEXT_TRACKER, javolution.osgi.internal.OSGiServices.LOG_SERVICE_TRACKER, javolution.osgi.internal.OSGiServices.SECURITY_CONTEXT_TRACKER, javolution.osgi.internal.OSGiServices.TEXT_CONTEXT_TRACKER, javolution.osgi.internal.OSGiServices.XML_CONTEXT_TRACKER, javolution.osgi.internal.OSGiServices.XML_INPUT_FACTORY_TRACKER, javolution.osgi.internal.OSGiServices.XML_OUTPUT_FACTORY_TRACKER, javolution.osgi.internal.JavolutionActivator.xmlInputFactoryRegistration, and javolution.osgi.internal.JavolutionActivator.xmlOutputFactoryRegistration.

Here is the call graph for this function:

◆ stop()

void javolution.osgi.internal.JavolutionActivator.stop ( BundleContext  bc) throws Exception

Definition at line 57 of file JavolutionActivator.java.

57  {
58  OSGiServices.CONCURRENT_CONTEXT_TRACKER.deactivate(bc);
59  OSGiServices.CONFIGURABLE_LISTENER_TRACKER.deactivate(bc);
60  OSGiServices.LOCAL_CONTEXT_TRACKER.deactivate(bc);
61  OSGiServices.LOG_CONTEXT_TRACKER.deactivate(bc);
62  OSGiServices.LOG_SERVICE_TRACKER.deactivate(bc);
63  OSGiServices.SECURITY_CONTEXT_TRACKER.deactivate(bc);
64  OSGiServices.TEXT_CONTEXT_TRACKER.deactivate(bc);
65  OSGiServices.XML_CONTEXT_TRACKER.deactivate(bc);
66  OSGiServices.XML_INPUT_FACTORY_TRACKER.deactivate(bc);
67  OSGiServices.XML_OUTPUT_FACTORY_TRACKER.deactivate(bc);
68 
69  xmlInputFactoryRegistration.unregister();
70  xmlOutputFactoryRegistration.unregister();
71  }

References javolution.osgi.internal.OSGiServices.CONCURRENT_CONTEXT_TRACKER, javolution.osgi.internal.OSGiServices.CONFIGURABLE_LISTENER_TRACKER, javolution.osgi.internal.ServiceTrackerImpl< C >.deactivate(), javolution.osgi.internal.OSGiServices.LOCAL_CONTEXT_TRACKER, javolution.osgi.internal.OSGiServices.LOG_CONTEXT_TRACKER, javolution.osgi.internal.OSGiServices.LOG_SERVICE_TRACKER, javolution.osgi.internal.OSGiServices.SECURITY_CONTEXT_TRACKER, javolution.osgi.internal.OSGiServices.TEXT_CONTEXT_TRACKER, javolution.osgi.internal.OSGiServices.XML_CONTEXT_TRACKER, javolution.osgi.internal.OSGiServices.XML_INPUT_FACTORY_TRACKER, javolution.osgi.internal.OSGiServices.XML_OUTPUT_FACTORY_TRACKER, javolution.osgi.internal.JavolutionActivator.xmlInputFactoryRegistration, and javolution.osgi.internal.JavolutionActivator.xmlOutputFactoryRegistration.

Here is the call graph for this function:

Member Data Documentation

◆ xmlInputFactoryRegistration

ServiceRegistration<XMLInputFactory> javolution.osgi.internal.JavolutionActivator.xmlInputFactoryRegistration
private

◆ xmlOutputFactoryRegistration

ServiceRegistration<XMLOutputFactory> javolution.osgi.internal.JavolutionActivator.xmlOutputFactoryRegistration
private

The documentation for this class was generated from the following file:
javolution.osgi.internal.JavolutionActivator.xmlOutputFactoryRegistration
ServiceRegistration< XMLOutputFactory > xmlOutputFactoryRegistration
Definition: JavolutionActivator.java:28
javolution.osgi.internal.JavolutionActivator.xmlInputFactoryRegistration
ServiceRegistration< XMLInputFactory > xmlInputFactoryRegistration
Definition: JavolutionActivator.java:27