public static <T> List<AnnotatedMethod<? super T>> getPostConstructMethods(final EnhancedAnnotatedType<T> type) { return getMethods(type, new AbstractLifecycleEventCallbackMethodListBuilder<T>() { @Override public Collection<EnhancedAnnotatedMethod<?, ? super T>> getAllMethods(EnhancedAnnotatedType<T> type) { return type.getEnhancedMethods(PostConstruct.class); } @Override protected void duplicateMethod(EnhancedAnnotatedMethod<?, ? super T> method) { throw UtilLogger.LOG.tooManyPostConstructMethods(type); } @Override protected EnhancedAnnotatedMethod<?, ? super T> processLevelResult(EnhancedAnnotatedMethod<?, ? super T> method) { BeanLogger.LOG.foundOnePostConstructMethod(method, type); return method; } }); }
public static <T> List<AnnotatedMethod<? super T>> getPostConstructMethods(final EnhancedAnnotatedType<T> type) { return getMethods(type, new AbstractLifecycleEventCallbackMethodListBuilder<T>() { @Override public Collection<EnhancedAnnotatedMethod<?, ? super T>> getAllMethods(EnhancedAnnotatedType<T> type) { return type.getEnhancedMethods(PostConstruct.class); } @Override protected void duplicateMethod(EnhancedAnnotatedMethod<?, ? super T> method) { throw UtilLogger.LOG.tooManyPostConstructMethods(type); } @Override protected EnhancedAnnotatedMethod<?, ? super T> processLevelResult(EnhancedAnnotatedMethod<?, ? super T> method) { BeanLogger.LOG.foundOnePostConstructMethod(method, type); return method; } }); }
public static <T> List<AnnotatedMethod<? super T>> getPreDestroyMethods(final EnhancedAnnotatedType<T> type) { return getMethods(type, new AbstractLifecycleEventCallbackMethodListBuilder<T>() { @Override public Collection<EnhancedAnnotatedMethod<?, ? super T>> getAllMethods(EnhancedAnnotatedType<T> type) { return type.getEnhancedMethods(PreDestroy.class); } @Override protected void duplicateMethod(EnhancedAnnotatedMethod<?, ? super T> method) { throw UtilLogger.LOG.tooManyPreDestroyMethods(type); } @Override protected EnhancedAnnotatedMethod<?, ? super T> processLevelResult(EnhancedAnnotatedMethod<?, ? super T> method) { BeanLogger.LOG.foundOnePreDestroyMethod(method, type); return method; } }); }
public static <T> List<AnnotatedMethod<? super T>> getPostConstructMethods(final EnhancedAnnotatedType<T> type) { return getMethods(type, new AbstractLifecycleEventCallbackMethodListBuilder<T>() { @Override public Collection<EnhancedAnnotatedMethod<?, ? super T>> getAllMethods(EnhancedAnnotatedType<T> type) { return type.getEnhancedMethods(PostConstruct.class); } @Override protected void duplicateMethod(EnhancedAnnotatedMethod<?, ? super T> method) { throw UtilLogger.LOG.tooManyPostConstructMethods(type); } @Override protected EnhancedAnnotatedMethod<?, ? super T> processLevelResult(EnhancedAnnotatedMethod<?, ? super T> method) { BeanLogger.LOG.foundOnePostConstructMethod(method, type); return method; } }); }
public static <T> List<AnnotatedMethod<? super T>> getPreDestroyMethods(final EnhancedAnnotatedType<T> type) { return getMethods(type, new AbstractLifecycleEventCallbackMethodListBuilder<T>() { @Override public Collection<EnhancedAnnotatedMethod<?, ? super T>> getAllMethods(EnhancedAnnotatedType<T> type) { return type.getEnhancedMethods(PreDestroy.class); } @Override protected void duplicateMethod(EnhancedAnnotatedMethod<?, ? super T> method) { throw UtilLogger.LOG.tooManyPreDestroyMethods(type); } @Override protected EnhancedAnnotatedMethod<?, ? super T> processLevelResult(EnhancedAnnotatedMethod<?, ? super T> method) { BeanLogger.LOG.foundOnePreDestroyMethod(method, type); return method; } }); }
public static <T> List<AnnotatedMethod<? super T>> getPreDestroyMethods(final EnhancedAnnotatedType<T> type) { return getMethods(type, new AbstractLifecycleEventCallbackMethodListBuilder<T>() { @Override public Collection<EnhancedAnnotatedMethod<?, ? super T>> getAllMethods(EnhancedAnnotatedType<T> type) { return type.getEnhancedMethods(PreDestroy.class); } @Override protected void duplicateMethod(EnhancedAnnotatedMethod<?, ? super T> method) { throw UtilLogger.LOG.tooManyPreDestroyMethods(type); } @Override protected EnhancedAnnotatedMethod<?, ? super T> processLevelResult(EnhancedAnnotatedMethod<?, ? super T> method) { BeanLogger.LOG.foundOnePreDestroyMethod(method, type); return method; } }); }
public static <T> List<AnnotatedMethod<? super T>> getPreDestroyMethods(final EnhancedAnnotatedType<T> type) { return getMethods(type, new AbstractLifecycleEventCallbackMethodListBuilder<T>() { @Override public Collection<EnhancedAnnotatedMethod<?, ? super T>> getAllMethods(EnhancedAnnotatedType<T> type) { return type.getEnhancedMethods(PreDestroy.class); } @Override protected void duplicateMethod(EnhancedAnnotatedMethod<?, ? super T> method) { throw UtilLogger.LOG.tooManyPreDestroyMethods(type); } @Override protected EnhancedAnnotatedMethod<?, ? super T> processLevelResult(EnhancedAnnotatedMethod<?, ? super T> method) { BeanLogger.LOG.foundOnePreDestroyMethod(method, type); return method; } }); }
public static <T> List<AnnotatedMethod<? super T>> getPostConstructMethods(final EnhancedAnnotatedType<T> type) { return getMethods(type, new AbstractLifecycleEventCallbackMethodListBuilder<T>() { @Override public Collection<EnhancedAnnotatedMethod<?, ? super T>> getAllMethods(EnhancedAnnotatedType<T> type) { return type.getEnhancedMethods(PostConstruct.class); } @Override protected void duplicateMethod(EnhancedAnnotatedMethod<?, ? super T> method) { throw UtilLogger.LOG.tooManyPostConstructMethods(type); } @Override protected EnhancedAnnotatedMethod<?, ? super T> processLevelResult(EnhancedAnnotatedMethod<?, ? super T> method) { BeanLogger.LOG.foundOnePostConstructMethod(method, type); return method; } }); }
public static <T> List<AnnotatedMethod<? super T>> getPostConstructMethods(final EnhancedAnnotatedType<T> type) { return getMethods(type, new AbstractLifecycleEventCallbackMethodListBuilder<T>() { @Override public Collection<EnhancedAnnotatedMethod<?, ? super T>> getAllMethods(EnhancedAnnotatedType<T> type) { return type.getEnhancedMethods(PostConstruct.class); } @Override protected void duplicateMethod(EnhancedAnnotatedMethod<?, ? super T> method) { throw UtilLogger.LOG.tooManyPostConstructMethods(type); } @Override protected EnhancedAnnotatedMethod<?, ? super T> processLevelResult(EnhancedAnnotatedMethod<?, ? super T> method) { BeanLogger.LOG.foundOnePostConstructMethod(method, type); return method; } }); }
public static <T> List<AnnotatedMethod<? super T>> getPreDestroyMethods(final EnhancedAnnotatedType<T> type) { return getMethods(type, new AbstractLifecycleEventCallbackMethodListBuilder<T>() { @Override public Collection<EnhancedAnnotatedMethod<?, ? super T>> getAllMethods(EnhancedAnnotatedType<T> type) { return type.getEnhancedMethods(PreDestroy.class); } @Override protected void duplicateMethod(EnhancedAnnotatedMethod<?, ? super T> method) { throw UtilLogger.LOG.tooManyPreDestroyMethods(type); } @Override protected EnhancedAnnotatedMethod<?, ? super T> processLevelResult(EnhancedAnnotatedMethod<?, ? super T> method) { BeanLogger.LOG.foundOnePreDestroyMethod(method, type); return method; } }); }
public static <T> List<AnnotatedMethod<? super T>> getPreDestroyMethods(final EnhancedAnnotatedType<T> type) { return getMethods(type, new AbstractLifecycleEventCallbackMethodListBuilder<T>() { @Override public Collection<EnhancedAnnotatedMethod<?, ? super T>> getAllMethods(EnhancedAnnotatedType<T> type) { return type.getEnhancedMethods(PreDestroy.class); } @Override protected void duplicateMethod(EnhancedAnnotatedMethod<?, ? super T> method) { throw UtilLogger.LOG.tooManyPreDestroyMethods(type); } @Override protected EnhancedAnnotatedMethod<?, ? super T> processLevelResult(EnhancedAnnotatedMethod<?, ? super T> method) { BeanLogger.LOG.foundOnePreDestroyMethod(method, type); return method; } }); }
public static <T> List<AnnotatedMethod<? super T>> getPostConstructMethods(final EnhancedAnnotatedType<T> type) { return getMethods(type, new AbstractLifecycleEventCallbackMethodListBuilder<T>() { @Override public Collection<EnhancedAnnotatedMethod<?, ? super T>> getAllMethods(EnhancedAnnotatedType<T> type) { return type.getEnhancedMethods(PostConstruct.class); } @Override protected void duplicateMethod(EnhancedAnnotatedMethod<?, ? super T> method) { throw UtilLogger.LOG.tooManyPostConstructMethods(type); } @Override protected EnhancedAnnotatedMethod<?, ? super T> processLevelResult(EnhancedAnnotatedMethod<?, ? super T> method) { BeanLogger.LOG.foundOnePostConstructMethod(method, type); return method; } }); }
public static <T> List<Method> getInterceptorMethods(EnhancedAnnotatedType<T> type, final InterceptionType interceptionType, final boolean targetClass) { return getMethods(type, new MethodListBuilder<T, List<Method>>() {
public static <T> List<Method> getInterceptorMethods(EnhancedAnnotatedType<T> type, final InterceptionType interceptionType, final boolean targetClass) { return getMethods(type, new MethodListBuilder<T, List<Method>>() {
public static <T> List<Set<MethodInjectionPoint<?, ?>>> getInitializerMethods(Bean<?> declaringBean, EnhancedAnnotatedType<T> type, BeanManagerImpl manager) { return getMethods(type, new InitializerMethodListBuilder<T>(type, declaringBean, manager)); }
public static <T> List<Set<MethodInjectionPoint<?, ?>>> getInitializerMethods(Bean<?> declaringBean, EnhancedAnnotatedType<T> type, BeanManagerImpl manager) { return getMethods(type, new InitializerMethodListBuilder<T>(type, declaringBean, manager)); }
public static <T> List<Set<MethodInjectionPoint<?, ?>>> getInitializerMethods(Bean<?> declaringBean, EnhancedAnnotatedType<T> type, BeanManagerImpl manager) { return getMethods(type, new InitializerMethodListBuilder<T>(type, declaringBean, manager)); }
public static <T> List<Set<MethodInjectionPoint<?, ?>>> getInitializerMethods(Bean<?> declaringBean, EnhancedAnnotatedType<T> type, BeanManagerImpl manager) { return getMethods(type, new InitializerMethodListBuilder<T>(type, declaringBean, manager)); }
public static <T> List<Set<MethodInjectionPoint<?, ?>>> getInitializerMethods(Bean<?> declaringBean, EnhancedAnnotatedType<T> type, BeanManagerImpl manager) { return getMethods(type, new InitializerMethodListBuilder<T>(type, declaringBean, manager)); }
public static <T> List<Set<MethodInjectionPoint<?, ?>>> getInitializerMethods(Bean<?> declaringBean, EnhancedAnnotatedType<T> type, BeanManagerImpl manager) { return getMethods(type, new InitializerMethodListBuilder<T>(type, declaringBean, manager)); }