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()
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 <T> T getTransientAttachment(Class<T> expectedType)
TransientAttachments
getTransientAttachment
in interface TransientAttachments
T
- the expected typeexpectedType
- the expected typepublic Object getTransientAttachment(String name)
TransientAttachments
getTransientAttachment
in interface TransientAttachments
name
- the nameTransientAttachments.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 attachmentCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.