|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry5.ioc.BaseLocatable org.apache.tapestry5.internal.bindings.AbstractBinding
public abstract class AbstractBinding
Abstract base class for bindings. Assumes that the binding is read only and invariant. Subclasses must provide an
implementation of Binding.get()
.
Constructor Summary | |
---|---|
|
AbstractBinding()
|
protected |
AbstractBinding(Location location)
|
Method Summary | ||
---|---|---|
|
getAnnotation(Class<T> annotationClass)
Always returns null. |
|
Class |
getBindingType()
Returns the actual class, by invoking Binding.get() . |
|
boolean |
isInvariant()
Returns true. |
|
void |
set(Object value)
Updates the current value. |
Methods inherited from class org.apache.tapestry5.ioc.BaseLocatable |
---|
getLocation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.tapestry5.Binding |
---|
get |
Constructor Detail |
---|
public AbstractBinding()
protected AbstractBinding(Location location)
Method Detail |
---|
public void set(Object value)
Binding
set
in interface Binding
TapestryException
- alwayspublic boolean isInvariant()
isInvariant
in interface Binding
public Class getBindingType()
Binding.get()
. Subclasses may override this method to work more
efficiently (say, when the binding type is known statically).
getBindingType
in interface Binding
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation
in interface AnnotationProvider
annotationClass
- used to select the annotation to return
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |