Class BeanInfoManager

java.lang.Object
org.apache.commons.el.BeanInfoManager

public class BeanInfoManager extends Object

Manages the BeanInfo for one class - contains the BeanInfo, and also a mapping from property name to BeanInfoProperty. There are also static methods for accessing the BeanInfoManager for a class - those mappings are cached permanently so that once the BeanInfoManager is calculated, it doesn't have to be calculated again.

Version:
$Change: 181181 $$DateTime: 2001/06/26 09:55:09 $$Author: luehe $
Author:
Nathan Abramson - Art Technology Group
  • Field Details

    • mBeanClass

      Class mBeanClass
    • mBeanInfo

      BeanInfo mBeanInfo
    • mPropertyByName

      Map mPropertyByName
    • mIndexedPropertyByName

      Map mIndexedPropertyByName
    • mEventSetByName

      Map mEventSetByName
    • mInitialized

      boolean mInitialized
    • mBeanInfoManagerByClass

      static Map mBeanInfoManagerByClass
  • Constructor Details

    • BeanInfoManager

      BeanInfoManager(Class pBeanClass)
      Constructor
  • Method Details

    • getBeanClass

      public Class getBeanClass()
    • getBeanInfoManager

      public static BeanInfoManager getBeanInfoManager(Class pClass)
      Returns the BeanInfoManager for the specified class
    • createBeanInfoManager

      static BeanInfoManager createBeanInfoManager(Class pClass)
      Creates and registers the BeanInfoManager for the given class if it isn't already registered.
    • getBeanInfoProperty

      public static BeanInfoProperty getBeanInfoProperty(Class pClass, String pPropertyName, Logger pLogger) throws javax.servlet.jsp.el.ELException
      Returns the BeanInfoProperty for the specified property in the given class, or null if not found.
      Throws:
      javax.servlet.jsp.el.ELException
    • getBeanInfoIndexedProperty

      public static BeanInfoIndexedProperty getBeanInfoIndexedProperty(Class pClass, String pIndexedPropertyName, Logger pLogger) throws javax.servlet.jsp.el.ELException
      Returns the BeanInfoIndexedProperty for the specified property in the given class, or null if not found.
      Throws:
      javax.servlet.jsp.el.ELException
    • checkInitialized

      void checkInitialized(Logger pLogger) throws javax.servlet.jsp.el.ELException
      Makes sure that this class has been initialized, and synchronizes the initialization if it's required.
      Throws:
      javax.servlet.jsp.el.ELException
    • initialize

      void initialize(Logger pLogger) throws javax.servlet.jsp.el.ELException
      Initializes by mapping property names to BeanInfoProperties
      Throws:
      javax.servlet.jsp.el.ELException
    • getBeanInfo

      BeanInfo getBeanInfo(Logger pLogger) throws javax.servlet.jsp.el.ELException
      Returns the BeanInfo for the class
      Throws:
      javax.servlet.jsp.el.ELException
    • getProperty

      public BeanInfoProperty getProperty(String pPropertyName, Logger pLogger) throws javax.servlet.jsp.el.ELException
      Returns the BeanInfoProperty for the given property name, or null if not found.
      Throws:
      javax.servlet.jsp.el.ELException
    • getIndexedProperty

      public BeanInfoIndexedProperty getIndexedProperty(String pIndexedPropertyName, Logger pLogger) throws javax.servlet.jsp.el.ELException
      Returns the BeanInfoIndexedProperty for the given property name, or null if not found.
      Throws:
      javax.servlet.jsp.el.ELException
    • getEventSet

      public EventSetDescriptor getEventSet(String pEventSetName, Logger pLogger) throws javax.servlet.jsp.el.ELException
      Returns the EventSetDescriptor for the given event set name, or null if not found.
      Throws:
      javax.servlet.jsp.el.ELException
    • getPublicMethod

      static Method getPublicMethod(Method pMethod)
      Returns a publicly-accessible version of the given method, by searching for a public declaring class.
    • getPublicMethod

      static Method getPublicMethod(Class pClass, Method pMethod)
      If the given class is public and has a Method that declares the same name and arguments as the given method, then that method is returned. Otherwise the superclass and interfaces are searched recursively.