|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry5.ioc.BaseLocatable
org.apache.tapestry5.internal.bindings.AbstractBinding
org.apache.tapestry5.internal.bindings.PropBinding
public class PropBinding
Base class for bindings created by the PropBindingFactory
. A subclass
of this is created at runtime.
Constructor Summary | |
---|---|
PropBinding(Location location,
Object root,
PropertyConduit conduit,
String toString)
|
Method Summary | ||
---|---|---|
Object |
get()
The default implementation of get() will throw a TapestryException (binding is write only). |
|
|
getAnnotation(Class<T> annotationClass)
Always returns null. |
|
Class |
getBindingType()
Returns the actual class, by invoking Binding.get() . |
|
String |
getPropertyName()
Returns the name of the property, if exists. |
|
boolean |
isInvariant()
Almost always returns false, unless the conduit provides the Invariant
annotation. |
|
void |
set(Object value)
Updates the current value. |
|
String |
toString()
|
Methods inherited from class org.apache.tapestry5.ioc.BaseLocatable |
---|
getLocation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PropBinding(Location location, Object root, PropertyConduit conduit, String toString)
Method Detail |
---|
public Object get()
get
in interface Binding
public void set(Object value)
Binding
set
in interface Binding
set
in class AbstractBinding
public String toString()
toString
in class Object
public boolean isInvariant()
Invariant
annotation.
isInvariant
in interface Binding
isInvariant
in class AbstractBinding
public Class getBindingType()
AbstractBinding
Binding.get()
. Subclasses may override this method to work more
efficiently (say, when the binding type is known statically).
getBindingType
in interface Binding
getBindingType
in class AbstractBinding
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
AbstractBinding
getAnnotation
in interface AnnotationProvider
getAnnotation
in class AbstractBinding
annotationClass
- used to select the annotation to return
public String getPropertyName()
InternalPropBinding
getPropertyName
in interface InternalPropBinding
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |