|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.managed.plugins.ManagedOperationImpl
public class ManagedOperationImpl
A default implementation of ManagedOperation
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.jboss.managed.api.ManagedOperation |
---|
ManagedOperation.Impact |
Constructor Summary | |
---|---|
ManagedOperationImpl(String name,
String description)
|
|
ManagedOperationImpl(String name,
String description,
ManagedOperation.Impact impact,
ManagedParameter[] parameters,
MetaType returnType)
|
Method Summary | ||
---|---|---|
String |
getDescription()
Get the operation description |
|
ManagedOperation.Impact |
getImpact()
Get the impact of the operation |
|
String |
getName()
Get the name of the operation |
|
ManagedParameter[] |
getParameters()
The parameter information for the operation arguments. |
|
String[] |
getReflectionSignature()
Get the operation signature |
|
MetaType |
getReturnType()
The MetaType for the operation return value. |
|
|
getTransientAttachment(Class<T> expectedType)
Get an attachment from the parameter, uses the expected type as both the name and to cast the resulting object. |
|
Object |
getTransientAttachment(String name)
Get a transient attachment from the parameter. |
|
MetaValue |
invoke(MetaValue... param)
This does not have a meaningful implementation because the target is unknown. |
|
void |
setDescription(String description)
|
|
void |
setImpact(ManagedOperation.Impact impact)
|
|
void |
setName(String name)
|
|
void |
setParameters(ManagedParameter[] parameters)
|
|
void |
setReturnType(MetaType returnType)
|
|
void |
setTransientAttachment(String name,
Object attachment)
Set an transient attachment against the parameter. |
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ManagedOperationImpl(String name, String description)
public ManagedOperationImpl(String name, String description, ManagedOperation.Impact impact, ManagedParameter[] parameters, MetaType returnType)
Method Detail |
---|
public String getDescription()
ManagedOperation
getDescription
in interface ManagedOperation
public void setDescription(String description)
public ManagedOperation.Impact getImpact()
ManagedOperation
getImpact
in interface ManagedOperation
public void setImpact(ManagedOperation.Impact impact)
public String getName()
ManagedOperation
getName
in interface ManagedOperation
public void setName(String name)
public ManagedParameter[] getParameters()
ManagedOperation
getParameters
in interface ManagedOperation
public void setParameters(ManagedParameter[] parameters)
public MetaType getReturnType()
ManagedOperation
getReturnType
in interface ManagedOperation
public void setReturnType(MetaType returnType)
public String[] getReflectionSignature()
ManagedOperation
getReflectionSignature
in interface ManagedOperation
public MetaValue invoke(MetaValue... param)
invoke
in interface ManagedOperation
param
- the varags for the operation parameters.
public String toString()
toString
in class Object
public <T> T getTransientAttachment(Class<T> expectedType)
TransientAttachments
getTransientAttachment
in interface TransientAttachments
T
- the expected typeexpectedType
- the expected type
public Object getTransientAttachment(String name)
TransientAttachments
getTransientAttachment
in interface TransientAttachments
name
- the name
TransientAttachments.setTransientAttachment(String, Object)
public void setTransientAttachment(String name, Object attachment)
TransientAttachments
setTransientAttachment
in interface TransientAttachments
name
- the nameattachment
- the attachment, pass null to remove an attachment
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |