[
https://jira.jboss.org/jira/browse/JBMAN-77?page=com.atlassian.jira.plugi...
]
Scott M Stark resolved JBMAN-77.
--------------------------------
Fix Version/s: JBossMan.2.1.0.CR8
Resolution: Done
Changes include:
public @interface ManagementProperty
{
...
/** A string representation of the property default value if not empty
*/
String defaultValue() default AnnotationDefaults.EMPTY_STRING;
A DefaultValueBuilder interface:
/**
* Convert a string representation of a default value into a MetaValue
*
* @author Scott.Stark(a)jboss.org
* @version $Revision:$
*/
public interface DefaultValueBuilder
{
public MetaType getType();
public MetaValue buildMetaValue(String value)
throws Exception;
}
and a DefaultValueBuilderFactory annotation:
/**
* An annotation describing the DefaultValueBuilder implementation
* for a property.
* This can be used on fields, methods for an individual property
*
* @author Scott.Stark(a)jboss.org
* @version $Revision:$
*/
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface DefaultValueBuilderFactory
{
/** The constraints, allowed values populator factory */
Class<? extends DefaultValueBuilder> value();
}
There are implementations of DefaultValueBuilder for all of the SimpleMetaTypes.
Support default values
----------------------
Key: JBMAN-77
URL:
https://jira.jboss.org/jira/browse/JBMAN-77
Project: JBoss Managed
Issue Type: Feature Request
Affects Versions: JBossMan.2.1.0.CR7
Reporter: Scott M Stark
Assignee: Scott M Stark
Fix For: JBossMan.2.1.0.CR8
One feature jon has is an ability to unset managed property values which essentially
restores them to the component specfic default. We would need to pull the default values
into the managed property layer so that when a property was removed, we can undo any
updates to return the property back to is default 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