Package org.zkoss.bind.init
Class ViewModelAnnotationResolvers
java.lang.Object
org.zkoss.bind.init.ViewModelAnnotationResolvers
- All Implemented Interfaces:
AggregationListener
An aggregating view model annotation resolvers.
- Since:
- 9.6.0
- Author:
- jameschu
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Annotation>
TgetAnnotation(Class clazz, Class<T> annotationClass) Get the specific annotation from the classstatic <T extends Annotation>
TgetAnnotation(Method method, Class<T> annotationClass) Get the specific annotation from the methodstatic MethodgetOriginalMethod(Object base, Method method) Get original method (if proxied)booleanReturns whether the given class is handled.
-
Constructor Details
-
ViewModelAnnotationResolvers
public ViewModelAnnotationResolvers()
-
-
Method Details
-
isHandled
Description copied from interface:AggregationListenerReturns whether the given class is handled.- Specified by:
isHandledin interfaceAggregationListener
-
getAnnotation
Get the specific annotation from the method- Parameters:
method-annotationClass-- Returns:
- T annotation
- Since:
- 9.6.0
-
getAnnotation
Get the specific annotation from the class- Parameters:
clazz-annotationClass-- Returns:
- T annotation
- Since:
- 9.6.0
-
getOriginalMethod
Get original method (if proxied)- Parameters:
base-method-- Returns:
- Method
- Since:
- 9.6.0
-