Message: A new issue has been created in JIRA.
--------------------------------------------------------------------- View the issue: http://jira.codehaus.org/secure/ViewIssue.jspa?key=GERONIMO-34 Here is an overview of the issue: --------------------------------------------------------------------- Key: GERONIMO-34 Summary: JSR77 statistics implementation Type: Improvement Status: Unassigned Priority: Minor Time Spent: Unknown Remaining: Unknown Project: Apache Geronimo Components: management Assignee: Reporter: Gianny DAMOUR Created: Thu, 28 Aug 2003 3:19 AM Updated: Thu, 28 Aug 2003 3:19 AM Description: Implementation of the javax.management.j2ee.statistics.* interfaces. These implementations are located in the org.apache.geronimo.management.impl.statistics package. More accurately, for each Stats interface X which extends Y, two classes have been created: - GeronimoX: X enhancement specific to Geronimo; and - XImpl: GeronimoX implementation. Cheers, Gianny PS: the implementations have been generated via the following templates, hence, if the templates are fine, then one can skip "safely" the check of each file. ============================================================= GeronimoX has been generated by applying this pseudo-template: public interface GeronimoX extends GeronimoY, X { #foreach( attribute of type Statistic ) public Geronimo<attribute type> provide<attribute name>(); #end #foreach( attribute of simple type (int, long, String, etc) ) public void set<attribute name>()(<attribute type> aValue); #end #foreach( attribute of type array ) public void add<attribute name>()(<attribute type> aStats); public void remove<attribute name>()(<attribute type> aStats); #end } ============================================================= XImpl has been generated by applying this pseudo-template: public class XImpl extends YImpl implements GeronimoX { #foreach( attribute of simple type (int, long, String, etc) ) private <attribute type> m_<attribute name>; #end #foreach( attribute of type array ) private Collection m_<attribute name>; #end public XImpl()() { #foreach( attribute of type array ) m_<attribute name> = new ArrayList(); #end } #foreach( attribute of type Statistic ) public <attribute type> get<attribute name>() { return (<attribute type>) getStatistic(Types.<attribute NAME>.getName()); } public Geronimo<attribute type> provide<attribute name>() { Geronimo<attribute name> stats = m_statsFactory.factory<attribute type>()(Types..getName(), Types.<attribute NAME>.getDescription(), this); addStatistics(stats); return stats; } #end #foreach( attribute of simple type (int, long, String, etc) ) public <attribute type> get<attribute name>() { return m_<attribute name>; } public void set<attribute name>()(<attribute type> aValue) { m_<attribute name> = aValue; } #end #foreach( attribute of type array ) public <attribute type>[] get<attribute name>() { return (<attribute type>[]) m_<attribute name>.toArray(new <attribute type>[0]); } public void add<attribute name>()(<attribute type> aStats) { m_<attribute type>.add(aStats); } public void remove<attribute name>()(<attribute type> aStats) { m_<attribute type>.remove(aStats); } #end /** * Attributes supported by <attribute name> */ public static final class Types { #foreach( attribute of type Statistic ) public static final Type <attribute NAME> = new Type("<attribute name>", "<attribute name>"); #end } } --------------------------------------------------------------------- JIRA INFORMATION: This message is automatically generated by JIRA. If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira