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

Static Public Member Functions

static ConcurrentContext getConcurrentContext ()
 
static Object[] getConfigurableListeners ()
 
static LocalContext getLocalContext ()
 
static LogContext getLogContext ()
 
static Object[] getLogServices ()
 
static SecurityContext getSecurityContext ()
 
static TextContext getTextContext ()
 
static XMLContext getXMLContext ()
 
static XMLInputFactory getXMLInputFactory ()
 
static XMLOutputFactory getXMLOutputFactory ()
 
static boolean initializeRealtimeClasses ()
 

Static Package Attributes

static final ServiceTrackerImpl< ConcurrentContextCONCURRENT_CONTEXT_TRACKER
 
static final ServiceTrackerImpl< Configurable.Listener > CONFIGURABLE_LISTENER_TRACKER
 
static final ServiceTrackerImpl< LocalContextLOCAL_CONTEXT_TRACKER
 
static final ServiceTrackerImpl< LogContextLOG_CONTEXT_TRACKER
 
static final ServiceTrackerImpl< LogService > LOG_SERVICE_TRACKER
 
static final ServiceTrackerImpl< SecurityContextSECURITY_CONTEXT_TRACKER
 
static final ServiceTrackerImpl< TextContextTEXT_CONTEXT_TRACKER
 
static final ServiceTrackerImpl< XMLContextXML_CONTEXT_TRACKER
 
static final ServiceTrackerImpl< XMLInputFactoryXML_INPUT_FACTORY_TRACKER
 
static final ServiceTrackerImpl< XMLOutputFactoryXML_OUTPUT_FACTORY_TRACKER
 

Detailed Description

The OSGi services tracked by the Javolution bundle. When running outside OSGi or when the Javolution bundle is not started the default service implementation is returned.

Definition at line 50 of file OSGiServices.java.

Member Function Documentation

◆ getConcurrentContext()

static ConcurrentContext javolution.osgi.internal.OSGiServices.getConcurrentContext ( )
static

Returns concurrent context services.

Definition at line 74 of file OSGiServices.java.

74  {
75  return (ConcurrentContext)CONCURRENT_CONTEXT_TRACKER.getServices()[0];
76  }

References javolution.osgi.internal.OSGiServices.CONCURRENT_CONTEXT_TRACKER.

Referenced by javolution.context.ConcurrentContext.enter().

Here is the caller graph for this function:

◆ getConfigurableListeners()

static Object [] javolution.osgi.internal.OSGiServices.getConfigurableListeners ( )
static

Returns configurable listener services.

Definition at line 79 of file OSGiServices.java.

79  {
80  return CONFIGURABLE_LISTENER_TRACKER.getServices();
81  }

References javolution.osgi.internal.OSGiServices.CONFIGURABLE_LISTENER_TRACKER.

Referenced by javolution.lang.Configurable< javolution.context.LogContext.Level >.Configurable(), and javolution.lang.Configurable< javolution.context.LogContext.Level >.reconfigure().

Here is the caller graph for this function:

◆ getLocalContext()

static LocalContext javolution.osgi.internal.OSGiServices.getLocalContext ( )
static

Returns local context service.

Definition at line 84 of file OSGiServices.java.

84  {
85  return (LocalContext)LOCAL_CONTEXT_TRACKER.getServices()[0];
86  }

References javolution.osgi.internal.OSGiServices.LOCAL_CONTEXT_TRACKER.

Referenced by javolution.context.LocalContext.enter().

Here is the caller graph for this function:

◆ getLogContext()

static LogContext javolution.osgi.internal.OSGiServices.getLogContext ( )
static

Returns log context service.

Definition at line 89 of file OSGiServices.java.

89  {
90  return (LogContext)LOG_CONTEXT_TRACKER.getServices()[0];
91  }

References javolution.osgi.internal.OSGiServices.LOG_CONTEXT_TRACKER.

Referenced by javolution.context.LogContext.currentLogContext().

Here is the caller graph for this function:

◆ getLogServices()

static Object [] javolution.osgi.internal.OSGiServices.getLogServices ( )
static

Returns OSGi log service.

Definition at line 94 of file OSGiServices.java.

94  {
96  }

References javolution.osgi.internal.ServiceTrackerImpl< C >.getServices(), and javolution.osgi.internal.OSGiServices.LOG_SERVICE_TRACKER.

Referenced by javolution.context.internal.LogContextImpl.log().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getSecurityContext()

static SecurityContext javolution.osgi.internal.OSGiServices.getSecurityContext ( )
static

Returns security context service.

Definition at line 99 of file OSGiServices.java.

99  {
100  return (SecurityContext) SECURITY_CONTEXT_TRACKER.getServices()[0];
101  }

References javolution.osgi.internal.OSGiServices.SECURITY_CONTEXT_TRACKER.

Referenced by javolution.context.SecurityContext.currentSecurityContext().

Here is the caller graph for this function:

◆ getTextContext()

static TextContext javolution.osgi.internal.OSGiServices.getTextContext ( )
static

Returns text context service.

Definition at line 104 of file OSGiServices.java.

104  {
105  return (TextContext)TEXT_CONTEXT_TRACKER.getServices()[0];
106  }

References javolution.osgi.internal.OSGiServices.TEXT_CONTEXT_TRACKER.

Referenced by javolution.text.TextContext.currentTextContext().

Here is the caller graph for this function:

◆ getXMLContext()

static XMLContext javolution.osgi.internal.OSGiServices.getXMLContext ( )
static

Returns xml context service.

Definition at line 109 of file OSGiServices.java.

109  {
110  return (XMLContext)XML_CONTEXT_TRACKER.getServices()[0];
111  }

References javolution.osgi.internal.OSGiServices.XML_CONTEXT_TRACKER.

Referenced by javolution.xml.XMLContext.currentXMLContext().

Here is the caller graph for this function:

◆ getXMLInputFactory()

static XMLInputFactory javolution.osgi.internal.OSGiServices.getXMLInputFactory ( )
static

Returns xml input factory service.

Definition at line 114 of file OSGiServices.java.

114  {
115  return (XMLInputFactory)XML_INPUT_FACTORY_TRACKER.getServices()[0];
116  }

References javolution.osgi.internal.OSGiServices.XML_INPUT_FACTORY_TRACKER.

◆ getXMLOutputFactory()

static XMLOutputFactory javolution.osgi.internal.OSGiServices.getXMLOutputFactory ( )
static

Returns xml output factory service.

Definition at line 119 of file OSGiServices.java.

119  {
120  return (XMLOutputFactory)XML_OUTPUT_FACTORY_TRACKER.getServices()[0];
121  }

References javolution.osgi.internal.OSGiServices.XML_OUTPUT_FACTORY_TRACKER.

◆ initializeRealtimeClasses()

static boolean javolution.osgi.internal.OSGiServices.initializeRealtimeClasses ( )
static

Initializes all real-time classes.

Definition at line 124 of file OSGiServices.java.

124  {
125  Initializer initializer = new Initializer(OSGiServices.class.getClassLoader());
126  initializer.loadClass(MathLib.class);
127  initializer.loadClass(Text.class);
128  initializer.loadClass(TypeFormat.class);
129  initializer.loadClass(Struct.class);
130  initializer.loadClass(FastBitSet.class);
131  initializer.loadClass(FastSortedMap.class);
132  initializer.loadClass(FastSortedSet.class);
133  initializer.loadClass(FastSortedTable.class);
134  initializer.loadClass(Index.class); // Preallocates.
135  initializer.loadClass(Reducers.class);
136  initializer.loadClass(Equalities.class);
137  initializer.loadClass(XMLStreamReaderImpl.class);
138  initializer.loadClass(XMLStreamWriterImpl.class);
139  return initializer.initializeLoadedClasses();
140  }

References javolution.lang.Initializer.initializeLoadedClasses(), and javolution.lang.Initializer.loadClass().

Referenced by javolution.osgi.internal.JavolutionActivator.start().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ CONCURRENT_CONTEXT_TRACKER

final ServiceTrackerImpl<ConcurrentContext> javolution.osgi.internal.OSGiServices.CONCURRENT_CONTEXT_TRACKER
staticpackage
Initial value:
= new ServiceTrackerImpl<ConcurrentContext>(
ConcurrentContext.class, ConcurrentContextImpl.class)

Definition at line 52 of file OSGiServices.java.

Referenced by javolution.osgi.internal.OSGiServices.getConcurrentContext(), javolution.osgi.internal.JavolutionActivator.start(), and javolution.osgi.internal.JavolutionActivator.stop().

◆ CONFIGURABLE_LISTENER_TRACKER

final ServiceTrackerImpl<Configurable.Listener> javolution.osgi.internal.OSGiServices.CONFIGURABLE_LISTENER_TRACKER
staticpackage
Initial value:
= new ServiceTrackerImpl<Configurable.Listener>(
Configurable.Listener.class, ConfigurableListenerImpl.class)

Definition at line 54 of file OSGiServices.java.

Referenced by javolution.osgi.internal.OSGiServices.getConfigurableListeners(), javolution.osgi.internal.JavolutionActivator.start(), and javolution.osgi.internal.JavolutionActivator.stop().

◆ LOCAL_CONTEXT_TRACKER

final ServiceTrackerImpl<LocalContext> javolution.osgi.internal.OSGiServices.LOCAL_CONTEXT_TRACKER
staticpackage
Initial value:
= new ServiceTrackerImpl<LocalContext>(
LocalContext.class, LocalContextImpl.class)

Definition at line 56 of file OSGiServices.java.

Referenced by javolution.osgi.internal.OSGiServices.getLocalContext(), javolution.osgi.internal.JavolutionActivator.start(), and javolution.osgi.internal.JavolutionActivator.stop().

◆ LOG_CONTEXT_TRACKER

final ServiceTrackerImpl<LogContext> javolution.osgi.internal.OSGiServices.LOG_CONTEXT_TRACKER
staticpackage
Initial value:
= new ServiceTrackerImpl<LogContext>(
LogContext.class, LogContextImpl.class)

Definition at line 58 of file OSGiServices.java.

Referenced by javolution.osgi.internal.OSGiServices.getLogContext(), javolution.osgi.internal.JavolutionActivator.start(), and javolution.osgi.internal.JavolutionActivator.stop().

◆ LOG_SERVICE_TRACKER

final ServiceTrackerImpl<LogService> javolution.osgi.internal.OSGiServices.LOG_SERVICE_TRACKER
staticpackage
Initial value:
= new ServiceTrackerImpl<LogService>(
LogService.class, LogServiceImpl.class)

Definition at line 60 of file OSGiServices.java.

Referenced by javolution.osgi.internal.OSGiServices.getLogServices(), javolution.osgi.internal.JavolutionActivator.start(), and javolution.osgi.internal.JavolutionActivator.stop().

◆ SECURITY_CONTEXT_TRACKER

final ServiceTrackerImpl<SecurityContext> javolution.osgi.internal.OSGiServices.SECURITY_CONTEXT_TRACKER
staticpackage
Initial value:
= new ServiceTrackerImpl<SecurityContext>(
SecurityContext.class, SecurityContextImpl.class)

Definition at line 62 of file OSGiServices.java.

Referenced by javolution.osgi.internal.OSGiServices.getSecurityContext(), javolution.osgi.internal.JavolutionActivator.start(), and javolution.osgi.internal.JavolutionActivator.stop().

◆ TEXT_CONTEXT_TRACKER

final ServiceTrackerImpl<TextContext> javolution.osgi.internal.OSGiServices.TEXT_CONTEXT_TRACKER
staticpackage
Initial value:
= new ServiceTrackerImpl<TextContext>(
TextContext.class, TextContextImpl.class)

Definition at line 64 of file OSGiServices.java.

Referenced by javolution.osgi.internal.OSGiServices.getTextContext(), javolution.osgi.internal.JavolutionActivator.start(), and javolution.osgi.internal.JavolutionActivator.stop().

◆ XML_CONTEXT_TRACKER

final ServiceTrackerImpl<XMLContext> javolution.osgi.internal.OSGiServices.XML_CONTEXT_TRACKER
staticpackage
Initial value:
= new ServiceTrackerImpl<XMLContext>(
XMLContext.class, XMLContextImpl.class)

Definition at line 66 of file OSGiServices.java.

Referenced by javolution.osgi.internal.OSGiServices.getXMLContext(), javolution.osgi.internal.JavolutionActivator.start(), and javolution.osgi.internal.JavolutionActivator.stop().

◆ XML_INPUT_FACTORY_TRACKER

final ServiceTrackerImpl<XMLInputFactory> javolution.osgi.internal.OSGiServices.XML_INPUT_FACTORY_TRACKER
staticpackage
Initial value:
= new ServiceTrackerImpl<XMLInputFactory>(
XMLInputFactory.class, XMLInputFactoryImpl.class)

Definition at line 68 of file OSGiServices.java.

Referenced by javolution.osgi.internal.OSGiServices.getXMLInputFactory(), javolution.osgi.internal.JavolutionActivator.start(), and javolution.osgi.internal.JavolutionActivator.stop().

◆ XML_OUTPUT_FACTORY_TRACKER

final ServiceTrackerImpl<XMLOutputFactory> javolution.osgi.internal.OSGiServices.XML_OUTPUT_FACTORY_TRACKER
staticpackage
Initial value:
= new ServiceTrackerImpl<XMLOutputFactory>(
XMLOutputFactory.class, XMLOutputFactoryImpl.class)

Definition at line 70 of file OSGiServices.java.

Referenced by javolution.osgi.internal.OSGiServices.getXMLOutputFactory(), javolution.osgi.internal.JavolutionActivator.start(), and javolution.osgi.internal.JavolutionActivator.stop().


The documentation for this class was generated from the following file:
javolution.osgi.internal.OSGiServices.LOG_CONTEXT_TRACKER
static final ServiceTrackerImpl< LogContext > LOG_CONTEXT_TRACKER
Definition: OSGiServices.java:58
javolution.osgi.internal.OSGiServices.CONCURRENT_CONTEXT_TRACKER
static final ServiceTrackerImpl< ConcurrentContext > CONCURRENT_CONTEXT_TRACKER
Definition: OSGiServices.java:52
javolution.osgi.internal.OSGiServices.CONFIGURABLE_LISTENER_TRACKER
static final ServiceTrackerImpl< Configurable.Listener > CONFIGURABLE_LISTENER_TRACKER
Definition: OSGiServices.java:54
javolution.osgi.internal.OSGiServices.LOG_SERVICE_TRACKER
static final ServiceTrackerImpl< LogService > LOG_SERVICE_TRACKER
Definition: OSGiServices.java:60
javolution.osgi.internal.OSGiServices.XML_INPUT_FACTORY_TRACKER
static final ServiceTrackerImpl< XMLInputFactory > XML_INPUT_FACTORY_TRACKER
Definition: OSGiServices.java:68
javolution.osgi.internal.OSGiServices.XML_OUTPUT_FACTORY_TRACKER
static final ServiceTrackerImpl< XMLOutputFactory > XML_OUTPUT_FACTORY_TRACKER
Definition: OSGiServices.java:70
javolution.osgi.internal.OSGiServices.XML_CONTEXT_TRACKER
static final ServiceTrackerImpl< XMLContext > XML_CONTEXT_TRACKER
Definition: OSGiServices.java:66
javolution.osgi.internal.ServiceTrackerImpl.getServices
Object[] getServices()
Definition: ServiceTrackerImpl.java:45
javolution.osgi.internal.OSGiServices.SECURITY_CONTEXT_TRACKER
static final ServiceTrackerImpl< SecurityContext > SECURITY_CONTEXT_TRACKER
Definition: OSGiServices.java:62
javolution.osgi.internal.OSGiServices.TEXT_CONTEXT_TRACKER
static final ServiceTrackerImpl< TextContext > TEXT_CONTEXT_TRACKER
Definition: OSGiServices.java:64
javolution.osgi.internal.OSGiServices.LOCAL_CONTEXT_TRACKER
static final ServiceTrackerImpl< LocalContext > LOCAL_CONTEXT_TRACKER
Definition: OSGiServices.java:56