[jboss-cvs] JBossAS SVN: r69713 - projects/microcontainer/trunk/managed/src/main/org/jboss/managed/api/annotation.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Feb 7 17:14:50 EST 2008
Author: scott.stark at jboss.org
Date: 2008-02-07 17:14:50 -0500 (Thu, 07 Feb 2008)
New Revision: 69713
Modified:
projects/microcontainer/trunk/managed/src/main/org/jboss/managed/api/annotation/ManagementProperty.java
Log:
JBMICROCONT-239, add an includeInTemplate flag to indicate if the property should be in the deployment template
Modified: projects/microcontainer/trunk/managed/src/main/org/jboss/managed/api/annotation/ManagementProperty.java
===================================================================
--- projects/microcontainer/trunk/managed/src/main/org/jboss/managed/api/annotation/ManagementProperty.java 2008-02-07 22:10:42 UTC (rev 69712)
+++ projects/microcontainer/trunk/managed/src/main/org/jboss/managed/api/annotation/ManagementProperty.java 2008-02-07 22:14:50 UTC (rev 69713)
@@ -28,6 +28,7 @@
import org.jboss.managed.api.Fields;
import org.jboss.managed.api.ManagedProperty;
+import org.jboss.managed.spi.factory.InstanceClassFactory;
import org.jboss.managed.spi.factory.ManagedPropertyConstraintsPopulator;
import org.jboss.managed.spi.factory.ManagedPropertyConstraintsPopulatorFactory;
@@ -62,6 +63,9 @@
/** Whether to ignore this property */
boolean ignored() default false;
+ /** Whether this property should be included in a deployment template */
+ boolean includeInTemplate() default false;
+
/** The views this property should be used in */
ViewUse[] use() default {ViewUse.CONFIGURATION};
@@ -71,6 +75,8 @@
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> marshallerFactory() default NULL_MARSHALLER_FACTORY.class;
/**
* Used in {@link ManagementProperty#constraintsFactory()} to
@@ -100,4 +106,12 @@
public static abstract class NULL_PROPERTY_FACTORY implements ManagedProperty
{
}
+
+ /**
+ * Used in {@link ManagementProperty#propertyFactory()} to
+ * indicate that no ManagedProperty factory is defined.
+ */
+ public static abstract class NULL_MARSHALLER_FACTORY implements InstanceClassFactory
+ {
+ }
}
More information about the jboss-cvs-commits
mailing list