public abstract class AbstractBinding extends BaseLocatable implements Binding2
Binding.get()
.Modifier | Constructor and Description |
---|---|
|
AbstractBinding() |
protected |
AbstractBinding(Location location) |
Modifier and Type | Method and Description |
---|---|
<T extends Annotation> |
getAnnotation(Class<T> annotationClass)
Always returns null.
|
Type |
getBindingGenericType()
Passes straight through to
getBindingType() . |
Class |
getBindingType()
Returns the actual class, by invoking
Binding.get() . |
boolean |
isInvariant()
Returns true.
|
void |
set(Object value)
Updates the current value.
|
getLocation
public AbstractBinding()
protected AbstractBinding(Location location)
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 Type getBindingGenericType()
getBindingType()
. Subclasses may override this method to
return the generic type if it is availablegetBindingGenericType
in interface Binding2
Method.getGenericReturnType()
,
Field.getGenericType()
public <T extends Annotation> T getAnnotation(Class<T> annotationClass)
getAnnotation
in interface AnnotationProvider
annotationClass
- used to select the annotation to return5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.