|
||||||||||
| 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 Bindingpublic void set(Object value)
Binding
set in interface Bindingset in class AbstractBindingpublic String toString()
toString in class Objectpublic boolean isInvariant()
Invariant
annotation.
isInvariant in interface BindingisInvariant in class AbstractBindingpublic Class getBindingType()
AbstractBindingBinding.get(). Subclasses may override this method to work more
efficiently (say, when the binding type is known statically).
getBindingType in interface BindinggetBindingType in class AbstractBindingpublic <T extends Annotation> T getAnnotation(Class<T> annotationClass)
AbstractBinding
getAnnotation in interface AnnotationProvidergetAnnotation in class AbstractBindingannotationClass - 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 | |||||||||