pl.bristleback.server.bristle.binding
Class DefaultBindingsProcessor

java.lang.Object
  extended by pl.bristleback.server.bristle.binding.DefaultBindingsProcessor
All Implemented Interfaces:
BindingsProcessor

public class DefaultBindingsProcessor
extends java.lang.Object
implements BindingsProcessor

It is a default bindings processor. If binding annotation has not filled root name, this processor sets root element name equal to processed object binder field name. Token variable with root element name as key will be chosen by binding engine in binding operation.

Created on: 2011-02-20 21:27:21

Author:
Wojciech Niemiec

Constructor Summary
DefaultBindingsProcessor()
           
 
Method Summary
 java.util.List<ActionClassElement<ObjectBinder>> processBindings(java.lang.Class<? extends RemoteAction> actionClass, BristleConfiguration configuration)
          Processes Bind and nested Property annotations in given action classes, stores information about bindings in object binders.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultBindingsProcessor

public DefaultBindingsProcessor()
Method Detail

processBindings

public java.util.List<ActionClassElement<ObjectBinder>> processBindings(java.lang.Class<? extends RemoteAction> actionClass,
                                                                        BristleConfiguration configuration)
Description copied from interface: BindingsProcessor
Processes Bind and nested Property annotations in given action classes, stores information about bindings in object binders. Root element and every property elements should be wrapped into NestedFieldInformation objects.

Specified by:
processBindings in interface BindingsProcessor
Parameters:
actionClass - action class to process.
configuration - Bristleback plugin configuration, containing information about default binding engine.
Returns:
list of action class elements, object binders.
See Also:
Creating root and adding children.


Copyright © 2011. All Rights Reserved.