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

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

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

origin: org.jboss.weld.se/weld-se

public Collection<EnhancedAnnotatedConstructor<T>> getEnhancedConstructors() {
  return delegate().getEnhancedConstructors();
}
origin: weld/core

public Collection<EnhancedAnnotatedConstructor<T>> getEnhancedConstructors(Class<? extends Annotation> annotationType) {
  return delegate().getEnhancedConstructors(annotationType);
}
origin: weld/core

public Collection<EnhancedAnnotatedConstructor<T>> getEnhancedConstructors() {
  return delegate().getEnhancedConstructors();
}
origin: org.jboss.weld.se/weld-se

public Collection<EnhancedAnnotatedConstructor<T>> getEnhancedConstructors(Class<? extends Annotation> annotationType) {
  return delegate().getEnhancedConstructors(annotationType);
}
origin: org.jboss.weld.se/weld-se

public static <T> EnhancedAnnotatedConstructor<T> getBeanConstructor(EnhancedAnnotatedType<T> type) {
  Collection<EnhancedAnnotatedConstructor<T>> initializerAnnotatedConstructors = type
      .getEnhancedConstructors(Inject.class);
  BeanLogger.LOG.foundInjectableConstructors(initializerAnnotatedConstructors, type);
  EnhancedAnnotatedConstructor<T> constructor = null;
  if (initializerAnnotatedConstructors.size() > 1) {
    throw UtilLogger.LOG.ambiguousConstructor(type, initializerAnnotatedConstructors);
  } else if (initializerAnnotatedConstructors.size() == 1) {
    constructor = initializerAnnotatedConstructors.iterator().next();
    BeanLogger.LOG.foundOneInjectableConstructor(constructor, type);
  } else if (type.getNoArgsEnhancedConstructor() != null) {
    constructor = type.getNoArgsEnhancedConstructor();
    BeanLogger.LOG.foundDefaultConstructor(constructor, type);
  }
  if (constructor != null) {
    if (!constructor.getEnhancedParameters(Disposes.class).isEmpty()) {
      throw BeanLogger.LOG.parameterAnnotationNotAllowedOnConstructor("@Disposes", constructor,
          Formats.formatAsStackTraceElement(constructor.getJavaMember()));
    }
    if (!constructor.getEnhancedParameters(Observes.class).isEmpty()) {
      throw BeanLogger.LOG.parameterAnnotationNotAllowedOnConstructor("@Observes", constructor,
          Formats.formatAsStackTraceElement(constructor.getJavaMember()));
    }
  }
  return constructor;
}
origin: weld/core

public static <T> EnhancedAnnotatedConstructor<T> getBeanConstructor(EnhancedAnnotatedType<T> type) {
  Collection<EnhancedAnnotatedConstructor<T>> initializerAnnotatedConstructors = type
      .getEnhancedConstructors(Inject.class);
  BeanLogger.LOG.foundInjectableConstructors(initializerAnnotatedConstructors, type);
  EnhancedAnnotatedConstructor<T> constructor = null;
  if (initializerAnnotatedConstructors.size() > 1) {
    throw UtilLogger.LOG.ambiguousConstructor(type, initializerAnnotatedConstructors);
  } else if (initializerAnnotatedConstructors.size() == 1) {
    constructor = initializerAnnotatedConstructors.iterator().next();
    BeanLogger.LOG.foundOneInjectableConstructor(constructor, type);
  } else if (type.getNoArgsEnhancedConstructor() != null) {
    constructor = type.getNoArgsEnhancedConstructor();
    BeanLogger.LOG.foundDefaultConstructor(constructor, type);
  }
  if (constructor != null) {
    if (!constructor.getEnhancedParameters(Disposes.class).isEmpty()) {
      throw BeanLogger.LOG.parameterAnnotationNotAllowedOnConstructor("@Disposes", constructor,
          Formats.formatAsStackTraceElement(constructor.getJavaMember()));
    }
    if (!constructor.getEnhancedParameters(Observes.class).isEmpty()) {
      throw BeanLogger.LOG.parameterAnnotationNotAllowedOnConstructor("@Observes", constructor,
          Formats.formatAsStackTraceElement(constructor.getJavaMember()));
    }
    if (!constructor.getEnhancedParameters(ObservesAsync.class).isEmpty()) {
      throw BeanLogger.LOG.parameterAnnotationNotAllowedOnConstructor("@ObservesAsync", constructor,
          Formats.formatAsStackTraceElement(constructor.getJavaMember()));
    }
  }
  return constructor;
}
origin: weld/core

public static <T> EnhancedAnnotatedConstructor<T> getBeanConstructor(EnhancedAnnotatedType<T> type) {
  Collection<EnhancedAnnotatedConstructor<T>> initializerAnnotatedConstructors = type
      .getEnhancedConstructors(Inject.class);
  BeanLogger.LOG.foundInjectableConstructors(initializerAnnotatedConstructors, type);
  EnhancedAnnotatedConstructor<T> constructor = null;
  if (initializerAnnotatedConstructors.size() > 1) {
    throw UtilLogger.LOG.ambiguousConstructor(type, initializerAnnotatedConstructors);
  } else if (initializerAnnotatedConstructors.size() == 1) {
    constructor = initializerAnnotatedConstructors.iterator().next();
    BeanLogger.LOG.foundOneInjectableConstructor(constructor, type);
  } else if (type.getNoArgsEnhancedConstructor() != null) {
    constructor = type.getNoArgsEnhancedConstructor();
    BeanLogger.LOG.foundDefaultConstructor(constructor, type);
  }
  if (constructor != null) {
    if (!constructor.getEnhancedParameters(Disposes.class).isEmpty()) {
      throw BeanLogger.LOG.parameterAnnotationNotAllowedOnConstructor("@Disposes", constructor,
          Formats.formatAsStackTraceElement(constructor.getJavaMember()));
    }
    if (!constructor.getEnhancedParameters(Observes.class).isEmpty()) {
      throw BeanLogger.LOG.parameterAnnotationNotAllowedOnConstructor("@Observes", constructor,
          Formats.formatAsStackTraceElement(constructor.getJavaMember()));
    }
    if (!constructor.getEnhancedParameters(ObservesAsync.class).isEmpty()) {
      throw BeanLogger.LOG.parameterAnnotationNotAllowedOnConstructor("@ObservesAsync", constructor,
          Formats.formatAsStackTraceElement(constructor.getJavaMember()));
    }
  }
  return constructor;
}
origin: org.jboss.weld.se/weld-se-shaded

public static <T> EnhancedAnnotatedConstructor<T> getBeanConstructor(EnhancedAnnotatedType<T> type) {
  Collection<EnhancedAnnotatedConstructor<T>> initializerAnnotatedConstructors = type
      .getEnhancedConstructors(Inject.class);
  BeanLogger.LOG.foundInjectableConstructors(initializerAnnotatedConstructors, type);
  EnhancedAnnotatedConstructor<T> constructor = null;
  if (initializerAnnotatedConstructors.size() > 1) {
    throw UtilLogger.LOG.ambiguousConstructor(type, initializerAnnotatedConstructors);
  } else if (initializerAnnotatedConstructors.size() == 1) {
    constructor = initializerAnnotatedConstructors.iterator().next();
    BeanLogger.LOG.foundOneInjectableConstructor(constructor, type);
  } else if (type.getNoArgsEnhancedConstructor() != null) {
    constructor = type.getNoArgsEnhancedConstructor();
    BeanLogger.LOG.foundDefaultConstructor(constructor, type);
  }
  if (constructor != null) {
    if (!constructor.getEnhancedParameters(Disposes.class).isEmpty()) {
      throw BeanLogger.LOG.parameterAnnotationNotAllowedOnConstructor("@Disposes", constructor,
          Formats.formatAsStackTraceElement(constructor.getJavaMember()));
    }
    if (!constructor.getEnhancedParameters(Observes.class).isEmpty()) {
      throw BeanLogger.LOG.parameterAnnotationNotAllowedOnConstructor("@Observes", constructor,
          Formats.formatAsStackTraceElement(constructor.getJavaMember()));
    }
    if (!constructor.getEnhancedParameters(ObservesAsync.class).isEmpty()) {
      throw BeanLogger.LOG.parameterAnnotationNotAllowedOnConstructor("@ObservesAsync", constructor,
          Formats.formatAsStackTraceElement(constructor.getJavaMember()));
    }
  }
  return constructor;
}
origin: weld/core

public static <T> EnhancedAnnotatedConstructor<T> getBeanConstructor(EnhancedAnnotatedType<T> type) {
  Collection<EnhancedAnnotatedConstructor<T>> initializerAnnotatedConstructors = type
      .getEnhancedConstructors(Inject.class);
  BeanLogger.LOG.foundInjectableConstructors(initializerAnnotatedConstructors, type);
  EnhancedAnnotatedConstructor<T> constructor = null;
  if (initializerAnnotatedConstructors.size() > 1) {
    throw UtilLogger.LOG.ambiguousConstructor(type, initializerAnnotatedConstructors);
  } else if (initializerAnnotatedConstructors.size() == 1) {
    constructor = initializerAnnotatedConstructors.iterator().next();
    BeanLogger.LOG.foundOneInjectableConstructor(constructor, type);
  } else if (type.getNoArgsEnhancedConstructor() != null) {
    constructor = type.getNoArgsEnhancedConstructor();
    BeanLogger.LOG.foundDefaultConstructor(constructor, type);
  }
  if (constructor != null) {
    if (!constructor.getEnhancedParameters(Disposes.class).isEmpty()) {
      throw BeanLogger.LOG.parameterAnnotationNotAllowedOnConstructor("@Disposes", constructor,
          Formats.formatAsStackTraceElement(constructor.getJavaMember()));
    }
    if (!constructor.getEnhancedParameters(Observes.class).isEmpty()) {
      throw BeanLogger.LOG.parameterAnnotationNotAllowedOnConstructor("@Observes", constructor,
          Formats.formatAsStackTraceElement(constructor.getJavaMember()));
    }
    if (!constructor.getEnhancedParameters(ObservesAsync.class).isEmpty()) {
      throw BeanLogger.LOG.parameterAnnotationNotAllowedOnConstructor("@ObservesAsync", constructor,
          Formats.formatAsStackTraceElement(constructor.getJavaMember()));
    }
  }
  return constructor;
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

public static <T> EnhancedAnnotatedConstructor<T> getBeanConstructor(EnhancedAnnotatedType<T> type) {
  Collection<EnhancedAnnotatedConstructor<T>> initializerAnnotatedConstructors = type
      .getEnhancedConstructors(Inject.class);
  BeanLogger.LOG.foundInjectableConstructors(initializerAnnotatedConstructors, type);
  EnhancedAnnotatedConstructor<T> constructor = null;
  if (initializerAnnotatedConstructors.size() > 1) {
    throw UtilLogger.LOG.ambiguousConstructor(type, initializerAnnotatedConstructors);
  } else if (initializerAnnotatedConstructors.size() == 1) {
    constructor = initializerAnnotatedConstructors.iterator().next();
    BeanLogger.LOG.foundOneInjectableConstructor(constructor, type);
  } else if (type.getNoArgsEnhancedConstructor() != null) {
    constructor = type.getNoArgsEnhancedConstructor();
    BeanLogger.LOG.foundDefaultConstructor(constructor, type);
  }
  if (constructor != null) {
    if (!constructor.getEnhancedParameters(Disposes.class).isEmpty()) {
      throw BeanLogger.LOG.parameterAnnotationNotAllowedOnConstructor("@Disposes", constructor,
          Formats.formatAsStackTraceElement(constructor.getJavaMember()));
    }
    if (!constructor.getEnhancedParameters(Observes.class).isEmpty()) {
      throw BeanLogger.LOG.parameterAnnotationNotAllowedOnConstructor("@Observes", constructor,
          Formats.formatAsStackTraceElement(constructor.getJavaMember()));
    }
    if (!constructor.getEnhancedParameters(ObservesAsync.class).isEmpty()) {
      throw BeanLogger.LOG.parameterAnnotationNotAllowedOnConstructor("@ObservesAsync", constructor,
          Formats.formatAsStackTraceElement(constructor.getJavaMember()));
    }
  }
  return constructor;
}
org.jboss.weld.annotated.enhancedEnhancedAnnotatedTypegetEnhancedConstructors

Javadoc

Gets all constructors

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,
  • getEnhancedFields,
  • getEnhancedMethodsWithAnnotatedParameters,
  • getEnhancedSuperclass,
  • getFields,
  • getMethods,
  • getSimpleName

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • getContentResolver (Context)
  • findViewById (Activity)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JLabel (javax.swing)
  • Github Copilot alternatives
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