Tabnine Logo
AnnotatedTypeBuilder.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.jboss.seam.solder.reflection.annotated.AnnotatedTypeBuilder
constructor

Best Java code snippets using org.jboss.seam.solder.reflection.annotated.AnnotatedTypeBuilder.<init> (Showing top 8 results out of 315)

origin: org.jboss.seam.solder/seam-solder

private <X> AnnotatedTypeBuilder<X> initializeBuilder(final AnnotatedTypeBuilder<X> currentBuilder, final AnnotatedType<X> source)
{
 if (currentBuilder == null)
 {
   return new AnnotatedTypeBuilder<X>().readFromType(source);
 }
 return currentBuilder;
}
origin: org.jboss.seam.international/seam-international-impl

  <X> void detectBundleInjectionTargets(@Observes ProcessInjectionTarget<X> event, BeanManager beanManager) {
    AnnotatedType<X> type = event.getAnnotatedType();
    for (AnnotatedField<?> f : type.getFields()) {
      Field field = f.getJavaMember();
      Class<?> clz = field.getType();
      if (clz.isAnnotationPresent(MessageBundle.class)) {
        log.info("Add @MessageBundle to " + type.getJavaClass().getName() + "." + field.getName()
            + " injection point for the type: " + clz.getName());
        AnnotatedTypeBuilder<X> typeBuilder = new AnnotatedTypeBuilder<X>().readFromType(type);
        typeBuilder.addToField(field, MessageBundleLiteral.INSTANCE);
        event.setInjectionTarget(beanManager.createInjectionTarget(typeBuilder.create()));
      }
    }
  }
}
origin: org.jboss.seam.config/seam-config-xml

public BeanResult(Class<X> type, boolean readAnnotations, BeanResultType beanType, List<FieldValueObject> fieldValues, List<BeanResult<?>> inlineBeans, BeanManager beanManager)
{
 this.beanManager = beanManager;
 this.type = type;
 builder = new AnnotatedTypeBuilder<X>().setJavaClass(type);
 builder.addToClass(XmlConfiguredBeanLiteral.INSTANCE);
 if (readAnnotations)
 {
   builder.readFromType(type);
   // we don't want to keep the veto annotation on the class
   builder.removeFromClass(Veto.class);
 }
 this.beanType = beanType;
 this.fieldValues = new ArrayList<FieldValueObject>(fieldValues);
 this.inlineBeans = new ArrayList<BeanResult<?>>(inlineBeans);
}
origin: org.jboss.seam.solder/seam-solder

/**
* Creates a wrapper around an AutoProxy handler class
* 
* @param handlerClass The handler class
* @throws IllegalArgumentException if the handler class is does not have a
*            suitable @AroundInvoke method
*/
ServiceHandlerManager(Class<T> handlerClass, BeanManager beanManager) throws IllegalArgumentException
{
 this.handlerClass = handlerClass;
 handlerMethod = getHandlerMethod(handlerClass);
 //now create the InjectionTarget
 AnnotatedTypeBuilder<T> typeBuilder = new AnnotatedTypeBuilder<T>().readFromType(handlerClass);
 injectionTarget = beanManager.createInjectionTarget(typeBuilder.create());
}
origin: org.jboss.seam.faces/seam-faces-impl

public <T> void processAnnotatedType(@Observes final ProcessAnnotatedType<T> event) {
  AnnotatedTypeBuilder<T> builder = new AnnotatedTypeBuilder<T>();
  builder.readFromType(event.getAnnotatedType());
  boolean modifiedType = false;
  for (AnnotatedField<?> f : event.getAnnotatedType().getFields()) {
    if (f.isAnnotationPresent(InputField.class)) {
      builder.overrideFieldType(f.getJavaMember(), Object.class);
      modifiedType = true;
    }
  }
  if (modifiedType) {
    AnnotatedType<T> replacement = builder.create();
    typeOverrides.put(replacement.getJavaClass(), replacement);
    event.setAnnotatedType(replacement);
  }
}
origin: org.jboss.seam.solder/seam-solder

final AnnotatedTypeBuilder<X> builder = new AnnotatedTypeBuilder<X>().readFromType(type);
builder.addToClass(genericBeanQualifier);
builder.redefine(Inject.class, new AnnotationRedefiner<Inject>()
origin: org.jboss.seam.faces/seam-faces-impl

  private AnnotatedType<Object> decorateType(final AnnotatedType<Object> type, final Class<? extends Annotation> jsfScope) {
    final Class<? extends Annotation> cdiScope = getCdiScopeFor(jsfScope);

    AnnotationInstanceProvider provider = new AnnotationInstanceProvider();
    final Annotation cdiScopeAnnotation = provider.get(cdiScope, Collections.EMPTY_MAP);

    AnnotatedTypeBuilder builder;
    builder = new AnnotatedTypeBuilder()
        .readFromType(type)
        .removeFromClass(jsfScope)
        .addToClass(cdiScopeAnnotation);
    return builder.create();
  }
}
origin: org.jboss.seam.solder/seam-solder

builder = new AnnotatedTypeBuilder<X>().readFromType(tp);
for (Annotation a : tp.getAnnotations())
   builder = new AnnotatedTypeBuilder<X>().readFromType(tp);
   builder = new AnnotatedTypeBuilder<X>().readFromType(tp);
org.jboss.seam.solder.reflection.annotatedAnnotatedTypeBuilder<init>

Javadoc

Create a new builder. A new builder has no annotations and no members.

Popular methods of AnnotatedTypeBuilder

  • create
    Create an AnnotatedType. Any public members present on the underlying class and not overridden by th
  • readFromType
    Reads in from an existing AnnotatedType. Any elements not present are added. The javaClass will be r
  • addToClass
    Add an annotation to the type declaration.
  • addToField
    Add an annotation to the specified field. If the field is not already present, it will be added.
  • overrideFieldType
    Override the declared type of a field
  • removeFromClass
    Remove an annotation from the type
  • addToConstructor
    Add an annotation to the specified constructor. If the constructor is not already present, it will b
  • addToConstructorParameter
    Add an annotation to the specified constructor parameter. If the constructor is not already present,
  • addToMethod
    Add an annotation to the specified method. If the method is not already present, it will be added.
  • addToMethodParameter
    Add an annotation to the specified method parameter. If the method is not already present, it will b
  • removeFromField
    Remove an annotation from the specified field.
  • removeFromMethod
    Remove an annotation from the specified method.
  • removeFromField,
  • removeFromMethod,
  • getJavaClass,
  • mergeAnnotationsOnElement,
  • overrideConstructorParameterType,
  • overrideMethodParameterType,
  • overrideParameterType,
  • redefine,
  • redefineAnnotationBuilder

Popular in Java

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getResourceAsStream (ClassLoader)
  • setContentView (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Notification (javax.management)
  • Join (org.hibernate.mapping)
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now