|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.bristleback.server.bristle.binding.ObjectBinder<T>
public class ObjectBinder<T>
This class wraps single binding operation. Object binders should be placed in action class and marked with Bind annotation.
Together with Bind annotation, it determines all details of the binding.
Object binders should not be instantiated by user, instead it is processed
and injected into action class by BindingsProcessor implementation.
T represents type of object to bind.
| Constructor Summary | |
|---|---|
ObjectBinder()
|
|
| Method Summary | |
|---|---|
T |
bind(org.jwebsocket.token.Token token)
Performs bindings operation, copying data from token to object using instructions given by corresponding Bind annotation. |
void |
bind(T object,
org.jwebsocket.token.Token token)
Performs bindings operation, copying data from token to object using instructions given by corresponding Bind annotation. |
BindingResult<T> |
bindWithResult(T object,
org.jwebsocket.token.Token token)
Performs bindings operation, copying data from token to object using instructions given by corresponding Bind annotation. |
java.lang.Class<T> |
getBeanClass()
|
BindingEngine |
getEngine()
|
NestedFieldInformation |
getRootBean()
|
void |
setBeanClass(java.lang.Class<T> beanClass)
|
void |
setEngine(BindingEngine engine)
|
void |
setRootBean(NestedFieldInformation rootBean)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectBinder()
| Method Detail |
|---|
public void bind(T object,
org.jwebsocket.token.Token token)
Bind annotation.
Throws BindingException if any validation error occurs.
object - object to bind.token - property values.public T bind(org.jwebsocket.token.Token token)
Bind annotation.
This version of bind method creates and returns new object instead of settings fields on parameter.
Throws BindingException if any validation error occurs.
token - property values.
public BindingResult<T> bindWithResult(T object,
org.jwebsocket.token.Token token)
Bind annotation.
Returns binding result object instead of passed object or binding exception.
object - object to bind.token - property values.
public BindingEngine getEngine()
public void setEngine(BindingEngine engine)
public java.lang.Class<T> getBeanClass()
public void setBeanClass(java.lang.Class<T> beanClass)
public NestedFieldInformation getRootBean()
public void setRootBean(NestedFieldInformation rootBean)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||