pl.bristleback.server.bristle.actions
Class ActionsContainer

java.lang.Object
  extended by pl.bristleback.server.bristle.actions.ActionsContainer

public class ActionsContainer
extends java.lang.Object

Class containing information about loaded actions.

Created on: 2010-09-03 16:02:05

Author:
Wojciech Niemiec

Constructor Summary
ActionsContainer()
          Creates a new empty actions container.
 
Method Summary
 void addAction(RemoteActionInformation actionInformation)
          Adds an action wrapper to map.
 RemoteActionInformation getAction(java.lang.String actionName)
          Gets an action wrapper for given action name.
 java.util.Collection<RemoteActionInformation> getAllActions()
          Gets all loaded action wrappers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionsContainer

public ActionsContainer()
Creates a new empty actions container.

Method Detail

getAllActions

public java.util.Collection<RemoteActionInformation> getAllActions()
Gets all loaded action wrappers.

Returns:
collection of all loaded actions, wrapped into RemoteActionInformation object.

getAction

public RemoteActionInformation getAction(java.lang.String actionName)
Gets an action wrapper for given action name.

Parameters:
actionName - action name.
Returns:
action wrapper if action was found or null otherwise.

addAction

public void addAction(RemoteActionInformation actionInformation)
Adds an action wrapper to map. Action name will be used as a key of entry.

Parameters:
actionInformation - action wrapper.


Copyright © 2011. All Rights Reserved.