org.jboss.system.server.profileservice.persistence.component
Interface ComponentMapper

All Known Implementing Classes:
AbstractComponentMapper, KernelDeploymentComponentMapper

public interface ComponentMapper

Version:
$Revision$
Author:
Emanuel Muckenhuber

Method Summary
 PersistedComponent addComponent(Object attachment, org.jboss.managed.api.ManagedComponent component)
          Add a component.
 String getType()
          Get the component mapper type.
 PersistedComponent removeComponent(Object attachment, org.jboss.managed.api.ManagedComponent component)
          Remove a component.
 void restoreComponent(Object attachment, PersistedComponent component)
          Restore a component based on the persisted information.
 PersistedComponent updateComponent(Object attachment, org.jboss.managed.api.ManagedComponent component)
          Update a component.
 

Method Detail

getType

String getType()
Get the component mapper type.

Returns:
the type

restoreComponent

void restoreComponent(Object attachment,
                      PersistedComponent component)
Restore a component based on the persisted information.

Parameters:
attachment - the attachment
component - the persisted component

addComponent

PersistedComponent addComponent(Object attachment,
                                org.jboss.managed.api.ManagedComponent component)
Add a component.

Parameters:
attachment - the parent attachment
component - the managed component
Returns:
the persisted managed component

updateComponent

PersistedComponent updateComponent(Object attachment,
                                   org.jboss.managed.api.ManagedComponent component)
Update a component.

Parameters:
attachment - the parent attachment
component - the managed component
Returns:
the persisted managed component

removeComponent

PersistedComponent removeComponent(Object attachment,
                                   org.jboss.managed.api.ManagedComponent component)
Remove a component.

Parameters:
attachment - the parent attachment
component - the managed component
Returns:
the persisted managed component


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