[Ejtools-cvs] applications/jmx.browser/src/main/org/ejtools/jmx/browser/model Node.java,1.2,1.3 Reso
Brought to you by:
letiemble
From: <let...@us...> - 2003-12-14 08:38:22
|
Update of /cvsroot/ejtools/applications/jmx.browser/src/main/org/ejtools/jmx/browser/model In directory sc8-pr-cvs1:/tmp/cvs-serv11709/jmx.browser/src/main/org/ejtools/jmx/browser/model Modified Files: Node.java Resource.java Server.java Log Message: Add more javadocs. Adjust some things. Index: Node.java =================================================================== RCS file: /cvsroot/ejtools/applications/jmx.browser/src/main/org/ejtools/jmx/browser/model/Node.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Node.java 27 Nov 2003 01:13:07 -0000 1.2 --- Node.java 13 Dec 2003 22:15:07 -0000 1.3 *************** *** 1,112 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jmx.browser.model; ! ! import java.awt.Component; ! import java.beans.Customizer; ! import java.beans.beancontext.BeanContextChildComponentProxy; ! import java.util.Iterator; ! ! import org.ejtools.adwt.GenericCustomizer; ! import org.ejtools.beans.Sort; ! import org.ejtools.beans.beancontext.CustomBeanContextServicesSupport; ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @created 13 décembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete ! */ ! public abstract class Node extends CustomBeanContextServicesSupport implements BeanContextChildComponentProxy ! { ! /** Description of the Field */ ! protected transient Customizer c = null; ! /** Description of the Field */ ! protected String className = "<undefined>"; ! /** Description of the Field */ ! protected String name = "<undefined>"; ! ! ! /** Constructor for the Node object */ ! public Node() ! { ! super(); ! } ! ! /** ! * Getter for the className attribute ! * ! * @return The value ! */ ! public String getClassName() ! { ! return this.className; ! } ! ! ! /** ! * Gets the component attribute of the Node object ! * ! * @return The component value ! */ ! public Component getComponent() ! { ! if (c == null) ! { ! c = new GenericCustomizer(true, this); ! } ! return (Component) c; ! } ! ! ! /** ! * Gets the name attribute of the Node object ! * ! * @return The name value ! */ ! public String getName() ! { ! return this.name; ! } ! ! ! /** ! * Description of the Method ! * ! * @return Description of the Returned Value ! */ ! public Iterator iterator() ! { ! return Sort.sortByClassAndName(super.iterator()); ! } ! ! ! /** ! * Description of the Method ! * ! * @return Description of the Returned Value ! */ ! public String toString() ! { ! return (name == null || "".equals(name)) ? "Default" : name; ! } ! ! ! /** ! * Setter for the name attribute ! * ! * @param name The new name value ! */ ! protected void setName(String name) ! { ! String old = this.name; ! this.name = name; ! this.firePropertyChange("name", old, this.name); ! } ! } --- 1,112 ---- ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jmx.browser.model; ! ! import java.awt.Component; ! import java.beans.Customizer; ! import java.beans.beancontext.BeanContextChildComponentProxy; ! import java.util.Iterator; ! ! import org.ejtools.adwt.GenericCustomizer; ! import org.ejtools.beans.Sort; ! import org.ejtools.beans.beancontext.CustomBeanContextServicesSupport; ! ! /** ! * Description of the Class ! * ! * @author letiemble ! * @created 13 décembre 2001 ! * @version $Revision$ ! * @todo Javadoc to complete ! */ ! public abstract class Node extends CustomBeanContextServicesSupport implements BeanContextChildComponentProxy ! { ! /** Description of the Field */ ! protected transient Customizer c = null; ! /** Description of the Field */ ! protected String className = "<undefined>"; ! /** Description of the Field */ ! protected String name = "<undefined>"; ! ! ! /** Constructor for the Node object */ ! public Node() ! { ! super(); ! } ! ! /** ! * Getter for the className attribute ! * ! * @return The value ! */ ! public String getClassName() ! { ! return this.className; ! } ! ! ! /** ! * Gets the component attribute of the Node object ! * ! * @return The component value ! */ ! public Component getComponent() ! { ! if (c == null) ! { ! c = new GenericCustomizer(true, this); ! } ! return (Component) c; ! } ! ! ! /** ! * Gets the name attribute of the Node object ! * ! * @return The name value ! */ ! public String getName() ! { ! return this.name; ! } ! ! ! /** ! * Description of the Method ! * ! * @return Description of the Returned Value ! */ ! public Iterator iterator() ! { ! return Sort.sortByClassAndName(super.iterator()); ! } ! ! ! /** ! * Description of the Method ! * ! * @return Description of the Returned Value ! */ ! public String toString() ! { ! return (name == null || "".equals(name)) ? "Default" : name; ! } ! ! ! /** ! * Setter for the name attribute ! * ! * @param name The new name value ! */ ! protected void setName(String name) ! { ! String old = this.name; ! this.name = name; ! this.firePropertyChange("name", old, this.name); ! } ! } Index: Resource.java =================================================================== RCS file: /cvsroot/ejtools/applications/jmx.browser/src/main/org/ejtools/jmx/browser/model/Resource.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** Resource.java 27 Nov 2003 01:13:07 -0000 1.6 --- Resource.java 13 Dec 2003 22:15:07 -0000 1.7 *************** *** 1,853 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jmx.browser.model; ! ! import java.awt.Component; ! import java.beans.beancontext.BeanContextServiceAvailableEvent; [...1677 lines suppressed...] ! * @param context Description of the Parameter ! */ ! protected void useServices(BeanContextServices context) ! { ! if (context.hasService(CacheService.class)) ! { ! // logger.debug("Using service CacheService..."); ! try ! { ! CacheService service = (CacheService) context.getService(this, this, CacheService.class, this, this); ! service.add(CacheService.RESOURCE_TYPE, this.getCanonicalName(), this); ! context.releaseService(this, this, CacheService.class); ! } ! catch (Exception e) ! { ! logger.error("Error during utilisation of service CacheService", e); ! } ! } ! } ! } Index: Server.java =================================================================== RCS file: /cvsroot/ejtools/applications/jmx.browser/src/main/org/ejtools/jmx/browser/model/Server.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** Server.java 27 Nov 2003 01:13:07 -0000 1.7 --- Server.java 13 Dec 2003 22:15:07 -0000 1.8 *************** *** 1,625 **** ! /* ! * EJTools, the Enterprise Java Tools ! * ! * Distributable under LGPL license. ! * See terms of license at www.gnu.org. ! */ ! package org.ejtools.jmx.browser.model; ! ! import java.beans.beancontext.BeanContextServices; ! import java.util.Collection; [...1221 lines suppressed...] ! protected void setCount(int count) ! { ! int oldCount = this.count; ! this.count = count; ! this.firePropertyChange("count", new Integer(oldCount), new Integer(count)); ! } ! ! ! /** ! * Setter for the defaultDomain attribute ! * ! * @param defaultDomain The new defaultDomain value ! */ ! protected void setDefaultDomain(String defaultDomain) ! { ! String oldDomain = this.defaultDomain; ! this.defaultDomain = defaultDomain; ! this.firePropertyChange("defaultDomain", oldDomain, defaultDomain); ! } ! } |