[jboss-dev-forums] [Design of POJO Server] - Re: Values for ComponentType to pass to ManagementView
scott.stark@jboss.org
do-not-reply at jboss.com
Tue Apr 17 19:49:19 EDT 2007
The enum would not restrict the allowed types as that would continue to be whatever deployers decide to add. It would be a separate enum from the ComponentType interface that had a ComponentType accessor, for example:
| public interface KnownComponentTypes
| {
| public enum DataSourceTypes
| {
| XA("DataSource", "XA"), LocalTx("DataSource", "LocalTx"), NoTX("DataSource", "NoTX");
|
| private final String type;
| private final String subtype;
| private DataSourceTypes(String type, String subtype)
| {
| this.type = type;
| this.subtype = subtype;
| }
|
| public ComponentType getType()
| {
| return new ComponentType(type, subtype);
| }
| };
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4038179#4038179
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4038179
More information about the jboss-dev-forums
mailing list