org.jboss.kernel.plugins.deployment
Class AbstractKernelDeployment

java.lang.Object
  extended byorg.jboss.util.JBossObject
      extended byorg.jboss.kernel.plugins.deployment.AbstractKernelDeployment
All Implemented Interfaces:
Cloneable, org.jboss.util.JBossInterface, KernelDeployment

public class AbstractKernelDeployment
extends org.jboss.util.JBossObject
implements KernelDeployment

An abstract kernel deployment.

Version:
$Revision: 1.3 $
Author:
Adrian Brock

Field Summary
protected  List beans
          The beans List
protected  boolean installed
          Whether it is installed
protected  Set installedContexts
          The installed contexts
protected  String name
          The name of the deployment
 
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
 List getBeans()
          Get the beans in the deployment
 Set getInstalledContexts()
          Get the installed contexts
 String getName()
          Get the name of the deployment
 boolean isInstalled()
          Whether the deployment is installed
 void removeInstalledContext(KernelControllerContext context)
          Remove an installed context
 void setBeans(List beans)
          Set the beans.
 void setInstalled(boolean installed)
          Set the intalled state
 void setName(String name)
          Set the name of the deployment
 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 Set installedContexts
The installed contexts


beans

protected List beans
The beans List

Constructor Detail

AbstractKernelDeployment

public AbstractKernelDeployment()
Create a new kernel deployment

Method Detail

setBeans

public void setBeans(List beans)
Set the beans.

Parameters:
beans - 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 Set 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 getBeans()
Description copied from interface: KernelDeployment
Get the beans in the deployment

Specified by:
getBeans in interface KernelDeployment
Returns:
List

toString

public void toString(org.jboss.util.JBossStringBuilder buffer)

toShortString

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


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.