Codota Logo
AnnotatedTypeBuilder.overrideFieldType
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: org.jboss.seam.config/seam-config-xml

public void overrideFieldType(Field field, Class<?> javaClass)
{
 builder.overrideFieldType(field, javaClass);
}
origin: org.jboss.seam.solder/seam-solder

/**
* Override the declared type of a field
* 
* @param field the field to override the type on
* @param type the new type of the field
* @throws IllegalArgumentException if field or type is null
*/
public void overrideFieldType(AnnotatedField<? super X> field, Type type)
{
 overrideFieldType(field.getJavaMember(), type);
}
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

builder.overrideFieldType(f, type);
org.jboss.seam.solder.reflection.annotatedAnnotatedTypeBuilderoverrideFieldType

Javadoc

Override the declared type of a field

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.
  • 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
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • getExternalFilesDir (Context)
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Locale (java.util)
    A Locale object represents a specific geographical, political, or cultural region. An operation that
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • BoxLayout (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Option (scala)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now