Package org.apache.deltaspike.core.util.metadata.builder

Examples of org.apache.deltaspike.core.util.metadata.builder.AnnotatedTypeBuilder.create()


            String newBeanName = beanName.substring(0, 1).toLowerCase() + beanName.substring(1);

            builder.removeFromClass(Named.class)
                    .addToClass(new NamedLiteral(newBeanName));

            processAnnotatedType.setAnnotatedType(builder.create());
        }
    }
}
View Full Code Here


  @SuppressWarnings("rawtypes")
  private void register(Class<?> component) {     
    try{
      if(ComponentFactory.class.isAssignableFrom(component)){     
        AnnotatedTypeBuilder builder = new ComponentFactoryAnnotatedTypeBuilderCreator().create(component);
        discovery.addAnnotatedType(builder.create());
      }
      else{
        discovery.addAnnotatedType(bm.createAnnotatedType(component));
      }
    }
View Full Code Here

      ComponentExtension componentExtension = new ComponentExtension(builder);
      ComponentFactoryExtension componentFactoryExtension = new ComponentFactoryExtension(builder);
      addInjectToConstructorExtension.processAnnotatedType(pat);
      componentExtension.processAnnotatedType(pat);
      componentFactoryExtension.addProducesToComponentFactory(pat);
      pat.setAnnotatedType(builder.create());
    }
  }

  private boolean accept(ProcessAnnotatedType pat) {
    Class type = pat.getAnnotatedType().getJavaClass();
View Full Code Here

        Method method = at.getJavaClass().getMethod("setCamelContext", CamelContext.class);
        AnnotatedTypeBuilder builder = new AnnotatedTypeBuilder<CamelContextAware>()
                .readFromType(at)
                .addToMethod(method, new InjectLiteral());
        process.setAnnotatedType(builder.create());

    }

    protected  void detectRouteBuilders(@Observes ProcessAnnotatedType<?> process) throws Exception {
        AnnotatedType annotatedType = process.getAnnotatedType();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.