|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.qpid.management.wsdm.capabilities.MBeanCapabilityBuilder
public class MBeanCapabilityBuilder
Builder for capability class that will implements the interface and the behaviour of the underlying JMX Entity. The product of this builder (capability class) will be used for create a new instance of the corresponding capability. It will be the "adapter" between WS-Resource and JMX MBean.
Nested Class Summary | |
---|---|
(package private) static interface |
MBeanCapabilityBuilder.EndAttributesHandler
Handler interface definining operation needed to be peformed (by a concrete implementor) when the "endAttributes" director callback happens. |
Field Summary | |
---|---|
(package private) MBeanCapabilityBuilder.EndAttributesHandler |
_atLeastThereIsOneProperty
This is the concrete implementation of the internal interface EndAttributesHandler that is activated when this builder detects the presence of at least one property on the capability class. |
(package private) javassist.CtClass |
_capabilityClassDefinition
|
(package private) IArtifactBuilder |
_classNotAvailable
This is the active state for this builder when the requested class has never been built. |
(package private) MBeanCapabilityBuilder.EndAttributesHandler |
_endAttributeHandler
|
(package private) MBeanCapabilityBuilder.EndAttributesHandler |
_noPropertyHasBeenDefined
This is the concrete implementation of the internal interface EndAttributesHandler that is activated when this builder detects that there are no properties defined for the capability class. |
(package private) StringBuilder |
_properties
|
(package private) IArtifactBuilder |
_state
|
Constructor Summary | |
---|---|
MBeanCapabilityBuilder()
|
Method Summary | |
---|---|
void |
begin(ObjectName objectName)
First callback : this method is called at the begin of the director process. |
void |
endAttributes()
Determines what needs to be done when all attributes metadata has been notified to this builder. |
void |
endOperations()
Director callback. |
(package private) String |
generateGetter(String type,
String name,
String plainName)
Generates the get accessor method for the given property. |
(package private) String |
generateSetter(String type,
String name,
String plainName)
Generates the set accessor method for the given property. |
(package private) Class<MBeanCapability> |
getCapabilityClass()
Returns the capability class (the product of this builder). |
(package private) String |
getNameForAccessors(String name)
Returns a name that will be used in accessor methods. |
void |
onAttribute(MBeanAttributeInfo attribute)
Director callback. |
void |
onOperation(MBeanOperationInfo operation)
Director callback. |
void |
setEnvironment(org.apache.muse.core.Environment environment)
Injects the module environment on this builder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
final MBeanCapabilityBuilder.EndAttributesHandler _atLeastThereIsOneProperty
final MBeanCapabilityBuilder.EndAttributesHandler _noPropertyHasBeenDefined
IArtifactBuilder _classNotAvailable
StringBuilder _properties
javassist.CtClass _capabilityClassDefinition
MBeanCapabilityBuilder.EndAttributesHandler _endAttributeHandler
IArtifactBuilder _state
Constructor Detail |
---|
public MBeanCapabilityBuilder()
Method Detail |
---|
public void onAttribute(MBeanAttributeInfo attribute) throws BuilderException
onAttribute
in interface IArtifactBuilder
attribute
- the attribute metadata.
BuilderException
- bytecode manipulation / creation failure.public void begin(ObjectName objectName) throws BuilderException
begin
in interface IArtifactBuilder
objectName
- the name of the target JMX entity of this capability.
BuilderException
- when the initialization fails.public void onOperation(MBeanOperationInfo operation) throws BuilderException
onOperation
in interface IArtifactBuilder
operation
- the operation metadata.
BuilderException
- bytecode manipulation / creation failure.Class<MBeanCapability> getCapabilityClass()
public void endAttributes() throws BuilderException
endAttributes
in interface IArtifactBuilder
BuilderException
- when something fails during this phase.public void endOperations() throws BuilderException
endOperations
in interface IArtifactBuilder
BuilderException
- issues on this method are basically class loading related.public void setEnvironment(org.apache.muse.core.Environment environment)
setEnvironment
in interface IArtifactBuilder
environment
- the module environment.String generateGetter(String type, String name, String plainName)
type
- the type of the property.name
- the name of the property with the first letter capitalized.plainName
- the plain name of the property.
String generateSetter(String type, String name, String plainName)
type
- the type of the property.name
- the name of the property with the first letter capitalized.plainName
- the plain name of the property.
String getNameForAccessors(String name)
name
- the plain name of the attribute.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |