org.beanlet.event
Interface OperationEvent

All Superinterfaces:
Event

public interface OperationEvent
extends Event

Event for invoking operations.

See Also:
Operation, OperationMetaData

Method Summary
 String getOperationName()
          Returns the name of the operation to be invoked.
 Object[] getParameters()
          Returns the parameters target for invocation.
 Class<?>[] getParameterTypes()
          Returns the parameter types that identity the operation.
 OperationEvent setOperationName(String name)
          Sets the name of the operation to be invoked.
 OperationEvent setParameters(Object... args)
          Sets the parameters target for invocation.
 OperationEvent setParameterTypes(Class<?>[] parameterTypes)
          Sets the parameter types for identifing the operation.
 

Method Detail

getOperationName

String getOperationName()
Returns the name of the operation to be invoked.

Returns:
name of the operation to be invoked.

setOperationName

OperationEvent setOperationName(String name)
Sets the name of the operation to be invoked.

Parameters:
name - operation name.

getParameterTypes

Class<?>[] getParameterTypes()
Returns the parameter types that identity the operation.

Returns:
a defensive copy of operation parameter types.

setParameterTypes

OperationEvent setParameterTypes(Class<?>[] parameterTypes)
Sets the parameter types for identifing the operation.

Parameters:
parameterTypes - operation parameter types.

getParameters

Object[] getParameters()
Returns the parameters target for invocation.

Returns:
parameters target for invocation.

setParameters

OperationEvent setParameters(Object... args)
Sets the parameters target for invocation.

Parameters:
args - parameters target for invocation.


Copyright © 2006-2012. All Rights Reserved.