cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From giac...@apache.org
Subject svn commit: r359229 - /cocoon/trunk/src/java/org/apache/cocoon/components/ComponentInfo.java
Date Tue, 27 Dec 2005 16:22:54 GMT
Author: giacomo
Date: Tue Dec 27 08:22:51 2005
New Revision: 359229

URL: http://svn.apache.org/viewcvs?rev=359229&view=rev
Log:
Add role info

Modified:
    cocoon/trunk/src/java/org/apache/cocoon/components/ComponentInfo.java

Modified: cocoon/trunk/src/java/org/apache/cocoon/components/ComponentInfo.java
URL: http://svn.apache.org/viewcvs/cocoon/trunk/src/java/org/apache/cocoon/components/ComponentInfo.java?rev=359229&r1=359228&r2=359229&view=diff
==============================================================================
--- cocoon/trunk/src/java/org/apache/cocoon/components/ComponentInfo.java (original)
+++ cocoon/trunk/src/java/org/apache/cocoon/components/ComponentInfo.java Tue Dec 27 08:22:51
2005
@@ -45,6 +45,7 @@
     private String loggerCategory;
     private String jmxDomain;
     private String jmxName;
+    private String role;
 
     public ComponentInfo() {
         this.model = MODEL_PRIMITIVE;
@@ -180,6 +181,7 @@
         this.setLoggerCategory(attr.getAttribute("logger", null));
         this.setJmxDomain(attr.getAttribute(CoreServiceManager.JMX_DOMAIN_ATTR_NAME, null));
         this.setJmxName(attr.getAttribute(CoreServiceManager.JMX_NAME_ATTR_NAME, null));
+        this.setRole(attr.getAttribute("role", null));
     }
 
     public ComponentInfo duplicate() {
@@ -194,6 +196,7 @@
         info.loggerCategory = this.loggerCategory;
         info.jmxDomain = this.jmxDomain;
         info.jmxName = this.jmxName;
+        info.role = this.role;
 
         return info;
     }
@@ -247,5 +250,21 @@
      */
     public void setJmxName(final String jmxName) {
         this.jmxName = jmxName;
+    }
+
+    /**
+     * @param role The role to set.
+     */
+    public void setRole( String role )
+    {
+        this.role = role;
+    }
+
+    /**
+     * @return Returns the role.
+     */
+    public String getRole()
+    {
+        return role;
     }
 }



Mime
View raw message