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.

Version:
$Rev: 1144307 $ $Date: 2011-07-08 21:24:09 +0800 (Fri, 08 Jul 2011) $
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
GBeanInfo(String sourceClass, String name, String className, String j2eeType, Collection attributes, GConstructorInfo constructor, Collection operations, Set references, Set interfaces, int priority, boolean osgiService, String[] serviceInterfaces)
           
 
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, org.osgi.framework.Bundle bundle)
          Static helper to try to get the GBeanInfo from the class supplied.
 Set<String> getInterfaces()
           
 String getJ2eeType()
           
 List getManageableAttributes()
          Returns a list where the elements are type GAttributeInfo
 String getName()
           
 Set getNotifications()
           
 Set<GOperationInfo> getOperations()
           
 List getPersistentAttributes()
          Returns a list where the elements are type GAttributeInfo
 int getPriority()
           
 GReferenceInfo getReference(String name)
           
 Set<GReferenceInfo> getReferences()
           
 String[] getServiceInterfaces()
           
 String getSourceClass()
          Gets the source class from which this GBeanInfo can be retrieved using GBeanInfo.getGBeanInfo(className, classLoader).
 boolean isOsgiService()
           
 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


GBeanInfo

public GBeanInfo(String sourceClass,
                 String name,
                 String className,
                 String j2eeType,
                 Collection attributes,
                 GConstructorInfo constructor,
                 Collection operations,
                 Set references,
                 Set interfaces,
                 int priority,
                 boolean osgiService,
                 String[] serviceInterfaces)
Method Detail

getGBeanInfo

public static GBeanInfo getGBeanInfo(String className,
                                     org.osgi.framework.Bundle bundle)
                              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
bundle - the bundle used 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<GOperationInfo> getOperations()

getNotifications

public Set getNotifications()

getReferences

public Set<GReferenceInfo> getReferences()

getReference

public GReferenceInfo getReference(String name)

getInterfaces

public Set<String> getInterfaces()

getPriority

public int getPriority()

isOsgiService

public boolean isOsgiService()

getServiceInterfaces

public String[] getServiceInterfaces()

toString

public String toString()
Overrides:
toString in class Object

toXML

public String toXML(AbstractName abstractName)


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