|
||||||||||
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,
java.lang.Object root,
PropertyConduit conduit,
java.lang.String expression,
java.lang.String toString)
|
Method Summary | ||
---|---|---|
java.lang.Object |
get()
The default implementation of get() will throw a TapestryException (binding is write only). |
|
|
getAnnotation(java.lang.Class<T> annotationClass)
Always returns null. |
|
java.lang.Class |
getBindingType()
Returns the actual class, by invoking Binding.get() . |
|
java.lang.String |
getExpression()
|
|
java.lang.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(java.lang.Object value)
Updates the current value. |
|
java.lang.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, java.lang.Object root, PropertyConduit conduit, java.lang.String expression, java.lang.String toString)
Method Detail |
---|
public java.lang.Object get()
get
in interface Binding
public void set(java.lang.Object value)
Binding
set
in interface Binding
set
in class AbstractBinding
public java.lang.String toString()
toString
in class java.lang.Object
public boolean isInvariant()
Invariant
annotation.
isInvariant
in interface Binding
isInvariant
in class AbstractBinding
public java.lang.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 java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationClass)
AbstractBinding
getAnnotation
in interface AnnotationProvider
getAnnotation
in class AbstractBinding
annotationClass
- used to select the annotation to return
public java.lang.String getPropertyName()
InternalPropBinding
getPropertyName
in interface InternalPropBinding
public java.lang.String getExpression()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |