public class DataSourceComponent extends DefaultComponent
For now only the internal Nuxeo JNDI server is supported.
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,DataSourceDescriptor> |
datasources |
static String |
DATASOURCES_XP |
static String |
ENV_CTX_NAME |
protected Map<String,DataSourceLinkDescriptor> |
links |
protected Context |
namingContext |
protected PooledDataSourceRegistry |
registry |
lastModified| Constructor and Description |
|---|
DataSourceComponent() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDataSource(DataSourceDescriptor contrib) |
protected void |
addDataSourceLink(DataSourceLinkDescriptor contrib) |
void |
applicationStarted(ComponentContext context) |
protected void |
bindDataSource(DataSourceDescriptor descr) |
protected void |
bindDataSourceLink(DataSourceLinkDescriptor descr) |
void |
deactivate(ComponentContext context) |
<T> T |
getAdapter(Class<T> adapter) |
int |
getApplicationStartedOrder() |
boolean |
isStarted() |
void |
registerContribution(Object contrib,
String extensionPoint,
ComponentInstance component) |
protected void |
removeDataSource(DataSourceDescriptor contrib) |
protected void |
removeDataSourceLink(DataSourceLinkDescriptor contrib) |
protected void |
unbindDataSource(DataSourceDescriptor descr) |
protected void |
unbindDataSourceLink(DataSourceLinkDescriptor descr) |
void |
unregisterContribution(Object contrib,
String extensionPoint,
ComponentInstance component) |
activate, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterExtensionpublic static final String DATASOURCES_XP
public static final String ENV_CTX_NAME
protected final Map<String,DataSourceDescriptor> datasources
protected final Map<String,DataSourceLinkDescriptor> links
protected final PooledDataSourceRegistry registry
protected Context namingContext
public void registerContribution(Object contrib, String extensionPoint, ComponentInstance component) throws Exception
registerContribution in class DefaultComponentExceptionpublic void unregisterContribution(Object contrib, String extensionPoint, ComponentInstance component) throws Exception
unregisterContribution in class DefaultComponentExceptionpublic int getApplicationStartedOrder()
getApplicationStartedOrder in interface ComponentgetApplicationStartedOrder in class DefaultComponentpublic boolean isStarted()
public void applicationStarted(ComponentContext context) throws Exception
applicationStarted in interface ComponentapplicationStarted in class DefaultComponentExceptionpublic void deactivate(ComponentContext context) throws Exception
deactivate in interface Componentdeactivate in class DefaultComponentExceptionprotected void addDataSource(DataSourceDescriptor contrib) throws NamingException
NamingExceptionprotected void removeDataSource(DataSourceDescriptor contrib) throws NamingException
NamingExceptionprotected void bindDataSource(DataSourceDescriptor descr)
protected void unbindDataSource(DataSourceDescriptor descr)
protected void addDataSourceLink(DataSourceLinkDescriptor contrib)
protected void removeDataSourceLink(DataSourceLinkDescriptor contrib)
protected void bindDataSourceLink(DataSourceLinkDescriptor descr)
protected void unbindDataSourceLink(DataSourceLinkDescriptor descr)
public <T> T getAdapter(Class<T> adapter)
getAdapter in interface AdaptablegetAdapter in class DefaultComponentCopyright © 2019 Nuxeo SA. All rights reserved.