org.jboss.system.server.profileservice.persistence
Class PersistenceFactory

java.lang.Object
  extended by org.jboss.system.server.profileservice.persistence.PersistenceFactory
Direct Known Subclasses:
AbstractPersistenceFactory

public abstract class PersistenceFactory
extends Object

The persistence factory.

Version:
$Revision$
Author:
Emanuel Muckenhuber

Constructor Summary
protected PersistenceFactory(org.jboss.managed.api.factory.ManagedObjectFactory managedObjectFactory)
           
 
Method Summary
 PersistenceRoot addComponent(org.jboss.managed.api.ManagedObject parent, org.jboss.managed.api.ManagedComponent component)
          Add a ManagedComponent.
abstract  PersistenceRoot addComponent(PersistenceRoot root, org.jboss.managed.api.ManagedObject parent, org.jboss.managed.api.ManagedComponent component)
          Add a ManagedComponent.
 org.jboss.managed.api.factory.ManagedObjectFactory getManagedObjectFactory()
          Get the managed object factory.
abstract  ManagedObjectPersistencePlugin getPersistencePlugin()
          Get the persistence plugin.
 PersistenceRoot removeComponent(org.jboss.managed.api.ManagedObject parent, org.jboss.managed.api.ManagedComponent component)
          Remove a ManagedComponent.
abstract  PersistenceRoot removeComponent(PersistenceRoot root, org.jboss.managed.api.ManagedObject parent, org.jboss.managed.api.ManagedComponent component)
          Remove a ManagedComponent.
abstract  PersistenceRoot resetComponent(PersistenceRoot root, org.jboss.managed.api.ManagedObject parent, org.jboss.managed.api.ManagedComponent component)
          Reset a component.
abstract  void restorePersistenceRoot(PersistenceRoot root, Object attachment, ClassLoader classLoader)
          Apply the persisted information to a attachment.
 PersistenceRoot updateComponent(org.jboss.managed.api.ManagedObject parent, org.jboss.managed.api.ManagedComponent component)
          Update a ManagedComponent.
abstract  PersistenceRoot updateComponent(PersistenceRoot root, org.jboss.managed.api.ManagedObject parent, org.jboss.managed.api.ManagedComponent component)
          Update a ManagedComponent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistenceFactory

protected PersistenceFactory(org.jboss.managed.api.factory.ManagedObjectFactory managedObjectFactory)
Method Detail

getManagedObjectFactory

public org.jboss.managed.api.factory.ManagedObjectFactory getManagedObjectFactory()
Get the managed object factory.

Returns:
the manged object factory

getPersistencePlugin

public abstract ManagedObjectPersistencePlugin getPersistencePlugin()
Get the persistence plugin.

Returns:
the persistence plugin

restorePersistenceRoot

public abstract void restorePersistenceRoot(PersistenceRoot root,
                                            Object attachment,
                                            ClassLoader classLoader)
Apply the persisted information to a attachment.

Parameters:
root - the persistence root
attachment - the root attachment
classLoader - the classloader

addComponent

public PersistenceRoot addComponent(org.jboss.managed.api.ManagedObject parent,
                                    org.jboss.managed.api.ManagedComponent component)
Add a ManagedComponent.

Parameters:
parent - the parent managed object
component - the managed component
Returns:
the updated persistence root

addComponent

public abstract PersistenceRoot addComponent(PersistenceRoot root,
                                             org.jboss.managed.api.ManagedObject parent,
                                             org.jboss.managed.api.ManagedComponent component)
Add a ManagedComponent.

Parameters:
root - the persistence root
parent - the parent managed object
component - the managed component
Returns:
the updated persistence root

updateComponent

public PersistenceRoot updateComponent(org.jboss.managed.api.ManagedObject parent,
                                       org.jboss.managed.api.ManagedComponent component)
Update a ManagedComponent.

Parameters:
parent - the parent managed object
component - the managed component
Returns:
the updated persistence root

updateComponent

public abstract PersistenceRoot updateComponent(PersistenceRoot root,
                                                org.jboss.managed.api.ManagedObject parent,
                                                org.jboss.managed.api.ManagedComponent component)
Update a ManagedComponent.

Parameters:
root - the persistence root
parent - the parent managed object
component - the managed component
Returns:
the updated persistence root

removeComponent

public PersistenceRoot removeComponent(org.jboss.managed.api.ManagedObject parent,
                                       org.jboss.managed.api.ManagedComponent component)
Remove a ManagedComponent.

Parameters:
parent - the parent managed object
component - the managed component
Returns:
the updated persistence root

removeComponent

public abstract PersistenceRoot removeComponent(PersistenceRoot root,
                                                org.jboss.managed.api.ManagedObject parent,
                                                org.jboss.managed.api.ManagedComponent component)
Remove a ManagedComponent.

Parameters:
root - the persistence root
parent - the parent managed object
component - the managed component
Returns:
the updated persistence root

resetComponent

public abstract PersistenceRoot resetComponent(PersistenceRoot root,
                                               org.jboss.managed.api.ManagedObject parent,
                                               org.jboss.managed.api.ManagedComponent component)
Reset a component. This will remove the persisted information.

Parameters:
root - the persistence root
parent - the parent managed object
component - the managed component
Returns:
the updated persistence root


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.