public class AnnotationBasedIdProvider<ID,B> extends java.lang.Object implements IdProvider<ID,B>
| Constructor and Description |
|---|
AnnotationBasedIdProvider(java.lang.Class<?>... types) |
AnnotationBasedIdProvider(java.lang.Iterable<java.lang.Class<?>> types) |
| Modifier and Type | Method and Description |
|---|---|
protected java.beans.BeanInfo |
getBeanInfoFor(java.lang.Class<?> type) |
protected java.lang.reflect.Method |
getGetIdMethodFor(B bean) |
protected java.lang.reflect.Method |
getGetIdMethodFor(java.lang.Class<?> type) |
protected java.lang.reflect.Method |
getGetIdMethodForInternal(java.lang.Class<?> type) |
protected java.lang.Iterable<java.lang.Class<? extends java.lang.annotation.Annotation>> |
getIdAnnotationTypes() |
protected java.util.Map<java.lang.Class<?>,java.lang.reflect.Method> |
getTypeToGetIdMethodForInternal(java.lang.Iterable<java.lang.Class<?>> types) |
protected boolean |
hasIdAnnotation(java.lang.Class<?> type,
java.beans.PropertyDescriptor descriptor) |
protected boolean |
hasIdAnnotation(java.lang.reflect.Method method) |
ID |
provideIdOf(B bean) |
public AnnotationBasedIdProvider(@Nullable
java.lang.Class<?>... types)
public AnnotationBasedIdProvider(@Nullable
java.lang.Iterable<java.lang.Class<?>> types)
@Nonnull
protected java.util.Map<java.lang.Class<?>,java.lang.reflect.Method> getTypeToGetIdMethodForInternal(@Nonnull
java.lang.Iterable<java.lang.Class<?>> types)
@Nonnull
protected java.lang.reflect.Method getGetIdMethodForInternal(@Nonnull
java.lang.Class<?> type)
@Nonnull
protected java.beans.BeanInfo getBeanInfoFor(@Nonnull
java.lang.Class<?> type)
protected boolean hasIdAnnotation(@Nonnull
java.lang.Class<?> type,
@Nonnull
java.beans.PropertyDescriptor descriptor)
protected boolean hasIdAnnotation(@Nonnull
java.lang.reflect.Method method)
@Nonnull protected java.lang.Iterable<java.lang.Class<? extends java.lang.annotation.Annotation>> getIdAnnotationTypes()
public ID provideIdOf(@Nonnull B bean)
provideIdOf in interface IdProvider<ID,B>@Nonnull
protected java.lang.reflect.Method getGetIdMethodFor(@Nonnull
B bean)
@Nonnull
protected java.lang.reflect.Method getGetIdMethodFor(@Nonnull
java.lang.Class<?> type)
Copyright © 2013 echocat. All Rights Reserved.