org.jboss.kernel.plugins.dependency
Class AbstractKernelControllerContext

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.dependency.plugins.AbstractControllerContext
          extended by org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext
All Implemented Interfaces:
Cloneable, org.jboss.dependency.spi.ControllerContext, org.jboss.dependency.spi.dispatch.AttributeDispatchContext, org.jboss.dependency.spi.dispatch.InvokeDispatchContext, KernelControllerContext, KernelRegistryEntry, org.jboss.util.JBossInterface

public class AbstractKernelControllerContext
extends org.jboss.dependency.plugins.AbstractControllerContext
implements KernelControllerContext

Controller context.

Version:
$Revision: 67291 $
Author:
Adrian Brock

Field Summary
protected  AccessControlContext accessContext
          The access control context
protected  org.jboss.beans.info.spi.BeanInfo info
          The BeanInfo
protected  boolean isDescribeProcessed
          Did we do a describeVisit
protected  boolean isInitialProcessed
          Did we do a initialVisit
protected  BeanMetaData metaData
          The meta data
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
AbstractKernelControllerContext(org.jboss.beans.info.spi.BeanInfo info, BeanMetaData metaData, Object target)
          Create an abstract controller context
 
Method Summary
 Object get(String name)
           
protected  AccessControlContext getAccessControlContext()
          Get the access control context of the code that created this context.
 org.jboss.beans.info.spi.BeanInfo getBeanInfo()
          Get the BeanInfo
 BeanMetaData getBeanMetaData()
          Get the metadata
 ClassLoader getClassLoader()
           
protected  org.jboss.beans.info.spi.BeanInfo getInfo()
           
 Kernel getKernel()
          Get the kernel
protected  void infoprocessMetaData()
          Preprocess the metadata for this context
protected  void initKernelScopeInfo()
           
protected  void initScopeInfo()
           
 Object invoke(String name, Object[] parameters, String[] signature)
           
protected  void preprocessMetaData()
          Preprocess the metadata for this context
 void set(String name, Object value)
           
 void setBeanInfo(org.jboss.beans.info.spi.BeanInfo info)
          Set the bean info
 void setController(org.jboss.dependency.spi.Controller controller)
           
 void toString(org.jboss.util.JBossStringBuilder buffer)
           
 
Methods inherited from class org.jboss.dependency.plugins.AbstractControllerContext
getAliases, getController, getDependencyInfo, getError, getMode, getName, getRequiredState, getScopeInfo, getState, getTarget, install, needsAnAlias, setAliases, setError, setMode, setName, setRequiredState, setScopeInfo, setState, setTarget, toShortString, uninstall
 
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.kernel.spi.dependency.KernelControllerContext
setTarget
 
Methods inherited from interface org.jboss.kernel.spi.registry.KernelRegistryEntry
setName
 
Methods inherited from interface org.jboss.dependency.spi.ControllerContext
getAliases, getController, getDependencyInfo, getError, getMode, getName, getRequiredState, getScopeInfo, getState, getTarget, install, setError, setMode, setRequiredState, setState, uninstall
 

Field Detail

info

protected org.jboss.beans.info.spi.BeanInfo info
The BeanInfo


metaData

protected BeanMetaData metaData
The meta data


accessContext

protected AccessControlContext accessContext
The access control context


isInitialProcessed

protected boolean isInitialProcessed
Did we do a initialVisit


isDescribeProcessed

protected boolean isDescribeProcessed
Did we do a describeVisit

Constructor Detail

AbstractKernelControllerContext

public AbstractKernelControllerContext(org.jboss.beans.info.spi.BeanInfo info,
                                       BeanMetaData metaData,
                                       Object target)
Create an abstract controller context

Parameters:
info - the bean info
metaData - the meta data
target - any target object
Method Detail

getKernel

public Kernel getKernel()
Description copied from interface: KernelControllerContext
Get the kernel

Specified by:
getKernel in interface KernelControllerContext
Returns:
the kernel

getBeanInfo

public org.jboss.beans.info.spi.BeanInfo getBeanInfo()
Description copied from interface: KernelControllerContext
Get the BeanInfo

Specified by:
getBeanInfo in interface KernelControllerContext
Returns:
the bean info

setBeanInfo

public void setBeanInfo(org.jboss.beans.info.spi.BeanInfo info)
Set the bean info

Specified by:
setBeanInfo in interface KernelControllerContext
Parameters:
info - the bean info

getBeanMetaData

public BeanMetaData getBeanMetaData()
Description copied from interface: KernelControllerContext
Get the metadata

Specified by:
getBeanMetaData in interface KernelControllerContext
Returns:
the bean metadata

toString

public void toString(org.jboss.util.JBossStringBuilder buffer)
Overrides:
toString in class org.jboss.dependency.plugins.AbstractControllerContext

setController

public void setController(org.jboss.dependency.spi.Controller controller)
Specified by:
setController in interface org.jboss.dependency.spi.ControllerContext
Overrides:
setController in class org.jboss.dependency.plugins.AbstractControllerContext

initScopeInfo

protected void initScopeInfo()
Overrides:
initScopeInfo in class org.jboss.dependency.plugins.AbstractControllerContext

initKernelScopeInfo

protected void initKernelScopeInfo()

preprocessMetaData

protected void preprocessMetaData()
Preprocess the metadata for this context


infoprocessMetaData

protected void infoprocessMetaData()
Preprocess the metadata for this context


getAccessControlContext

protected AccessControlContext getAccessControlContext()
Get the access control context of the code that created this context.

This will be null when there is no security manager.

Returns:
any access control context

getInfo

protected org.jboss.beans.info.spi.BeanInfo getInfo()

get

public Object get(String name)
           throws Throwable
Specified by:
get in interface org.jboss.dependency.spi.dispatch.AttributeDispatchContext
Throws:
Throwable

set

public void set(String name,
                Object value)
         throws Throwable
Specified by:
set in interface org.jboss.dependency.spi.dispatch.AttributeDispatchContext
Throws:
Throwable

invoke

public Object invoke(String name,
                     Object[] parameters,
                     String[] signature)
              throws Throwable
Specified by:
invoke in interface org.jboss.dependency.spi.dispatch.InvokeDispatchContext
Throws:
Throwable

getClassLoader

public ClassLoader getClassLoader()
                           throws Throwable
Specified by:
getClassLoader in interface org.jboss.dependency.spi.dispatch.InvokeDispatchContext
Throws:
Throwable


Copyright ? 2007 JBoss Inc.. All Rights Reserved.