Esempio n. 1
0
 public static String forProducerMethod(
     EnhancedAnnotatedMethod<?, ?> method, AbstractClassBean<?> declaringBean) {
   if (declaringBean.getEnhancedAnnotated().isDiscovered()) {
     return forProducerMethod(
         declaringBean.getAnnotated().getIdentifier(),
         DeclaredMemberIndexer.getIndexForMethod(method.getJavaMember()));
   }
   return getPrefix(ProducerMethod.class)
       .append(method.getDeclaringType().slim().getIdentifier())
       .append(AnnotatedTypes.createCallableId(method))
       .toString();
 }
Esempio n. 2
0
 public <T, X> MethodInjectionPoint<T, X> createMethodInjectionPoint(
     EnhancedAnnotatedMethod<T, X> enhancedMethod,
     Bean<?> declaringBean,
     Class<?> declaringComponentClass,
     Set<Class<? extends Annotation>> specialParameterMarkers,
     BeanManagerImpl manager) {
   if (enhancedMethod.isStatic()) {
     return new StaticMethodInjectionPoint<T, X>(
         enhancedMethod,
         declaringBean,
         declaringComponentClass,
         specialParameterMarkers,
         this,
         manager);
   } else {
     return new VirtualMethodInjectionPoint<T, X>(
         enhancedMethod,
         declaringBean,
         declaringComponentClass,
         specialParameterMarkers,
         this,
         manager);
   }
 }