edu.washington.cs.sounddetector.server.api
Class MethodLogic

java.lang.Object
  extended by edu.washington.cs.sounddetector.server.api.MethodLogic

public class MethodLogic
extends Object

MethodLogic provides a convenience method for executing Method objects.

Author:
the.dylan.price@gmail.com

Constructor Summary
MethodLogic(ReadLogic rl, WriteLogic wl, DeleteLogic dl)
           
 
Method Summary
 MethodResult<? extends Method> execute(Method method)
          Executes the given method and returns the result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodLogic

public MethodLogic(ReadLogic rl,
                   WriteLogic wl,
                   DeleteLogic dl)
Method Detail

execute

public MethodResult<? extends Method> execute(Method method)
                                       throws SoundDetectorInternalErrorException
Executes the given method and returns the result.

Parameters:
method - the method to execute
Returns:
the MethodResult corresponding to the result of execution
Throws:
SoundDetectorInternalErrorException - if an internal server error occurred


Copyright © 2012. All Rights Reserved.