public class ManagedOperationImpl extends Object implements ManagedOperation
ManagedOperation.Impact| Constructor and Description |
|---|
ManagedOperationImpl(String name,
String description) |
ManagedOperationImpl(String name,
String description,
ManagedOperation.Impact impact,
ManagedParameter[] parameters,
MetaType returnType) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
<T> T |
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() |
public ManagedOperationImpl(String name, String description, ManagedOperation.Impact impact, ManagedParameter[] parameters, MetaType returnType)
public String getDescription()
ManagedOperationgetDescription in interface ManagedOperationpublic void setDescription(String description)
public ManagedOperation.Impact getImpact()
ManagedOperationgetImpact in interface ManagedOperationpublic void setImpact(ManagedOperation.Impact impact)
public String getName()
ManagedOperationgetName in interface ManagedOperationpublic void setName(String name)
public ManagedParameter[] getParameters()
ManagedOperationgetParameters in interface ManagedOperationpublic void setParameters(ManagedParameter[] parameters)
public MetaType getReturnType()
ManagedOperationgetReturnType in interface ManagedOperationpublic void setReturnType(MetaType returnType)
public String[] getReflectionSignature()
ManagedOperationgetReflectionSignature in interface ManagedOperationpublic MetaValue invoke(MetaValue... param)
invoke in interface ManagedOperationparam - the varags for the operation parameters.public <T> T getTransientAttachment(Class<T> expectedType)
TransientAttachmentsgetTransientAttachment in interface TransientAttachmentsT - the expected typeexpectedType - the expected typepublic Object getTransientAttachment(String name)
TransientAttachmentsgetTransientAttachment in interface TransientAttachmentsname - the nameTransientAttachments.setTransientAttachment(String, Object)public void setTransientAttachment(String name, Object attachment)
TransientAttachmentssetTransientAttachment in interface TransientAttachmentsname - the nameattachment - the attachment, pass null to remove an attachmentCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.