|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.system.server.profileservice.persistence.PersistenceFactory
org.jboss.system.server.profileservice.persistence.AbstractPersistenceFactory
public class AbstractPersistenceFactory
The abstract persistence factory.
Constructor Summary | |
---|---|
AbstractPersistenceFactory()
|
|
AbstractPersistenceFactory(org.jboss.managed.api.factory.ManagedObjectFactory managedObjectFactory)
|
Methods inherited from class org.jboss.system.server.profileservice.persistence.PersistenceFactory |
---|
addComponent, getManagedObjectFactory, removeComponent, updateComponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractPersistenceFactory()
public AbstractPersistenceFactory(org.jboss.managed.api.factory.ManagedObjectFactory managedObjectFactory)
Method Detail |
---|
public ManagedObjectPersistencePlugin getPersistencePlugin()
getPersistencePlugin
in class PersistenceFactory
public void restorePersistenceRoot(PersistenceRoot root, Object parentAttachment, ClassLoader classLoader)
restorePersistenceRoot
in class PersistenceFactory
root
- the persistence rootattachment
- the root attachmentclassLoader
- the classloaderpublic PersistenceRoot addComponent(PersistenceRoot root, org.jboss.managed.api.ManagedObject parent, org.jboss.managed.api.ManagedComponent component)
addComponent
in class PersistenceFactory
root
- the persistence rootparent
- the parent managed objectcomponent
- the managed component
public PersistenceRoot removeComponent(PersistenceRoot root, org.jboss.managed.api.ManagedObject parent, org.jboss.managed.api.ManagedComponent component)
removeComponent
in class PersistenceFactory
root
- the persistence rootparent
- the parent managed objectcomponent
- the managed component
public PersistenceRoot updateComponent(PersistenceRoot root, org.jboss.managed.api.ManagedObject parent, org.jboss.managed.api.ManagedComponent component)
updateComponent
in class PersistenceFactory
root
- the persistence rootparent
- the parent managed objectcomponent
- the managed component
public PersistenceRoot resetComponent(PersistenceRoot root, org.jboss.managed.api.ManagedObject parent, org.jboss.managed.api.ManagedComponent component)
resetComponent
in class PersistenceFactory
root
- the persistence rootparent
- the parent managed objectcomponent
- the managed component
protected PersistenceRoot addPersistedComponent(PersistenceRoot root, PersistedComponent component)
root
- the persistence rootcomponent
- the persisted component
protected ComponentMapper getComponentMapper(org.jboss.managed.api.ManagedObject parent)
parent
- the managed object
IllegalStateException
- if no mapper is registered for this typeprotected ComponentMapper getComponentMapper(PersistenceRoot root)
root
- the persistence root
IllegalStateException
- if no mapper is registered for this typeprotected ComponentMapper getComponentMapper(String type)
type
- the type
protected static Map<String,PersistedComponent> mapComponents(PersistenceRoot root)
root
- the persistence root
public void addComponentMapper(ComponentMapper mapper)
mapper
- the component mapperpublic ComponentMapper removeComponentMapper(ComponentMapper mapper)
mapper
- the component mapper
public void addPersistencePlugin(ManagedObjectPersistencePlugin plugin)
plugin
- the persistence pluginpublic void removePersistencePlugin(ManagedObjectPersistencePlugin plugin)
plugin
- the plugin
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |