|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.JBossObject
org.jboss.dependency.plugins.AbstractControllerContext
org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext
public class AbstractKernelControllerContext
Controller context.
Field Summary |
---|
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)
Getter property / attribute |
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()
Get context's classloader. |
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()
Initialise the scope info |
Object |
invoke(String name,
Object[] parameters,
String[] signature)
Invoke method / operation |
ControllerState |
lifecycleInvocation(String name,
Object[] parameters,
String[] signature)
Is this invocation a lifecycle invocation. |
protected void |
preprocessMetaData()
Preprocess the metadata for this context |
void |
set(String name,
Object value)
Setter property / attribute |
void |
setBeanInfo(org.jboss.beans.info.spi.BeanInfo info)
Set the bean info |
void |
setController(Controller controller)
Set the controller |
void |
toString(org.jboss.util.JBossStringBuilder buffer)
|
protected static boolean |
useLifecycleState(String name,
String[] signature,
LifecycleMetaData lmd,
String defaultName)
Get lifecycle state if it matches the parameters. |
protected void |
validateMethodValues(String name,
String[] signature,
Object[] paramaters)
Validate method invocation. |
Methods inherited from class org.jboss.dependency.plugins.AbstractControllerContext |
---|
getAliases, getController, getDependencyInfo, getError, getErrorHandlingMode, getMode, getName, getRequiredState, getScopeInfo, getState, getTarget, install, needsAnAlias, setAliases, setError, setErrorHandlingMode, 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, getErrorHandlingMode, getMode, getName, getRequiredState, getScopeInfo, getState, getTarget, install, setError, setMode, setRequiredState, setState, uninstall |
Methods inherited from interface org.jboss.util.JBossInterface |
---|
clone, toShortString, toShortString |
Constructor Detail |
---|
public AbstractKernelControllerContext(org.jboss.beans.info.spi.BeanInfo info, BeanMetaData metaData, Object target)
info
- the bean infometaData
- the meta datatarget
- any target objectMethod Detail |
---|
public Kernel getKernel()
KernelControllerContext
getKernel
in interface KernelControllerContext
public org.jboss.beans.info.spi.BeanInfo getBeanInfo()
KernelControllerContext
getBeanInfo
in interface KernelControllerContext
public void setBeanInfo(org.jboss.beans.info.spi.BeanInfo info)
setBeanInfo
in interface KernelControllerContext
info
- the bean infopublic BeanMetaData getBeanMetaData()
KernelControllerContext
getBeanMetaData
in interface KernelControllerContext
public void toString(org.jboss.util.JBossStringBuilder buffer)
toString
in class AbstractControllerContext
public void setController(Controller controller)
ControllerContext
setController
in interface ControllerContext
setController
in class AbstractControllerContext
controller
- the controllerprotected void initScopeInfo()
AbstractControllerContext
initScopeInfo
in class AbstractControllerContext
protected void initKernelScopeInfo()
protected void preprocessMetaData()
protected void infoprocessMetaData()
public AccessControlContext getAccessControlContext()
This will be null when there is no security manager.
protected org.jboss.beans.info.spi.BeanInfo getInfo()
public Object get(String name) throws Throwable
AttributeDispatchContext
get
in interface AttributeDispatchContext
name
- property / attribute name
Throwable
- for any errorpublic void set(String name, Object value) throws Throwable
AttributeDispatchContext
set
in interface AttributeDispatchContext
name
- property / attribute namevalue
- set target's property / attribute instance
Throwable
- for any errorpublic Object invoke(String name, Object[] parameters, String[] signature) throws Throwable
InvokeDispatchContext
invoke
in interface InvokeDispatchContext
name
- method nameparameters
- parameter valuessignature
- method's parameter types / signatures
Throwable
- for any errorpublic ClassLoader getClassLoader() throws Throwable
InvokeDispatchContext
getClassLoader
in interface InvokeDispatchContext
Throwable
- for any errorpublic ControllerState lifecycleInvocation(String name, Object[] parameters, String[] signature) throws Throwable
LifecycleDispatchContext
lifecycleInvocation
in interface LifecycleDispatchContext
name
- method nameparameters
- parameter valuessignature
- method's parameter types / signatures
Throwable
- for any errorprotected static boolean useLifecycleState(String name, String[] signature, LifecycleMetaData lmd, String defaultName)
name
- the method namesignature
- the signaturelmd
- the lifecycle metadatadefaultName
- the default name
protected void validateMethodValues(String name, String[] signature, Object[] paramaters) throws Throwable
name
- the method namesignature
- the method signatureparamaters
- the parameter values
Throwable
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |