[jboss-jira] [JBoss JIRA] Resolved: (JBMAN-45) Add transient managed attachments to ManagedProperty/ManagedObject
Scott M Stark (JIRA)
jira-events at lists.jboss.org
Mon Nov 24 12:34:36 EST 2008
[ https://jira.jboss.org/jira/browse/JBMAN-45?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott M Stark resolved JBMAN-45.
--------------------------------
Resolution: Done
The transient attachment apis exist at the ManagedObject and ManagedProperty levels.
> Add transient managed attachments to ManagedProperty/ManagedObject
> ------------------------------------------------------------------
>
> Key: JBMAN-45
> URL: https://jira.jboss.org/jira/browse/JBMAN-45
> Project: JBoss Managed
> Issue Type: Feature Request
> Components: managedobject
> Affects Versions: JBossMan.2.0.0.CR5
> Reporter: Scott M Stark
> Assignee: Scott M Stark
> Fix For: JBossMan.2.0.0.GA
>
>
> The following ManagementProperty/ManagementObject annotation fields can leak server side type information:
> /** The class to use for the ManagedProperty implementation */
> Class<? extends ManagedProperty> propertyFactory() default NULL_PROPERTY_FACTORY.class;
> /** The class to use for the ManagedProperty Fields implementation */
> Class<? extends Fields> fieldsFactory() default NULL_FIELDS_FACTORY.class;
> /** The constraints, allowed values populator factory */
> Class<? extends ManagedPropertyConstraintsPopulatorFactory> constraintsFactory() default NULL_CONSTRAINTS.class;
> /** The constraints, allowed values populator factory */
> Class<? extends InstanceClassFactory<? extends Serializable>> marshallerFactory() default NULL_MARSHALLER_FACTORY.class;
> These should be included in transient attachments on the server. To support this transient attachment acessors will be added to the ManagedProperty/ManagedObject interfaces, and the following annotations added:
> public @interface ManagementPropertyFactory
> {
> /** The class to use for the ManagedProperty implementation */
> Class<? extends ManagedProperty> value();
> }
> public @interface FieldsFactory
> {
> /** The class to use for the ManagedProperty Fields implementation */
> Class<? extends Fields> value();
> }
> public @interface ConstraintsPopulatorFactory
> {
> /** The constraints, allowed values populator factory */
> Class<? extends ManagedPropertyConstraintsPopulatorFactory> value();
> }
> The InstanceClassFactory usage should be replaced with MetaMapping:
> public @interface MetaMapping
> {
> Class<? extends MetaMapper<?>> value();
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list