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
FieldsFields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoPatchForTests(Map<String, String> hibernateProperties) intThe component notification order forComponent.start(ComponentContext).newProvider(String name) voidregisterContribution(Object contribution, String extensionPoint, ComponentInstance contributor) protected voidregisterHibernateContribution(HibernateConfiguration contribution, ComponentName contributorName) voidstart(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:ComponentThe 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:
getApplicationStartedOrderin interfaceComponent- Returns:
- the order, 1000 by default
-
start
Description copied from interface:ComponentStart the component. This method is called after all the components were resolved and activated- Specified by:
startin interfaceComponent- Overrides:
startin classDefaultComponent
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContributionin classDefaultComponent
-
registerHibernateContribution
protected void registerHibernateContribution(HibernateConfiguration contribution, ComponentName contributorName) -
doPatchForTests
-
newProvider
- Specified by:
newProviderin interfacePersistenceProviderFactory
-
getHibernateConfiguration
- Specified by:
getHibernateConfigurationin interfaceHibernateConfigurator
-