Package org.nuxeo.ecm.core.persistence
Class PersistenceComponent
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.core.persistence.PersistenceComponent
- All Implemented Interfaces:
HibernateConfigurator
,PersistenceProviderFactory
,Adaptable
,Component
,Extensible
,TimestampedService
public class PersistenceComponent
extends DefaultComponent
implements HibernateConfigurator, PersistenceProviderFactory
- Author:
- Stephane Lacoin [aka matic]
-
Field Summary
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doPatchForTests
(Map<String, String> hibernateProperties) int
The component notification order forComponent.start(ComponentContext)
.newProvider
(String name) void
registerContribution
(Object contribution, String extensionPoint, ComponentInstance contributor) protected void
registerHibernateContribution
(HibernateConfiguration contribution, ComponentName contributorName) void
start
(ComponentContext context) Start the component.Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, stop, unregister, unregisterContribution, unregisterExtension
-
Field Details
-
registry
-
-
Constructor Details
-
PersistenceComponent
public PersistenceComponent()
-
-
Method Details
-
getApplicationStartedOrder
public int getApplicationStartedOrder()Description copied from interface:Component
The component notification order forComponent.start(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.
- Specified by:
getApplicationStartedOrder
in interfaceComponent
- Returns:
- the order, 1000 by default
-
start
Description copied from interface:Component
Start the component. This method is called after all the components were resolved and activated- Specified by:
start
in interfaceComponent
- Overrides:
start
in classDefaultComponent
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContribution
in classDefaultComponent
-
registerHibernateContribution
protected void registerHibernateContribution(HibernateConfiguration contribution, ComponentName contributorName) -
doPatchForTests
-
newProvider
- Specified by:
newProvider
in interfacePersistenceProviderFactory
-
getHibernateConfiguration
- Specified by:
getHibernateConfiguration
in interfaceHibernateConfigurator
-