org.jboss.managed.api
Interface ManagedOperation

All Superinterfaces:
Serializable, TransientAttachments
All Known Implementing Classes:
ManagedOperationImpl

public interface ManagedOperation
extends Serializable, TransientAttachments

A representation of a managed operation.

Version:
$Revision: 89200 $
Author:
Scott.Stark@jboss.org

Nested Class Summary
static class ManagedOperation.Impact
          The side-effect impact of invoking an operation
 
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.
 MetaValue invoke(MetaValue... param)
          Invoke the operation given its parameter values.
 
Methods inherited from interface org.jboss.managed.api.TransientAttachments
getTransientAttachment, getTransientAttachment, setTransientAttachment
 

Method Detail

getDescription

String getDescription()
Get the operation description

Returns:
the operation description

getName

String getName()
Get the name of the operation

Returns:
the name of the operation

getImpact

ManagedOperation.Impact getImpact()
Get the impact of the operation

Returns:
the side-effect type invoking the operation has.

getReturnType

MetaType getReturnType()
The MetaType for the operation return value.

Returns:
MetaType for the operation return value.

getParameters

ManagedParameter[] getParameters()
The parameter information for the operation arguments. An empty signature array is returned if the operation takes no arguments.

Returns:
parameter information for the operation arguments.

getReflectionSignature

String[] getReflectionSignature()
Get the operation signature

Returns:

invoke

MetaValue invoke(MetaValue... param)
Invoke the operation given its parameter values.

Parameters:
param - the varags for the operation parameters.
Returns:
the MetaValue for the result.


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.