org.apache.geronimo.gbean
Class GBeanInfo

java.lang.Object
  extended by org.apache.geronimo.gbean.GBeanInfo
All Implemented Interfaces:
Serializable

public final class GBeanInfo
extends Object
implements Serializable

Describes a GBean. This class should never be constructed directly. Insted use GBeanInfoBuilder.

See Also:
Serialized Form

Field Summary
static int PRIORITY_CLASSLOADER
           
static int PRIORITY_NORMAL
           
 
Constructor Summary
GBeanInfo(String className, String j2eeType, Collection attributes, GConstructorInfo constructor, Collection operations, Set references, Set interfaces)
          Deprecated. use GBeanInfoBuilder
GBeanInfo(String className, String j2eeType, Collection attributes, GConstructorInfo constructor, Collection operations, Set references, Set interfaces, Set notifications)
          Deprecated. use GBeanInfoBuilder
GBeanInfo(String name, String className, String j2eeType, Collection attributes, GConstructorInfo constructor, Collection operations, Set references, Set interfaces)
          Deprecated. use GBeanInfoBuilder
GBeanInfo(String name, String className, String j2eeType, Collection attributes, GConstructorInfo constructor, Collection operations, Set references, Set interfaces, Set notifications)
          Deprecated. use GBeanInfoBuilder
 
Method Summary
 GAttributeInfo getAttribute(String name)
          Gets the info for the specified attribute, or null if there is no such attribute.
 Set<GAttributeInfo> getAttributes()
          Returns a Set where the elements are type GAttributeInfo
 String getClassName()
           
 GConstructorInfo getConstructor()
           
static GBeanInfo getGBeanInfo(String className, ClassLoader classLoader)
          Static helper to try to get the GBeanInfo from the class supplied.
 Set getInterfaces()
           
 String getJ2eeType()
           
 List getManageableAttributes()
          Returns a list where the elements are type GAttributeInfo
 String getName()
           
 Set getNotifications()
           
 Set getOperations()
           
 List getPersistentAttributes()
          Returns a list where the elements are type GAttributeInfo
 int getPriority()
           
 GReferenceInfo getReference(String name)
           
 Set getReferences()
           
 String getSourceClass()
          Gets the source class from which this GBeanInfo can be retrieved using GBeanInfo.getGBeanInfo(className, classLoader).
 String toString()
           
 String toXML(AbstractName abstractName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PRIORITY_CLASSLOADER

public static final int PRIORITY_CLASSLOADER
See Also:
Constant Field Values

PRIORITY_NORMAL

public static final int PRIORITY_NORMAL
See Also:
Constant Field Values
Constructor Detail

GBeanInfo

public GBeanInfo(String name,
                 String className,
                 String j2eeType,
                 Collection attributes,
                 GConstructorInfo constructor,
                 Collection operations,
                 Set references,
                 Set interfaces)
Deprecated. use GBeanInfoBuilder


GBeanInfo

public GBeanInfo(String className,
                 String j2eeType,
                 Collection attributes,
                 GConstructorInfo constructor,
                 Collection operations,
                 Set references,
                 Set interfaces)
Deprecated. use GBeanInfoBuilder


GBeanInfo

public GBeanInfo(String className,
                 String j2eeType,
                 Collection attributes,
                 GConstructorInfo constructor,
                 Collection operations,
                 Set references,
                 Set interfaces,
                 Set notifications)
Deprecated. use GBeanInfoBuilder


GBeanInfo

public GBeanInfo(String name,
                 String className,
                 String j2eeType,
                 Collection attributes,
                 GConstructorInfo constructor,
                 Collection operations,
                 Set references,
                 Set interfaces,
                 Set notifications)
Deprecated. use GBeanInfoBuilder

Method Detail

getGBeanInfo

public static GBeanInfo getGBeanInfo(String className,
                                     ClassLoader classLoader)
                              throws InvalidConfigurationException
Static helper to try to get the GBeanInfo from the class supplied.

Parameters:
className - name of the class to get the GBeanInfo from
classLoader - the class loader use to load the specifiec class
Returns:
GBeanInfo generated by supplied class
Throws:
InvalidConfigurationException - if there is a problem getting the GBeanInfo from the class

getSourceClass

public String getSourceClass()
Gets the source class from which this GBeanInfo can be retrieved using GBeanInfo.getGBeanInfo(className, classLoader). A null source class means the gbean info was dynamically generated.

Returns:
the source of this GBeanInfo, or null if it was dynamically generated

getName

public String getName()

getClassName

public String getClassName()

getJ2eeType

public String getJ2eeType()

getAttribute

public GAttributeInfo getAttribute(String name)
Gets the info for the specified attribute, or null if there is no such attribute. Note that the attribute may have a getter or setter or both; being an attribute does not imply that both methods are available.


getAttributes

public Set<GAttributeInfo> getAttributes()
Returns a Set where the elements are type GAttributeInfo


getPersistentAttributes

public List getPersistentAttributes()
Returns a list where the elements are type GAttributeInfo


getManageableAttributes

public List getManageableAttributes()
Returns a list where the elements are type GAttributeInfo


getConstructor

public GConstructorInfo getConstructor()

getOperations

public Set getOperations()

getNotifications

public Set getNotifications()

getReferences

public Set getReferences()

getReference

public GReferenceInfo getReference(String name)

getInterfaces

public Set getInterfaces()

getPriority

public int getPriority()

toString

public String toString()
Overrides:
toString in class Object

toXML

public String toXML(AbstractName abstractName)


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.