[jboss-dev-forums] [Design of Management Features on JBoss] - Re: JBAS-6647, templates
ips
do-not-reply at jboss.com
Mon Mar 23 08:58:05 EDT 2009
The way we do it in the RHQ configuration API is each configurable entity can have an arbitrary # of uniquely named templates, but the template with the name "default" is the default template, which is used in certain use cases where the client just wants a template to use to create an entity of that type and doesn't care or know about any other template that may exist.
API-wise, we provide both a getTemplate(String name) API and a getDefaultTemplate() API, which is actually just a shortcut for getTemplate("default").
http://svn.rhq-project.org/repos/rhq/trunk/modules/core/domain/src/main/java/org/rhq/core/domain/configuration/definition/ConfigurationDefinition.java
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4220221#4220221
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4220221
More information about the jboss-dev-forums
mailing list