com.mycompany.myproject.api
Class MyFunctionImpl

java.lang.Object
  extended byorg.xins.common.manageable.Manageable
      extended byorg.xins.server.Function
          extended bycom.mycompany.myproject.api.MyFunction
              extended bycom.mycompany.myproject.api.MyFunctionImpl

public class MyFunctionImpl
extends MyFunction

Implementation of the MyFunction function.

Version:
$Revision: 1.6 $ $Date: 2007/03/12 10:46:15 $
Author:
Anthony Goubard

Nested Class Summary
 
Nested classes inherited from class com.mycompany.myproject.api.MyFunction
MyFunction.Request, MyFunction.Result, MyFunction.SuccessfulResult, MyFunction.UnsuccessfulResult
 
Nested classes inherited from class org.xins.common.manageable.Manageable
Manageable.State
 
Field Summary
 
Fields inherited from class org.xins.common.manageable.Manageable
BOOTSTRAPPED, BOOTSTRAPPING, DEINITIALIZING, INITIALIZING, UNUSABLE, USABLE
 
Constructor Summary
MyFunctionImpl(APIImpl api)
          Constructs a new MyFunctionImpl instance.
 
Method Summary
 MyFunction.Result call(MyFunction.Request request)
          Calls this function.
 
Methods inherited from class com.mycompany.myproject.api.MyFunction
handleCall
 
Methods inherited from class org.xins.server.Function
getAPI, getName, isEnabled, setEnabled
 
Methods inherited from class org.xins.common.manageable.Manageable
assertUsable, bootstrap, bootstrapImpl, deinit, deinitImpl, getState, init, initImpl, isBootstrapped, isUsable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyFunctionImpl

public MyFunctionImpl(APIImpl api)
Constructs a new MyFunctionImpl instance.

Parameters:
api - the API to which this function belongs, guaranteed to be not null.
Method Detail

call

public final MyFunction.Result call(MyFunction.Request request)
                             throws Throwable
Description copied from class: MyFunction
Calls this function. If the function fails, it may throw any kind of exception. All exceptions will be handled by the caller.

Specified by:
call in class MyFunction
Parameters:
request - the request, never null.
Returns:
the result of the function call, should never be null.
Throws:
Throwable - if anything went wrong.