Package org.apache.tapestry5.internal
Class BeanEditContextImpl
- java.lang.Object
-
- org.apache.tapestry5.internal.BeanEditContextImpl
-
- All Implemented Interfaces:
AnnotationProvider
,BeanEditContext
public class BeanEditContextImpl extends java.lang.Object implements BeanEditContext
-
-
Constructor Summary
Constructors Constructor Description BeanEditContextImpl(java.lang.Class<?> beanClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.Class<T> type)
Searches for the specified annotation, returning the matching annotation instance.java.lang.Class<?>
getBeanClass()
-
-
-
Constructor Detail
-
BeanEditContextImpl
public BeanEditContextImpl(java.lang.Class<?> beanClass)
-
-
Method Detail
-
getBeanClass
public java.lang.Class<?> getBeanClass()
- Specified by:
getBeanClass
in interfaceBeanEditContext
- Returns:
- The class of the bean under edit.
-
getAnnotation
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> type)
Description copied from interface:AnnotationProvider
Searches for the specified annotation, returning the matching annotation instance.- Specified by:
getAnnotation
in interfaceAnnotationProvider
- Parameters:
type
- used to select the annotation to return- Returns:
- the annotation, or null if not found
-
-