org.ow2.shelbie.core.internal.handler
Class StatelessGogoCommand

java.lang.Object
  extended by org.apache.felix.gogo.commands.basic.AbstractCommand
      extended by org.ow2.shelbie.core.internal.handler.GogoCommand
          extended by org.ow2.shelbie.core.internal.handler.StatelessGogoCommand
All Implemented Interfaces:
org.apache.felix.service.command.Function

public class StatelessGogoCommand
extends GogoCommand

A Stateless Command is a command whose Action does not keep state in the instance. Just like EJB stateless beans, any instance of the action can be used to execute a request. That means that if the user perform multiple invocation of the same command, a new instance will be created for each execution.


Field Summary
 
Fields inherited from class org.ow2.shelbie.core.internal.handler.GogoCommand
manager
 
Constructor Summary
StatelessGogoCommand(org.apache.felix.ipojo.InstanceManager manager, org.apache.felix.gogo.commands.basic.ActionPreparator preparator)
           
 
Method Summary
 org.apache.felix.gogo.commands.Action createNewAction()
           
 void releaseAction(org.apache.felix.gogo.commands.Action action)
           
 
Methods inherited from class org.ow2.shelbie.core.internal.handler.GogoCommand
getPreparator, release
 
Methods inherited from class org.apache.felix.gogo.commands.basic.AbstractCommand
execute, getActionClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatelessGogoCommand

public StatelessGogoCommand(org.apache.felix.ipojo.InstanceManager manager,
                            org.apache.felix.gogo.commands.basic.ActionPreparator preparator)
Method Detail

createNewAction

public org.apache.felix.gogo.commands.Action createNewAction()
Specified by:
createNewAction in class org.apache.felix.gogo.commands.basic.AbstractCommand

releaseAction

public void releaseAction(org.apache.felix.gogo.commands.Action action)
                   throws Exception
Overrides:
releaseAction in class org.apache.felix.gogo.commands.basic.AbstractCommand
Throws:
Exception


Copyright © 2013 OW2 Consortium. All Rights Reserved.