pl.bristleback.server.bristle.binding
Annotation Type Bind


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface Bind

This annotation defines complex object binding operation. Each property must be included in properties() to be injected into object. Property getters and setters are required to ensure proper working of binding. Currently, this annotation is processed only in action classes. Implementations of BindingsProcessor are used to process this annotation. Default bindings processor and default binding engine can be changed by setting correspondent property in jwebsocket.xml.

Created on: 2011-01-27 17:54:49

Author:
Wojciech Niemiec
See Also:
Default binding engine, Bindings processor

Required Element Summary
 Property[] properties
          List of included properties.
 
Optional Element Summary
 java.lang.Class<? extends BindingEngine> engine
          Engine used to process this annotation.
 java.lang.String rootName
          Name of the token element that will be used as root by binding engine.
 

Element Detail

properties

public abstract Property[] properties
List of included properties.

Returns:
List of included properties.

rootName

public abstract java.lang.String rootName
Name of the token element that will be used as root by binding engine. For example, with rootName value "root", engine should check whether token contains element with key "root" and use it as main container of processed object values.

Returns:
root element name.
Default:
""

engine

public abstract java.lang.Class<? extends BindingEngine> engine
Engine used to process this annotation.

Returns:
binding engine used in this annotation.
See Also:
Default binding engine
Default:
pl.bristleback.server.bristle.binding.resolvers.BindingEngine.class


Copyright © 2011. All Rights Reserved.