org.jboss.deployers.plugins.managed
Class KernelDeploymentComponentMapper

java.lang.Object
  extended by org.jboss.system.server.profileservice.persistence.component.AbstractComponentMapper
      extended by org.jboss.deployers.plugins.managed.KernelDeploymentComponentMapper
All Implemented Interfaces:
ComponentMapper

public class KernelDeploymentComponentMapper
extends AbstractComponentMapper

A AbstractKernelDeployment persistence ComponentMapper.

Version:
$Revision$
Author:
Emanuel Muckenhuber

Constructor Summary
KernelDeploymentComponentMapper(PersistenceFactory persistenceFactory)
           
 
Method Summary
protected  org.jboss.beans.metadata.plugins.AbstractBeanMetaData createEmptyBeanMetaData(PersistedComponent component)
           
protected  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.
 String getType()
          Get the component mapper type.
protected  void removeComponent(Object attachment, PersistedComponent component)
          Remove a component from the attachment.
protected  void setComponentName(PersistedComponent component, org.jboss.managed.api.ManagedObject mo)
          Set the current name for this component.
 
Methods inherited from class org.jboss.system.server.profileservice.persistence.component.AbstractComponentMapper
addComponent, createComponent, createPersistedComponent, getMOF, getPersistencePlugin, removeComponent, restoreComponent, updateComponent, updateComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KernelDeploymentComponentMapper

public KernelDeploymentComponentMapper(PersistenceFactory persistenceFactory)
Method Detail

setComponentName

protected void setComponentName(PersistedComponent component,
                                org.jboss.managed.api.ManagedObject mo)
Description copied from class: AbstractComponentMapper
Set the current name for this component.

Specified by:
setComponentName in class AbstractComponentMapper
Parameters:
component - the persisted component
mo - the managed object

getComponent

protected org.jboss.managed.api.ManagedObject getComponent(Object attachment,
                                                           PersistedComponent component,
                                                           boolean create)
Description copied from class: AbstractComponentMapper
Get a ManagedObject for a given component, based on the information in the attachment descriptor.

Specified by:
getComponent in class AbstractComponentMapper
Parameters:
attachment - the attachment
component - the component
create - whether to create a non existing component or not
Returns:
the managed object for the component

removeComponent

protected void removeComponent(Object attachment,
                               PersistedComponent component)
Description copied from class: AbstractComponentMapper
Remove a component from the attachment.

Specified by:
removeComponent in class AbstractComponentMapper
Parameters:
attachment - the attachment
component - the component to remove

createEmptyBeanMetaData

protected org.jboss.beans.metadata.plugins.AbstractBeanMetaData createEmptyBeanMetaData(PersistedComponent component)

getType

public String getType()
Description copied from interface: ComponentMapper
Get the component mapper type.

Returns:
the type


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