public class DataSourceComponent extends DefaultComponent
For now only the internal Nuxeo JNDI server is supported.
Modifier and Type | Field and Description |
---|---|
static String |
DATASOURCES_XP |
static String |
ENV_CTX_NAME |
Constructor and Description |
---|
DataSourceComponent() |
Modifier and Type | Method and Description |
---|---|
void |
applicationStarted(ComponentContext context)
Notify the component that Nuxeo Framework finished starting all Nuxeo
bundles.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
<T> T |
getAdapter(Class<T> adapter)
Returns an object which is an instance of the given class
associated with this object.
|
int |
getApplicationStartedOrder()
The component notification order for
Component.applicationStarted(org.nuxeo.runtime.model.ComponentContext) . |
boolean |
isStarted() |
void |
registerContribution(Object contrib,
String extensionPoint,
ComponentInstance component) |
void |
unregisterContribution(Object contrib,
String extensionPoint,
ComponentInstance component) |
activate, getLastModified, registerExtension, setLastModified, unregisterExtension
public static final String DATASOURCES_XP
public static final String ENV_CTX_NAME
public void registerContribution(Object contrib, String extensionPoint, ComponentInstance component) throws Exception
registerContribution
in class DefaultComponent
Exception
public void unregisterContribution(Object contrib, String extensionPoint, ComponentInstance component) throws Exception
unregisterContribution
in class DefaultComponent
Exception
public int getApplicationStartedOrder()
Component
Component.applicationStarted(org.nuxeo.runtime.model.ComponentContext)
.
Components are notified in increasing order. Order 1000 is the default order for components that don't care. Order 100 is the repository initialization.
getApplicationStartedOrder
in interface Component
getApplicationStartedOrder
in class DefaultComponent
public boolean isStarted()
public void applicationStarted(ComponentContext context) throws Exception
Component
applicationStarted
in interface Component
applicationStarted
in class DefaultComponent
Exception
public void deactivate(ComponentContext context) throws Exception
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextException
- if an error occurs during activationpublic <T> T getAdapter(Class<T> adapter)
Adaptable
null
if
no such object can be found.getAdapter
in interface Adaptable
getAdapter
in class DefaultComponent
adapter
- the adapter class to look upnull
if this object does not
have an adapter for the given classCopyright © 2014 Nuxeo SA. All rights reserved.