org.jboss.kernel.plugins.registry
Class BeanKernelRegistryEntry

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.kernel.plugins.registry.AbstractKernelRegistryEntry
          extended by org.jboss.kernel.plugins.registry.BeanKernelRegistryEntry
All Implemented Interfaces:
Cloneable, ControllerContext, AttributeDispatchContext, InvokeDispatchContext, KernelRegistryEntry, org.jboss.util.JBossInterface

public class BeanKernelRegistryEntry
extends AbstractKernelRegistryEntry
implements InvokeDispatchContext

Bean Kernel registry entry.

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.kernel.plugins.registry.AbstractKernelRegistryEntry
name, target
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
BeanKernelRegistryEntry(Object target, org.jboss.beans.info.spi.BeanInfo beanInfo)
           
BeanKernelRegistryEntry(Object name, Object target, org.jboss.beans.info.spi.BeanInfo beanInfo)
           
 
Method Summary
 Object get(String name)
          Getter property / attribute
 ClassLoader getClassLoader()
          Get context's classloader.
 Object invoke(String name, Object[] parameters, String[] signature)
          Invoke method / operation
 void set(String name, Object value)
          Setter property / attribute
 
Methods inherited from class org.jboss.kernel.plugins.registry.AbstractKernelRegistryEntry
getAliases, getController, getDependencyInfo, getError, getErrorHandlingMode, getMode, getName, getRequiredState, getScopeInfo, getState, getTarget, install, setController, setError, setMode, setName, setRequiredState, setState, toShortString, toString, 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.util.JBossInterface
clone, toShortString
 

Constructor Detail

BeanKernelRegistryEntry

public BeanKernelRegistryEntry(Object target,
                               org.jboss.beans.info.spi.BeanInfo beanInfo)

BeanKernelRegistryEntry

public BeanKernelRegistryEntry(Object name,
                               Object target,
                               org.jboss.beans.info.spi.BeanInfo beanInfo)
Method Detail

get

public Object get(String name)
           throws Throwable
Description copied from interface: AttributeDispatchContext
Getter property / attribute

Specified by:
get in interface AttributeDispatchContext
Parameters:
name - property / attribute name
Returns:
target's property / attribute instance
Throws:
Throwable - for any error

set

public void set(String name,
                Object value)
         throws Throwable
Description copied from interface: AttributeDispatchContext
Setter property / attribute

Specified by:
set in interface AttributeDispatchContext
Parameters:
name - property / attribute name
value - set target's property / attribute instance
Throws:
Throwable - for any error

invoke

public Object invoke(String name,
                     Object[] parameters,
                     String[] signature)
              throws Throwable
Description copied from interface: InvokeDispatchContext
Invoke method / operation

Specified by:
invoke in interface InvokeDispatchContext
Parameters:
name - method name
parameters - parameter values
signature - method's parameter types / signatures
Returns:
inovocation's return object
Throws:
Throwable - for any error

getClassLoader

public ClassLoader getClassLoader()
                           throws Throwable
Description copied from interface: InvokeDispatchContext
Get context's classloader. Used when determining type info for parameter and getting the parameter actual value.

Specified by:
getClassLoader in interface InvokeDispatchContext
Returns:
context's classloader
Throws:
Throwable - for any error


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