|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.system.server.profileservice.persistence.component.AbstractComponentMapper
public abstract class AbstractComponentMapper
The abstract component mapper.
Constructor Summary | |
---|---|
AbstractComponentMapper(PersistenceFactory persistenceFactory)
|
Method Summary | |
---|---|
PersistedComponent |
addComponent(Object attachment,
org.jboss.managed.api.ManagedComponent component)
Add a component. |
protected PersistedComponent |
createComponent(Object attachment,
org.jboss.managed.api.ManagedComponent component)
Create the persisted information for a given ManagedComponent. |
protected PersistedComponent |
createPersistedComponent(Object attachment,
org.jboss.managed.api.ManagedComponent component,
ModificationInfo modification)
Create a persisted component for a given ManagedComponent. |
protected abstract org.jboss.managed.api.ManagedObject |
getComponent(Object attachment,
PersistedComponent component,
boolean create)
Get a ManagedObject for a given component, based on the information in the attachment descriptor. |
org.jboss.managed.api.factory.ManagedObjectFactory |
getMOF()
|
ManagedObjectPersistencePlugin |
getPersistencePlugin()
|
PersistedComponent |
removeComponent(Object attachment,
org.jboss.managed.api.ManagedComponent component)
Remove a component. |
protected abstract void |
removeComponent(Object attachment,
PersistedComponent component)
Remove a component from the attachment. |
void |
restoreComponent(Object attachment,
PersistedComponent component)
Restore a component based on the persisted information. |
protected abstract void |
setComponentName(PersistedComponent component,
org.jboss.managed.api.ManagedObject mo)
Set the current name for this component. |
PersistedComponent |
updateComponent(Object attachment,
org.jboss.managed.api.ManagedComponent component)
Update a component. |
protected void |
updateComponent(Object attachment,
PersistedComponent component,
boolean added)
Update a attachment descripto based on the persisted component information. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.system.server.profileservice.persistence.component.ComponentMapper |
---|
getType |
Constructor Detail |
---|
public AbstractComponentMapper(PersistenceFactory persistenceFactory)
Method Detail |
---|
public ManagedObjectPersistencePlugin getPersistencePlugin()
public org.jboss.managed.api.factory.ManagedObjectFactory getMOF()
public void restoreComponent(Object attachment, PersistedComponent component)
ComponentMapper
restoreComponent
in interface ComponentMapper
attachment
- the attachmentcomponent
- the persisted componentpublic PersistedComponent addComponent(Object attachment, org.jboss.managed.api.ManagedComponent component)
ComponentMapper
addComponent
in interface ComponentMapper
attachment
- the parent attachmentcomponent
- the managed component
public PersistedComponent updateComponent(Object attachment, org.jboss.managed.api.ManagedComponent component)
ComponentMapper
updateComponent
in interface ComponentMapper
attachment
- the parent attachmentcomponent
- the managed component
public PersistedComponent removeComponent(Object attachment, org.jboss.managed.api.ManagedComponent component)
ComponentMapper
removeComponent
in interface ComponentMapper
attachment
- the parent attachmentcomponent
- the managed component
protected abstract void removeComponent(Object attachment, PersistedComponent component)
attachment
- the attachmentcomponent
- the component to removeprotected abstract org.jboss.managed.api.ManagedObject getComponent(Object attachment, PersistedComponent component, boolean create)
attachment
- the attachmentcomponent
- the componentcreate
- whether to create a non existing component or not
protected PersistedComponent createComponent(Object attachment, org.jboss.managed.api.ManagedComponent component)
attachment
- the attachmentcomponent
- the managed component
protected abstract void setComponentName(PersistedComponent component, org.jboss.managed.api.ManagedObject mo)
component
- the persisted componentmo
- the managed objectprotected void updateComponent(Object attachment, PersistedComponent component, boolean added)
attachment
- the attachmentcomponent
- the persisted componentadded
- whether this component was added or notprotected PersistedComponent createPersistedComponent(Object attachment, org.jboss.managed.api.ManagedComponent component, ModificationInfo modification)
attachment
- the attachmentcomponent
- the managed componentmodification
- the modification info
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |