org.jboss.beans.info.spi.helpers
Class UnmodifiableBeanInfo

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.beans.info.spi.helpers.UnmodifiableBeanInfo
All Implemented Interfaces:
Cloneable, BeanInfo, org.jboss.util.JBossInterface

public class UnmodifiableBeanInfo
extends org.jboss.util.JBossObject
implements BeanInfo

An unmodifiable view of the specified bean info instance.

Author:
Ales Justin

Field Summary
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
UnmodifiableBeanInfo(BeanInfo delegate)
           
 
Method Summary
 BeanInfoFactory getBeanInfoFactory()
          Get the bean info factory
 ClassInfo getClassInfo()
          Get the class information
 Set<ConstructorInfo> getConstructors()
          Get the constructor info.
 Set<EventInfo> getEvents()
          Get the event information.
 JoinpointFactory getJoinpointFactory()
          Get the joinpoint factory
 Set<MethodInfo> getMethods()
          Get the method information.
 String getName()
          Get the bean name
 Set<PropertyInfo> getProperties()
          Get the property information.
 Object getProperty(Object bean, String name)
          Get a property
 PropertyInfo getProperty(String name)
          Get a property
 Object invoke(Object bean, String name)
          Invoke a method with no parameters
 Object invoke(Object bean, String name, Class<?>[] paramTypes, Object[] params)
          Invoke a method
 Object invoke(Object bean, String name, String[] paramTypes, Object[] params)
          Invoke a method
 Object invoke(Object bean, String name, TypeInfo[] paramTypes, Object[] params)
          Invoke a method
 Object invokeStatic(String name)
          Invoke a static method with no parameters
 Object invokeStatic(String name, Class<?>[] paramTypes, Object[] params)
          Invoke a static method
 Object invokeStatic(String name, String[] paramTypes, Object[] params)
          Invoke a static method
 Object invokeStatic(String name, TypeInfo[] paramTypes, Object[] params)
          Invoke a static method
 Object newInstance()
          Create a new instance
 Object newInstance(Class<?>[] paramTypes, Object[] params)
          Create a new instance
 Object newInstance(String[] paramTypes, Object[] params)
          Create a new instance
 Object newInstance(TypeInfo[] paramTypes, Object[] params)
          Create a new instance
 void setConstructors(Set<ConstructorInfo> constructors)
          Set the constructor info.
 void setEvents(Set<EventInfo> events)
          set the event information.
 void setMethods(Set<MethodInfo> methods)
          Set the method information.
 void setProperties(Set<PropertyInfo> properties)
          Set the property information.
 void setProperty(Object bean, String name, Object value)
          Get a property
 String toShortString()
           
 void toShortString(org.jboss.util.JBossStringBuilder buffer)
           
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toString, 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
 

Constructor Detail

UnmodifiableBeanInfo

public UnmodifiableBeanInfo(BeanInfo delegate)
Method Detail

getName

public String getName()
Description copied from interface: BeanInfo
Get the bean name

Specified by:
getName in interface BeanInfo
Returns:
the name

getClassInfo

public ClassInfo getClassInfo()
Description copied from interface: BeanInfo
Get the class information

Specified by:
getClassInfo in interface BeanInfo
Returns:
the class information

getJoinpointFactory

public JoinpointFactory getJoinpointFactory()
Description copied from interface: BeanInfo
Get the joinpoint factory

Specified by:
getJoinpointFactory in interface BeanInfo
Returns:
the joinpoint factory

getProperties

public Set<PropertyInfo> getProperties()
Description copied from interface: BeanInfo
Get the property information.

Specified by:
getProperties in interface BeanInfo
Returns:
a Set

setProperties

public void setProperties(Set<PropertyInfo> properties)
Description copied from interface: BeanInfo
Set the property information.

Specified by:
setProperties in interface BeanInfo
Parameters:
properties - a Set

getProperty

public PropertyInfo getProperty(String name)
Description copied from interface: BeanInfo
Get a property

Specified by:
getProperty in interface BeanInfo
Parameters:
name - the property name
Returns:
the property

getConstructors

public Set<ConstructorInfo> getConstructors()
Description copied from interface: BeanInfo
Get the constructor info.

Specified by:
getConstructors in interface BeanInfo
Returns:
a Set

setConstructors

public void setConstructors(Set<ConstructorInfo> constructors)
Description copied from interface: BeanInfo
Set the constructor info.

Specified by:
setConstructors in interface BeanInfo
Parameters:
constructors - a Set

getMethods

public Set<MethodInfo> getMethods()
Description copied from interface: BeanInfo
Get the method information.

Specified by:
getMethods in interface BeanInfo
Returns:
a Set

setMethods

public void setMethods(Set<MethodInfo> methods)
Description copied from interface: BeanInfo
Set the method information.

Specified by:
setMethods in interface BeanInfo
Parameters:
methods - a Set

getEvents

public Set<EventInfo> getEvents()
Description copied from interface: BeanInfo
Get the event information.

Specified by:
getEvents in interface BeanInfo
Returns:
a Set

setEvents

public void setEvents(Set<EventInfo> events)
Description copied from interface: BeanInfo
set the event information.

Specified by:
setEvents in interface BeanInfo
Parameters:
events - a Set

getBeanInfoFactory

public BeanInfoFactory getBeanInfoFactory()
Description copied from interface: BeanInfo
Get the bean info factory

Specified by:
getBeanInfoFactory in interface BeanInfo
Returns:
the factory

newInstance

public Object newInstance()
                   throws Throwable
Description copied from interface: BeanInfo
Create a new instance

Specified by:
newInstance in interface BeanInfo
Returns:
the new instance
Throws:
Throwable - for any error

newInstance

public Object newInstance(String[] paramTypes,
                          Object[] params)
                   throws Throwable
Description copied from interface: BeanInfo
Create a new instance

Specified by:
newInstance in interface BeanInfo
Parameters:
paramTypes - the parameter types
params - the parameters
Returns:
the new instance
Throws:
Throwable - for any error

newInstance

public Object newInstance(Class<?>[] paramTypes,
                          Object[] params)
                   throws Throwable
Description copied from interface: BeanInfo
Create a new instance

Specified by:
newInstance in interface BeanInfo
Parameters:
paramTypes - the parameter types
params - the parameters
Returns:
the new instance
Throws:
Throwable - for any error

newInstance

public Object newInstance(TypeInfo[] paramTypes,
                          Object[] params)
                   throws Throwable
Description copied from interface: BeanInfo
Create a new instance

Specified by:
newInstance in interface BeanInfo
Parameters:
paramTypes - the parameter types
params - the parameters
Returns:
the new instance
Throws:
Throwable - for any error

getProperty

public Object getProperty(Object bean,
                          String name)
                   throws Throwable
Description copied from interface: BeanInfo
Get a property

Specified by:
getProperty in interface BeanInfo
Parameters:
bean - the bean
name - the property name
Returns:
the property value
Throws:
Throwable - for any error

setProperty

public void setProperty(Object bean,
                        String name,
                        Object value)
                 throws Throwable
Description copied from interface: BeanInfo
Get a property

Specified by:
setProperty in interface BeanInfo
Parameters:
bean - the bean
name - the property name
value - the property value
Throws:
Throwable - for any error

invoke

public Object invoke(Object bean,
                     String name)
              throws Throwable
Description copied from interface: BeanInfo
Invoke a method with no parameters

Specified by:
invoke in interface BeanInfo
Parameters:
bean - the bean
name - the method name
Returns:
the result
Throws:
Throwable - for any error

invoke

public Object invoke(Object bean,
                     String name,
                     String[] paramTypes,
                     Object[] params)
              throws Throwable
Description copied from interface: BeanInfo
Invoke a method

Specified by:
invoke in interface BeanInfo
Parameters:
bean - the bean
name - the method name
paramTypes - the parameter types
params - the parameters
Returns:
the result
Throws:
Throwable - for any error

invoke

public Object invoke(Object bean,
                     String name,
                     Class<?>[] paramTypes,
                     Object[] params)
              throws Throwable
Description copied from interface: BeanInfo
Invoke a method

Specified by:
invoke in interface BeanInfo
Parameters:
bean - the bean
name - the method name
paramTypes - the parameter types
params - the parameters
Returns:
the result
Throws:
Throwable - for any error

invoke

public Object invoke(Object bean,
                     String name,
                     TypeInfo[] paramTypes,
                     Object[] params)
              throws Throwable
Description copied from interface: BeanInfo
Invoke a method

Specified by:
invoke in interface BeanInfo
Parameters:
bean - the bean
name - the method name
paramTypes - the parameter types
params - the parameters
Returns:
the result
Throws:
Throwable - for any error

invokeStatic

public Object invokeStatic(String name)
                    throws Throwable
Description copied from interface: BeanInfo
Invoke a static method with no parameters

Specified by:
invokeStatic in interface BeanInfo
Parameters:
name - the method name
Returns:
the result
Throws:
Throwable - for any error

invokeStatic

public Object invokeStatic(String name,
                           String[] paramTypes,
                           Object[] params)
                    throws Throwable
Description copied from interface: BeanInfo
Invoke a static method

Specified by:
invokeStatic in interface BeanInfo
Parameters:
name - the method name
paramTypes - the parameter types
params - the parameters
Returns:
the result
Throws:
Throwable - for any error

invokeStatic

public Object invokeStatic(String name,
                           Class<?>[] paramTypes,
                           Object[] params)
                    throws Throwable
Description copied from interface: BeanInfo
Invoke a static method

Specified by:
invokeStatic in interface BeanInfo
Parameters:
name - the method name
paramTypes - the parameter types
params - the parameters
Returns:
the result
Throws:
Throwable - for any error

invokeStatic

public Object invokeStatic(String name,
                           TypeInfo[] paramTypes,
                           Object[] params)
                    throws Throwable
Description copied from interface: BeanInfo
Invoke a static method

Specified by:
invokeStatic in interface BeanInfo
Parameters:
name - the method name
paramTypes - the parameter types
params - the parameters
Returns:
the result
Throws:
Throwable - for any error

toShortString

public String toShortString()
Specified by:
toShortString in interface org.jboss.util.JBossInterface
Overrides:
toShortString 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 © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.