Class MetaDataBuilder
java.lang.Object
org.exoplatform.container.management.MetaDataBuilder
A class that build the management view meta data of a specified class.
The following rules do apply to the class from which meta data are constructed:- The class must be annotated by
Managed - The class may be annoated by
ManagedDescription - Any property described by its getter and/or setter getter annotated
by
Managedis exposed as an attribute - Any property providing an annotated getter is readable
- Any property providing an annotated setter is writable
- Any getter/setter annotated by
ManagedNameredefines the attribute name - Any getter/setter annotated by
ManagedDescriptiondefines the attribute description - When corresponding getter/setter redefines the attribute name, the value must be the same otherwhise an exception is thrown at built time
- Any method annotated by
Managedis exposed as a management operation - Any method annotated by
ManagedDescriptiondefines the operation description - Any non setter/getter method annotated by
ManagedNamecauses a built time exception - Any method argument annotated by
ManagedNamedefines the management name of the corresponding operation parameter - Any method argument annotated by
ManagedDescriptiondefines the management description of the corresponding operation parameter
- Version:
- $Revision$
- Author:
- Julien Viet
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MetaDataBuilder
Create a new builder.- Parameters:
clazz- the clazz- Throws:
IllegalArgumentException- if the class is null or is not annotated byManaged
-
-
Method Details
-
isBuildable
public boolean isBuildable() -
build
Build the info.- Returns:
- returns the info
- Throws:
IllegalStateException- raised by any build time issue
-