org.spicefactory.cinnamon.config
Class OperationConfig

java.lang.Object
  extended by org.spicefactory.cinnamon.config.OperationConfig

public class OperationConfig
extends Object

Represents a single operation of a service.

The name of the operation is usually the method name of the Java service interface. Since methods can be overloaded in Java but not in AS3, you can use the alias property to specify a different name for the method in the client side service interface. Usually name and alias property have the same value.

Author:
Jens Halm

Constructor Summary
OperationConfig(String name, String alias, Class<?>[] paramTypes)
          Create a new OperationConfig instance for the given operation name an parameter types.
 
Method Summary
 boolean equals(Object other)
           
 String getAlias()
          Returns the alias of the operation (the client side method name).
 String getName()
          Returns the name of the operation (the server side method name).
 Class<?>[] getParameterTypes()
          Returns the parameter types of this operation.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OperationConfig

public OperationConfig(String name,
                       String alias,
                       Class<?>[] paramTypes)
Create a new OperationConfig instance for the given operation name an parameter types.

Parameters:
name - the name of the operation (the server side method name)
alias - the alias of the operation (the client side method name)
paramTypes - the parameter types of the operation
Method Detail

getName

public String getName()
Returns the name of the operation (the server side method name).

Returns:
the name of the operation

getAlias

public String getAlias()
Returns the alias of the operation (the client side method name).

Returns:
the alias of the operation

getParameterTypes

public Class<?>[] getParameterTypes()
Returns the parameter types of this operation.

Returns:
the parameter types of this operation

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object