-
1. Re: Values for ComponentType to pass to ManagementView
starksm64 Apr 17, 2007 7:08 PM (in response to bytor99999)I was thinking of a KnownComponentTypes that provides enums for the well known component types. I could support returning the current set of known component types from the ManagementView as well.
-
2. Re: Values for ComponentType to pass to ManagementView
bytor99999 Apr 17, 2007 7:15 PM (in response to bytor99999)Yes. The thing I keep thinking,though, is that if there was an Enum, is that going to limit the ComponentTypes that the ProfileService supports?
Or should it remain wide open to allow unknown types that can be managed.
Anyway, I am just getting my feet wet with the ProfileService.
Thanks Scott
Mark -
3. Re: Values for ComponentType to pass to ManagementView
starksm64 Apr 17, 2007 7:49 PM (in response to bytor99999)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); } }; }
-
4. Re: Values for ComponentType to pass to ManagementView
bytor99999 Apr 17, 2007 7:55 PM (in response to bytor99999)Very cool.
You also answered my next question regarding Datasource subtypes. :)
Mark