Class ConfigurationObjectTag


  • public class ConfigurationObjectTag
    extends BodyTagSupport
    Read a configuration property and expose it as a page variable and attribute Examples of use: >%@ taglib uri="/WEB-INF/tld/easyconf.tld" prefix="easyconf" %> >easyconf:configurationObject id="dbConf" component="test_module" type="com.germinus.easyconf.example.DatabaseConf"/> >bean:write name="dbConf" property="tables"/>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String component  
      protected java.lang.String id  
      protected java.lang.String type  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int doAfterBody()
      Save the body content of this tag (if any), or throw a JspException if the value was already defined.
      int doEndTag()
      Retrieve the required property and expose it as a scripting variable.
      int doStartTag()
      Check if we need to evaluate the body of the tag
      java.lang.String getComponent()  
      java.lang.String getId()  
      java.lang.String getType()  
      void release()  
      void setComponent​(java.lang.String component)  
      void setId​(java.lang.String id)  
      void setType​(java.lang.String type)  
      • Methods inherited from class java.lang.Object

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

      • id

        protected java.lang.String id
      • component

        protected java.lang.String component
      • type

        protected java.lang.String type
    • Constructor Detail

      • ConfigurationObjectTag

        public ConfigurationObjectTag()
    • Method Detail

      • getId

        public java.lang.String getId()
      • setId

        public void setId​(java.lang.String id)
      • getComponent

        public java.lang.String getComponent()
      • setComponent

        public void setComponent​(java.lang.String component)
      • getType

        public java.lang.String getType()
      • setType

        public void setType​(java.lang.String type)
      • doStartTag

        public int doStartTag()
                       throws JspException
        Check if we need to evaluate the body of the tag
        Throws:
        javax.servlet.jsp.JspException - if a JSP exception has occurred
        JspException
      • doAfterBody

        public int doAfterBody()
                        throws JspException
        Save the body content of this tag (if any), or throw a JspException if the value was already defined.
        Throws:
        JspException - if value was defined by an attribute
      • doEndTag

        public int doEndTag()
                     throws JspException
        Retrieve the required property and expose it as a scripting variable.
        Throws:
        JspException - if a JSP exception has occurred
      • release

        public void release()