org.baswell.easybeans
Enum EasyBeanExposure

java.lang.Object
  extended by java.lang.Enum<EasyBeanExposure>
      extended by org.baswell.easybeans.EasyBeanExposure
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<EasyBeanExposure>

public enum EasyBeanExposure
extends java.lang.Enum<EasyBeanExposure>

The exposure level for the MBean for it's attributes, operations, and constructors.


Enum Constant Summary
ALL
          Expose any annotated public fields, methods and constructors and any unannotated public fields (read & write) and methods.
ANNOTATED
          Only exposure public fields, methods and constructors annotated with EasyBeanAttribute , EasyBeanOperation or EasyBeanConstructor.
ANNOTATED_AND_READ_ONLY
          Expose any annotated public fields, methods and constructors and any unannotated public fields (read only) and getter methods.
 
Method Summary
static EasyBeanExposure valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static EasyBeanExposure[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ANNOTATED

public static final EasyBeanExposure ANNOTATED
Only exposure public fields, methods and constructors annotated with EasyBeanAttribute , EasyBeanOperation or EasyBeanConstructor.


ANNOTATED_AND_READ_ONLY

public static final EasyBeanExposure ANNOTATED_AND_READ_ONLY
Expose any annotated public fields, methods and constructors and any unannotated public fields (read only) and getter methods.


ALL

public static final EasyBeanExposure ALL
Expose any annotated public fields, methods and constructors and any unannotated public fields (read & write) and methods.

Method Detail

values

public static EasyBeanExposure[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (EasyBeanExposure c : EasyBeanExposure.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EasyBeanExposure valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null