Tabnine Logo
AnnotatedTypeBuilder.removeFromClass
Code IndexAdd Tabnine to your IDE (free)

How to use
removeFromClass
method
in
org.jboss.seam.solder.reflection.annotated.AnnotatedTypeBuilder

Best Java code snippets using org.jboss.seam.solder.reflection.annotated.AnnotatedTypeBuilder.removeFromClass (Showing top 6 results out of 315)

origin: org.jboss.seam.config/seam-config-xml

public void addToClass(Annotation annotation)
{
 // TODO: this should be done with the BeanManager one WELD-721 is resolved
 if (annotation.annotationType().isAnnotationPresent(Scope.class) || annotation.annotationType().isAnnotationPresent(NormalScope.class))
 {
   // if the user is adding a new scope we need to remove any existing
   // ones
   for (Annotation typeAnnotation : type.getAnnotations())
   {
    if (typeAnnotation.annotationType().isAnnotationPresent(Scope.class) || typeAnnotation.annotationType().isAnnotationPresent(NormalScope.class))
    {
      builder.removeFromClass(typeAnnotation.annotationType());
    }
   }
 }
 builder.addToClass(annotation);
}
origin: org.jboss.seam.solder/seam-solder

removeFromClass(annotationType);
for (Entry<Field, AnnotationBuilder> field : fields.entrySet())
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.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.removeFromClass(a.annotationType());
origin: org.jboss.seam.solder/seam-solder

builder.removeFromClass(Named.class); // add w/o remove was failing in cases
builder.addToClass(new NamedLiteral(qualify(targetPackage, name)));
org.jboss.seam.solder.reflection.annotatedAnnotatedTypeBuilderremoveFromClass

Javadoc

Remove an annotation from the type

Popular methods of AnnotatedTypeBuilder

  • <init>
    Create a new builder. A new builder has no annotations and no members.
  • 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
  • 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

  • Finding current android device location
  • getExternalFilesDir (Context)
  • onCreateOptionsMenu (Activity)
  • setRequestProperty (URLConnection)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • ConcurrentHashMap (java.util.concurrent)
    A plug-in replacement for JDK1.5 java.util.concurrent.ConcurrentHashMap. This version is based on or
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Top Vim plugins
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