|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.nuxeo.runtime.AbstractRuntimeService org.nuxeo.runtime.osgi.OSGiRuntimeService
public class OSGiRuntimeService
The default implementation of NXRuntime over an OSGi compatible environment.
Field Summary | |
---|---|
static ComponentName |
FRAMEWORK_STARTED_COMP
|
static java.lang.String |
NAME
|
static java.lang.String |
PROP_CONFIG_DIR
The OSGi application config directory. |
static java.lang.String |
PROP_HOME_DIR
Can be used to change the runtime home directory |
static java.lang.String |
PROP_HOST_ADAPTER
The host adapter. |
static java.lang.String |
PROP_INSTALL_DIR
The OSGi application install directory. |
static java.lang.String |
PROP_NUXEO_BIND_ADDRESS
|
static Version |
VERSION
|
Fields inherited from class org.nuxeo.runtime.AbstractRuntimeService |
---|
REDIRECT_JUL |
Constructor Summary | |
---|---|
OSGiRuntimeService(org.osgi.framework.BundleContext context)
|
|
OSGiRuntimeService(OSGiRuntimeContext runtimeContext,
org.osgi.framework.BundleContext context)
|
Method Summary | |
---|---|
RuntimeContext |
createContext(org.osgi.framework.Bundle bundle)
|
void |
destroyContext(org.osgi.framework.Bundle bundle)
|
org.osgi.framework.Bundle |
findHostBundle(org.osgi.framework.Bundle bundle)
|
void |
frameworkEvent(org.osgi.framework.FrameworkEvent event)
|
org.osgi.framework.Bundle |
getBundle(java.lang.String symbolicName)
|
org.osgi.framework.BundleContext |
getBundleContext()
|
java.io.File |
getBundleFile(org.osgi.framework.Bundle bundle)
OSGi frameworks are using a string Bundle.getLocation() to
identify bundle locations. |
java.util.Map<java.lang.String,org.osgi.framework.Bundle> |
getBundlesMap()
|
ComponentPersistence |
getComponentPersistence()
|
static java.lang.String |
getComponentsList(org.osgi.framework.Bundle bundle)
|
RuntimeContext |
getContext(org.osgi.framework.Bundle bundle)
|
RuntimeContext |
getContext(java.lang.String symbolicName)
|
java.lang.String |
getName()
Gets the name of this runtime service. |
java.lang.String |
getProperty(java.lang.String name,
java.lang.String defValue)
Overrides the default method to be able to include OSGi properties. |
Version |
getVersion()
Gets the version of this runtime service. |
static boolean |
isJBoss4(Environment env)
|
void |
loadProperties(java.io.File file)
|
void |
loadProperties(java.io.InputStream in)
|
void |
loadProperties(java.net.URL url)
|
void |
reloadProperties()
Reread all property files loaded at startup. |
Methods inherited from class org.nuxeo.runtime.AbstractRuntimeService |
---|
expandVars, getAdapterManager, getComponent, getComponent, getComponentInstance, getComponentInstance, getComponentManager, getContext, getDescription, getHome, getProperties, getProperty, getService, getWarnings, isStarted, setHome, setProperty, start, stop, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final ComponentName FRAMEWORK_STARTED_COMP
public static final java.lang.String PROP_HOME_DIR
public static final java.lang.String PROP_INSTALL_DIR
public static final java.lang.String PROP_CONFIG_DIR
public static final java.lang.String PROP_HOST_ADAPTER
public static final java.lang.String PROP_NUXEO_BIND_ADDRESS
public static final java.lang.String NAME
public static final Version VERSION
Constructor Detail |
---|
public OSGiRuntimeService(org.osgi.framework.BundleContext context)
public OSGiRuntimeService(OSGiRuntimeContext runtimeContext, org.osgi.framework.BundleContext context)
Method Detail |
---|
public java.lang.String getName()
RuntimeService
getName
in interface RuntimeService
public Version getVersion()
RuntimeService
getVersion
in interface RuntimeService
public org.osgi.framework.BundleContext getBundleContext()
public org.osgi.framework.Bundle getBundle(java.lang.String symbolicName)
public java.util.Map<java.lang.String,org.osgi.framework.Bundle> getBundlesMap()
public ComponentPersistence getComponentPersistence()
public RuntimeContext createContext(org.osgi.framework.Bundle bundle) throws java.lang.Exception
java.lang.Exception
public void destroyContext(org.osgi.framework.Bundle bundle)
public RuntimeContext getContext(org.osgi.framework.Bundle bundle)
public RuntimeContext getContext(java.lang.String symbolicName)
public static java.lang.String getComponentsList(org.osgi.framework.Bundle bundle)
public void reloadProperties() throws java.lang.Exception
RuntimeService
reloadProperties
in interface RuntimeService
java.lang.Exception
public void loadProperties(java.io.File file) throws java.io.IOException
java.io.IOException
public void loadProperties(java.net.URL url) throws java.io.IOException
java.io.IOException
public void loadProperties(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public java.lang.String getProperty(java.lang.String name, java.lang.String defValue)
getProperty
in interface RuntimeService
getProperty
in class AbstractRuntimeService
name
- the property namedefValue
- the default value to use when the property doesn't
exists
public void frameworkEvent(org.osgi.framework.FrameworkEvent event)
frameworkEvent
in interface org.osgi.framework.FrameworkListener
public org.osgi.framework.Bundle findHostBundle(org.osgi.framework.Bundle bundle)
public java.io.File getBundleFile(org.osgi.framework.Bundle bundle)
RuntimeService
Bundle.getLocation()
to
identify bundle locations.
This method try to convert the bundle location to real file if possible. If this bundle location cannot be converted to a file (e.g. it may be a remote URL), null is returned.
This method works only for bundles that are installed as files on the host file system.
getBundleFile
in interface RuntimeService
getBundleFile
in class AbstractRuntimeService
public static final boolean isJBoss4(Environment env)
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |