org.jboss.kernel.plugins.deployment
Class AbstractKernelDeployment

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.kernel.plugins.deployment.AbstractKernelDeployment
All Implemented Interfaces:
Serializable, Cloneable, MutableLifecycleHolder, KernelDeployment, org.jboss.util.JBossInterface
Direct Known Subclasses:
AbstractKernelDeployment10, AbstractSpringDeployment, AOPDeployment

public class AbstractKernelDeployment
extends org.jboss.util.JBossObject
implements KernelDeployment, MutableLifecycleHolder, Serializable

An abstract kernel deployment.

Version:
$Revision: 81535 $
Author:
Ales Justin, Adrian Brock
See Also:
Serialized Form

Field Summary
protected  Set<NamedAliasMetaData> aliases
          The aliases
protected  Set<AnnotationMetaData> annotations
          The annotations
protected  List<BeanMetaDataFactory> beanFactories
          The beans List
protected  ClassLoaderMetaData classLoader
          The ClassLoader
protected  LifecycleMetaData create
          default create lifecycle method
protected  LifecycleMetaData destroy
          default destroy lifecycle method
protected  boolean installed
          Whether it is installed
protected  List<KernelControllerContext> installedContexts
          The installed contexts
protected  ControllerMode mode
          The ControllerMode
protected  String name
          The name of the deployment
protected  Boolean scoped
          Is deployment scoped
protected  LifecycleMetaData start
          default start lifecycle method
protected  LifecycleMetaData stop
          default stop lifecycle method
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
AbstractKernelDeployment()
          Create a new kernel deployment
 
Method Summary
 void addInstalledContext(KernelControllerContext context)
          Add an installed context
 Set<NamedAliasMetaData> getAliases()
          Get named aliases.
 Set<AnnotationMetaData> getAnnotations()
          Get the deployment annotations.
 List<BeanMetaDataFactory> getBeanFactories()
          Get the bean factories in the deployment
 List<BeanMetaData> getBeans()
          Get the beans in the deployment
 ClassLoaderMetaData getClassLoader()
          Get the classloader for this deployment
 LifecycleMetaData getCreate()
          Get the default create lifecycle
 LifecycleMetaData getDestroy()
          Get the default destroy lifecycle
 List<KernelControllerContext> getInstalledContexts()
          Get the installed contexts
 ControllerMode getMode()
          Get the ControllerMode.
 String getName()
          Get the name of the deployment
 Boolean getScoped()
          Is deployment scoped
 LifecycleMetaData getStart()
          Get the default start lifecycle
 LifecycleMetaData getStop()
          Get the default stop lifecycle
 boolean isInstalled()
          Whether the deployment is installed
 void removeInstalledContext(KernelControllerContext context)
          Remove an installed context
 void setAliases(Set<NamedAliasMetaData> aliases)
           
 void setAnnotations(Set<AnnotationMetaData> annotations)
           
 void setBeanFactories(List<BeanMetaDataFactory> beanFactories)
          Set the bean factories.
 void setBeans(List beans)
          Deprecated. use setBeanFactories
 void setClassLoader(ClassLoaderMetaData classLoader)
          Set the classloader
 void setCreate(LifecycleMetaData create)
          Set create lifecycle metadata.
 void setDestroy(LifecycleMetaData destroy)
          Set destroy lifecycle metadata.
 void setInstalled(boolean installed)
          Set the intalled state
 void setMode(ControllerMode mode)
           
 void setName(String name)
          Set the name of the deployment
 void setScoped(Boolean scoped)
           
 void setStart(LifecycleMetaData start)
          Set start lifecycle metadata.
 void setStop(LifecycleMetaData stop)
          Set stop lifecycle metadata.
 void toShortString(org.jboss.util.JBossStringBuilder buffer)
           
 void toString(org.jboss.util.JBossStringBuilder buffer)
           
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.util.JBossInterface
clone, toShortString
 

Field Detail

name

protected String name
The name of the deployment


installed

protected boolean installed
Whether it is installed


installedContexts

protected transient List<KernelControllerContext> installedContexts
The installed contexts


scoped

protected Boolean scoped
Is deployment scoped


annotations

protected Set<AnnotationMetaData> annotations
The annotations


beanFactories

protected List<BeanMetaDataFactory> beanFactories
The beans List


classLoader

protected ClassLoaderMetaData classLoader
The ClassLoader


create

protected LifecycleMetaData create
default create lifecycle method


start

protected LifecycleMetaData start
default start lifecycle method


stop

protected LifecycleMetaData stop
default stop lifecycle method


destroy

protected LifecycleMetaData destroy
default destroy lifecycle method


mode

protected ControllerMode mode
The ControllerMode


aliases

protected Set<NamedAliasMetaData> aliases
The aliases

Constructor Detail

AbstractKernelDeployment

public AbstractKernelDeployment()
Create a new kernel deployment

Method Detail

setBeans

@Deprecated
public void setBeans(List beans)
Deprecated. use setBeanFactories

Set the bean factories.

Parameters:
beans - a List.

setBeanFactories

public void setBeanFactories(List<BeanMetaDataFactory> beanFactories)
Set the bean factories.

Parameters:
beanFactories - a List.

getName

public String getName()
Description copied from interface: KernelDeployment
Get the name of the deployment

Specified by:
getName in interface KernelDeployment
Returns:
the name

setName

public void setName(String name)
Description copied from interface: KernelDeployment
Set the name of the deployment

Specified by:
setName in interface KernelDeployment
Parameters:
name - the name

isInstalled

public boolean isInstalled()
Description copied from interface: KernelDeployment
Whether the deployment is installed

Specified by:
isInstalled in interface KernelDeployment
Returns:
true when installed

setInstalled

public void setInstalled(boolean installed)
Description copied from interface: KernelDeployment
Set the intalled state

Specified by:
setInstalled in interface KernelDeployment
Parameters:
installed - true when installed

addInstalledContext

public void addInstalledContext(KernelControllerContext context)
Description copied from interface: KernelDeployment
Add an installed context

Specified by:
addInstalledContext in interface KernelDeployment
Parameters:
context - the context to add

getInstalledContexts

public List<KernelControllerContext> getInstalledContexts()
Description copied from interface: KernelDeployment
Get the installed contexts

Specified by:
getInstalledContexts in interface KernelDeployment
Returns:
the installed contexts

removeInstalledContext

public void removeInstalledContext(KernelControllerContext context)
Description copied from interface: KernelDeployment
Remove an installed context

Specified by:
removeInstalledContext in interface KernelDeployment
Parameters:
context - the context to add

getBeans

public List<BeanMetaData> getBeans()
Description copied from interface: KernelDeployment
Get the beans in the deployment

Specified by:
getBeans in interface KernelDeployment
Returns:
List

getScoped

public Boolean getScoped()
Description copied from interface: KernelDeployment
Is deployment scoped

Specified by:
getScoped in interface KernelDeployment
Returns:
true if scoped, false if isolated, null by default

setScoped

public void setScoped(Boolean scoped)

getAnnotations

public Set<AnnotationMetaData> getAnnotations()
Description copied from interface: KernelDeployment
Get the deployment annotations.

Specified by:
getAnnotations in interface KernelDeployment
Returns:
the annotations

setAnnotations

public void setAnnotations(Set<AnnotationMetaData> annotations)

getBeanFactories

public List<BeanMetaDataFactory> getBeanFactories()
Description copied from interface: KernelDeployment
Get the bean factories in the deployment

Specified by:
getBeanFactories in interface KernelDeployment
Returns:
List

getClassLoader

public ClassLoaderMetaData getClassLoader()
Description copied from interface: KernelDeployment
Get the classloader for this deployment

Specified by:
getClassLoader in interface KernelDeployment
Returns:
the classloader

setClassLoader

public void setClassLoader(ClassLoaderMetaData classLoader)
Set the classloader

Parameters:
classLoader - the classloader metadata

getCreate

public LifecycleMetaData getCreate()
Description copied from interface: KernelDeployment
Get the default create lifecycle

Specified by:
getCreate in interface KernelDeployment
Returns:
the create lifecycle

setCreate

public void setCreate(LifecycleMetaData create)
Description copied from interface: MutableLifecycleHolder
Set create lifecycle metadata.

Specified by:
setCreate in interface MutableLifecycleHolder
Parameters:
create - the lifecycle meta data

getStart

public LifecycleMetaData getStart()
Description copied from interface: KernelDeployment
Get the default start lifecycle

Specified by:
getStart in interface KernelDeployment
Returns:
the start lifecycle

setStart

public void setStart(LifecycleMetaData start)
Description copied from interface: MutableLifecycleHolder
Set start lifecycle metadata.

Specified by:
setStart in interface MutableLifecycleHolder
Parameters:
start - the lifecycle meta data

getStop

public LifecycleMetaData getStop()
Description copied from interface: KernelDeployment
Get the default stop lifecycle

Specified by:
getStop in interface KernelDeployment
Returns:
the stop lifecycle

setStop

public void setStop(LifecycleMetaData stop)
Description copied from interface: MutableLifecycleHolder
Set stop lifecycle metadata.

Specified by:
setStop in interface MutableLifecycleHolder
Parameters:
stop - the lifecycle meta data

getDestroy

public LifecycleMetaData getDestroy()
Description copied from interface: KernelDeployment
Get the default destroy lifecycle

Specified by:
getDestroy in interface KernelDeployment
Returns:
the destroy lifecycle

setDestroy

public void setDestroy(LifecycleMetaData destroy)
Description copied from interface: MutableLifecycleHolder
Set destroy lifecycle metadata.

Specified by:
setDestroy in interface MutableLifecycleHolder
Parameters:
destroy - the lifecycle meta data

getAliases

public Set<NamedAliasMetaData> getAliases()
Description copied from interface: KernelDeployment
Get named aliases.

Specified by:
getAliases in interface KernelDeployment
Returns:
the aliases

setAliases

public void setAliases(Set<NamedAliasMetaData> aliases)

getMode

public ControllerMode getMode()
Description copied from interface: KernelDeployment
Get the ControllerMode.

Specified by:
getMode in interface KernelDeployment
Returns:
mode

setMode

public void setMode(ControllerMode mode)

toString

public void toString(org.jboss.util.JBossStringBuilder buffer)
Overrides:
toString in class org.jboss.util.JBossObject

toShortString

public void toShortString(org.jboss.util.JBossStringBuilder buffer)
Specified by:
toShortString in interface org.jboss.util.JBossInterface
Overrides:
toShortString in class org.jboss.util.JBossObject


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