Property Editor Management


JavaBeans property editors are used in JBoss to read data types from service files and for editing values in the JMX Console. The java.bean.PropertyEditorManager class controls the java.bean. PropertyEditor instances in the system. The property editor manager can be managed in JBoss by using the org.jboss.varia.property. PropertyEditorManagerService MBean. The property editor manager service is configured in deploy/properties-service.xml and supports the following attributes:

  • BootstrapEditors This is a listing of property_editor_class=editor_value_type_class pairs that define the property editor-to-type mappings that should be preloaded into the property editor manager. The value type of this attribute is a string so that it may be set from a string without requiring a custom property editor.

  • Editors This serves the same function as the BootstrapEditors attribute, but its type is java.util. Properties. Setting it from a string value in a service file requires a custom property editor for properties' objects to be loaded. JBoss provides a suitable property editor.

  • EditorSearchPath This attribute allows you to set the editor package's search path on the PropertyEditorManager. Because there can be only one search path, setting this value overrides the default search path established by JBoss. If you set this attribute, make sure to add the JBoss search path, including org.jboss.util.propertyeditor and org.jboss.mx.util.propertyeditor, to the front of the new search path.



JBoss 4. 0(c) The Official Guide
JBoss 4.0 - The Official Guide
ISBN: B003D7JU58
EAN: N/A
Year: 2006
Pages: 137

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net