pl.bristleback.server.bristle.config
Class ActionInformationResolver

java.lang.Object
  extended by pl.bristleback.server.bristle.config.ActionInformationResolver

public final class ActionInformationResolver
extends java.lang.Object

Class used to resolve and bind information about annotated action class. Provides check of annotation appearance in action class. In addition to binding basic information about action class, tokenizer and binder fields occurring in processed action class will be resolved and initialized using annotations. See Tokenizer and ObjectBinder classes for more information.
It is a helper class for ActionAnnotationsProcessor implementations, but it can be helpful in any other implementations. Note that this class does not create any remote action instance, it is eventually (if action class is set to be singleton) done by ActionsInitializer class.

Created on: 2010-09-03 16:04:52

Author:
Wojciech Niemiec

Constructor Summary
ActionInformationResolver()
           
 
Method Summary
 RemoteActionInformation getActionInformation(java.lang.Class<? extends RemoteAction> actionClass, BristleConfiguration configuration)
          Gets action information wrapper for given action class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionInformationResolver

public ActionInformationResolver()
Method Detail

getActionInformation

public RemoteActionInformation getActionInformation(java.lang.Class<? extends RemoteAction> actionClass,
                                                    BristleConfiguration configuration)
Gets action information wrapper for given action class.

Parameters:
actionClass - remote action class.
configuration - Bristleback plugin configuration.
Returns:
action information wrapper if everything is fine, null if action class is not annotated, exception if instance of action class cannot be created.


Copyright © 2011. All Rights Reserved.