Tabnine Logo
EnhancedAnnotatedType.getSimpleName
Code IndexAdd Tabnine to your IDE (free)

How to use
getSimpleName
method
in
org.jboss.weld.annotated.enhanced.EnhancedAnnotatedType

Best Java code snippets using org.jboss.weld.annotated.enhanced.EnhancedAnnotatedType.getSimpleName (Showing top 8 results out of 315)

origin: weld/core

public String getSimpleName() {
  return delegate().getSimpleName();
}
origin: org.jboss.weld.se/weld-se

public String getSimpleName() {
  return delegate().getSimpleName();
}
origin: weld/core

/**
 * Gets the default name of the bean
 *
 * @return The default name
 */
protected String getDefaultName(EnhancedAnnotated<?, ?> annotated) {
  if (annotated instanceof EnhancedAnnotatedType<?>) {
    StringBuilder defaultName = new StringBuilder(((EnhancedAnnotatedType<?>) annotated).getSimpleName());
    defaultName.setCharAt(0, Character.toLowerCase(defaultName.charAt(0)));
    return defaultName.toString();
  } else if (annotated instanceof EnhancedAnnotatedField<?, ?>) {
    return ((EnhancedAnnotatedField<?, ?>) annotated).getPropertyName();
  } else if (annotated instanceof EnhancedAnnotatedMethod<?, ?>) {
    return ((EnhancedAnnotatedMethod<?, ?>) annotated).getPropertyName();
  } else {
    return null;
  }
}
origin: weld/core

/**
 * Gets the default name of the bean
 *
 * @return The default name
 */
protected String getDefaultName(EnhancedAnnotated<?, ?> annotated) {
  if (annotated instanceof EnhancedAnnotatedType<?>) {
    StringBuilder defaultName = new StringBuilder(((EnhancedAnnotatedType<?>) annotated).getSimpleName());
    defaultName.setCharAt(0, Character.toLowerCase(defaultName.charAt(0)));
    return defaultName.toString();
  } else if (annotated instanceof EnhancedAnnotatedField<?, ?>) {
    return ((EnhancedAnnotatedField<?, ?>) annotated).getPropertyName();
  } else if (annotated instanceof EnhancedAnnotatedMethod<?, ?>) {
    return ((EnhancedAnnotatedMethod<?, ?>) annotated).getPropertyName();
  } else {
    return null;
  }
}
origin: org.jboss.weld.se/weld-se-shaded

/**
 * Gets the default name of the bean
 *
 * @return The default name
 */
protected String getDefaultName(EnhancedAnnotated<?, ?> annotated) {
  if (annotated instanceof EnhancedAnnotatedType<?>) {
    StringBuilder defaultName = new StringBuilder(((EnhancedAnnotatedType<?>) annotated).getSimpleName());
    defaultName.setCharAt(0, Character.toLowerCase(defaultName.charAt(0)));
    return defaultName.toString();
  } else if (annotated instanceof EnhancedAnnotatedField<?, ?>) {
    return ((EnhancedAnnotatedField<?, ?>) annotated).getPropertyName();
  } else if (annotated instanceof EnhancedAnnotatedMethod<?, ?>) {
    return ((EnhancedAnnotatedMethod<?, ?>) annotated).getPropertyName();
  } else {
    return null;
  }
}
origin: weld/core

/**
 * Gets the default name of the bean
 *
 * @return The default name
 */
protected String getDefaultName(EnhancedAnnotated<?, ?> annotated) {
  if (annotated instanceof EnhancedAnnotatedType<?>) {
    StringBuilder defaultName = new StringBuilder(((EnhancedAnnotatedType<?>) annotated).getSimpleName());
    defaultName.setCharAt(0, Character.toLowerCase(defaultName.charAt(0)));
    return defaultName.toString();
  } else if (annotated instanceof EnhancedAnnotatedField<?, ?>) {
    return ((EnhancedAnnotatedField<?, ?>) annotated).getPropertyName();
  } else if (annotated instanceof EnhancedAnnotatedMethod<?, ?>) {
    return ((EnhancedAnnotatedMethod<?, ?>) annotated).getPropertyName();
  } else {
    return null;
  }
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

/**
 * Gets the default name of the bean
 *
 * @return The default name
 */
protected String getDefaultName(EnhancedAnnotated<?, ?> annotated) {
  if (annotated instanceof EnhancedAnnotatedType<?>) {
    StringBuilder defaultName = new StringBuilder(((EnhancedAnnotatedType<?>) annotated).getSimpleName());
    defaultName.setCharAt(0, Character.toLowerCase(defaultName.charAt(0)));
    return defaultName.toString();
  } else if (annotated instanceof EnhancedAnnotatedField<?, ?>) {
    return ((EnhancedAnnotatedField<?, ?>) annotated).getPropertyName();
  } else if (annotated instanceof EnhancedAnnotatedMethod<?, ?>) {
    return ((EnhancedAnnotatedMethod<?, ?>) annotated).getPropertyName();
  } else {
    return null;
  }
}
origin: org.jboss.weld.se/weld-se

/**
 * Gets the default name of the bean
 *
 * @return The default name
 */
protected String getDefaultName(EnhancedAnnotated<?, ?> annotated) {
  if (annotated instanceof EnhancedAnnotatedType<?>) {
    if (manager.getServices().get(WeldConfiguration.class).getBooleanProperty(ConfigurationKey.DEFAULT_BEAN_NAMES_FOLLOW_JAVABEAN_RULES)) {
      // We need to fix WELD-1941 but still don't break existing applications
      return Introspector.decapitalize(((EnhancedAnnotatedType<?>) annotated).getSimpleName());
    } else {
      StringBuilder defaultNameBuilder = new StringBuilder(((EnhancedAnnotatedType<?>) annotated).getSimpleName());
      defaultNameBuilder.setCharAt(0, Character.toLowerCase(defaultNameBuilder.charAt(0)));
      return defaultNameBuilder.toString();
    }
  } else if (annotated instanceof EnhancedAnnotatedField<?, ?>) {
    return ((EnhancedAnnotatedField<?, ?>) annotated).getPropertyName();
  } else if (annotated instanceof EnhancedAnnotatedMethod<?, ?>) {
    return ((EnhancedAnnotatedMethod<?, ?>) annotated).getPropertyName();
  } else {
    return null;
  }
}
org.jboss.weld.annotated.enhancedEnhancedAnnotatedTypegetSimpleName

Popular methods of EnhancedAnnotatedType

  • getDeclaredEnhancedConstructor
    Get the constructor which matches the argument list provided
  • getJavaClass
  • getEnhancedMethod
    Get a method by name
  • getEnhancedMethods
    Gets all methods annotated with annotationType including those declared on a superclass of #getJavaC
  • getNoArgsEnhancedConstructor
    Gets the no-args constructor
  • isAbstract
  • isDiscovered
  • slim
    Returns a lightweight implementation of AnnotatedType with minimal memory footprint.
  • getConstructors
  • getDeclaredEnhancedFields
    Gets all fields which are annotated with the given annotation type on this class only.
  • getDeclaredEnhancedMethods
    Gets all methods annotated with annotationType
  • getDeclaredEnhancedMethodsWithAnnotatedParameters
    Gets declared with parameters annotated with annotationType
  • getDeclaredEnhancedMethods,
  • getDeclaredEnhancedMethodsWithAnnotatedParameters,
  • getDeclaredMetaAnnotations,
  • getEnhancedConstructors,
  • getEnhancedFields,
  • getEnhancedMethodsWithAnnotatedParameters,
  • getEnhancedSuperclass,
  • getFields,
  • getMethods

Popular in Java

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • compareTo (BigDecimal)
  • runOnUiThread (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Reference (javax.naming)
  • 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