Class ConfigurationDynaClass

  • All Implemented Interfaces:
    org.apache.commons.beanutils.DynaClass

    public class ConfigurationDynaClass
    extends java.lang.Object
    implements org.apache.commons.beanutils.DynaClass
    The ConfigurationDynaClass dynamically determines properties for a ConfigurationDynaBean from a wrapped configuration-collection Configuration instance.
    Since:
    1.0-rc1
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Configuration configuration
      Stores the associated configuration.
      private static org.apache.commons.logging.Log LOG
      The logger.
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfigurationDynaClass​(Configuration configuration)
      Constructs an instance of a ConfigurationDynaClass wrapping the specified Configuration instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.commons.beanutils.DynaProperty[] getDynaProperties()  
      org.apache.commons.beanutils.DynaProperty getDynaProperty​(java.lang.String name)  
      java.lang.String getName()  
      org.apache.commons.beanutils.DynaBean newInstance()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        private static final org.apache.commons.logging.Log LOG
        The logger.
      • configuration

        private final Configuration configuration
        Stores the associated configuration.
    • Constructor Detail

      • ConfigurationDynaClass

        public ConfigurationDynaClass​(Configuration configuration)
        Constructs an instance of a ConfigurationDynaClass wrapping the specified Configuration instance.
        Parameters:
        configuration - Configuration instance.
    • Method Detail

      • getDynaProperties

        public org.apache.commons.beanutils.DynaProperty[] getDynaProperties()
        Specified by:
        getDynaProperties in interface org.apache.commons.beanutils.DynaClass
      • getDynaProperty

        public org.apache.commons.beanutils.DynaProperty getDynaProperty​(java.lang.String name)
        Specified by:
        getDynaProperty in interface org.apache.commons.beanutils.DynaClass
      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface org.apache.commons.beanutils.DynaClass
      • newInstance

        public org.apache.commons.beanutils.DynaBean newInstance()
                                                          throws java.lang.IllegalAccessException,
                                                                 java.lang.InstantiationException
        Specified by:
        newInstance in interface org.apache.commons.beanutils.DynaClass
        Throws:
        java.lang.IllegalAccessException
        java.lang.InstantiationException