Codota Logo
AnnotatedMethod.getParameters
Code IndexAdd Codota to your IDE (free)

How to use
getParameters
method
in
javax.enterprise.inject.spi.AnnotatedMethod

Best Java code snippets using javax.enterprise.inject.spi.AnnotatedMethod.getParameters (Showing top 20 results out of 315)

  • Common ways to obtain AnnotatedMethod
private void myMethod () {
AnnotatedMethod a =
  • Codota IconEnhancedAnnotatedMethod enhancedAnnotatedMethod;enhancedAnnotatedMethod.slim()
  • Codota IconProcessProducerMethodImpl processProducerMethodImpl;processProducerMethodImpl.getBean().getAnnotated()
  • Codota IconMethodInjectionPoint methodInjectionPoint;methodInjectionPoint.getAnnotated()
  • Smart code suggestions by Codota
}
origin: weld/core

public MethodSignatureImpl(AnnotatedMethod<?> method) {
  this.methodName = method.getJavaMember().getName();
  this.parameterTypes = new String[method.getParameters().size()];
  for (int i = 0; i < method.getParameters().size(); i++) {
    parameterTypes[i] = Reflections.getRawType(method.getParameters().get(i).getBaseType()).getName();
  }
}
origin: org.jboss.weld.se/weld-se-shaded

public MethodSignatureImpl(AnnotatedMethod<?> method) {
  this.methodName = method.getJavaMember().getName();
  this.parameterTypes = new String[method.getParameters().size()];
  for (int i = 0; i < method.getParameters().size(); i++) {
    parameterTypes[i] = Reflections.getRawType(method.getParameters().get(i).getBaseType()).getName();
  }
}
origin: org.jboss.weld.se/weld-se

public MethodSignatureImpl(AnnotatedMethod<?> method) {
  this.methodName = method.getJavaMember().getName();
  this.parameterTypes = new String[method.getParameters().size()];
  for (int i = 0; i < method.getParameters().size(); i++) {
    parameterTypes[i] = Reflections.getRawType(method.getParameters().get(i).getBaseType()).getName();
  }
}
origin: com.sun.jersey/jersey-servlet

private <T> boolean isSetterMethod(AnnotatedMethod<T> method) {
  Method javaMethod = method.getJavaMember();
  if ((javaMethod.getModifiers() & Modifier.PUBLIC) != 0 &&
      (javaMethod.getReturnType() == Void.TYPE) &&
      (javaMethod.getName().startsWith("set"))) {
    List<AnnotatedParameter<T>> parameters = method.getParameters();
    if (parameters.size() == 1) {
      return true;
    }
  }
  return false;
}
origin: weld/core

public MethodSignatureImpl(AnnotatedMethod<?> method) {
  this.methodName = method.getJavaMember().getName();
  this.parameterTypes = new String[method.getParameters().size()];
  for (int i = 0; i < method.getParameters().size(); i++) {
    parameterTypes[i] = Reflections.getRawType(method.getParameters().get(i).getBaseType()).getName();
  }
}
origin: weld/core

public MethodSignatureImpl(AnnotatedMethod<?> method) {
  this.methodName = method.getJavaMember().getName();
  this.parameterTypes = new String[method.getParameters().size()];
  for (int i = 0; i < method.getParameters().size(); i++) {
    parameterTypes[i] = Reflections.getRawType(method.getParameters().get(i).getBaseType()).getName();
  }
}
origin: org.apache.openwebbeans/openwebbeans-impl

public static <X> AnnotatedParameter<X> getFirstAnnotatedParameter(AnnotatedMethod<X> annotatedMethod, Class<? extends Annotation> annotation)
{
  for (AnnotatedParameter<X> annotatedParameter: annotatedMethod.getParameters())
  {
    if (annotatedParameter.isAnnotationPresent(annotation))
    {
      return annotatedParameter;
    }
  }
  throw new IllegalArgumentException("annotation @" + annotation.getName() + " not found on any parameter");
}
origin: astefanutti/metrics-cdi

  static boolean hasInjectionPoints(AnnotatedMember<?> member) {
    if (!(member instanceof AnnotatedMethod))
      return false;
    AnnotatedMethod<?> method = (AnnotatedMethod<?>) member;
    for (AnnotatedParameter<?> parameter : method.getParameters()) {
      if (parameter.getBaseType().equals(InjectionPoint.class))
        return true;
    }
    return false;
  }
}
origin: com.caucho/resin

private void introspectInjectionPoints()
{
 for (AnnotatedParameter<?> param : _producesMethod.getParameters()) {
  InjectionPointImpl ip = new InjectionPointImpl(getBeanManager(), this, param);
  _injectionPointSet.add(ip);
 }
}

origin: org.jboss.weld.osgi/weld-osgi-core-extension

private boolean isCDIOSGiMethod(AnnotatedMethod<? super T> method) {
  if (method.isAnnotationPresent(Inject.class)) {
    for (AnnotatedParameter parameter : method.getParameters()) {
      if (parameter.isAnnotationPresent(OSGiService.class)) {
        return true;
      }
    }
  }
  return false;
}
origin: org.jboss.cdi.tck/cdi-tck-impl

@Test(expectedExceptions = IllegalArgumentException.class)
@SpecAssertions({ @SpecAssertion(section = BM_OBTAIN_INJECTIONPOINT, id = "c") })
public void testInvalidParameter() {
  AnnotatedType<?> type = getCurrentManager().createAnnotatedType(NotABean.class);
  assertEquals(1, type.getMethods().size());
  AnnotatedMethod<?> method = type.getMethods().iterator().next();
  AnnotatedParameter<?> parameter = method.getParameters().get(0);
  getCurrentManager().createInjectionPoint(parameter);
}
origin: org.jboss.weld.se/weld-se

public static String formatAnnotatedMethod(AnnotatedMethod<?> method) {
  return Formats.formatSimpleClassName(method) + " " + Formats.addSpaceIfNeeded(Formats.formatAnnotations(method.getAnnotations()))
      + Formats.addSpaceIfNeeded(Formats.formatModifiers(method.getJavaMember().getModifiers())) + method.getDeclaringType().getJavaClass().getName() + "."
      + method.getJavaMember().getName() + Formats.formatAsFormalParameterList(method.getParameters());
}
origin: weld/core

public static String formatAnnotatedMethod(AnnotatedMethod<?> method) {
  return Formats.formatSimpleClassName(method) + " " + Formats.addSpaceIfNeeded(Formats.formatAnnotations(method.getAnnotations()))
      + Formats.addSpaceIfNeeded(Formats.formatModifiers(method.getJavaMember().getModifiers())) + method.getDeclaringType().getJavaClass().getName() + "."
      + method.getJavaMember().getName() + Formats.formatAsFormalParameterList(method.getParameters());
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

public static String formatAnnotatedMethod(AnnotatedMethod<?> method) {
  return Formats.formatSimpleClassName(method) + " " + Formats.addSpaceIfNeeded(Formats.formatAnnotations(method.getAnnotations()))
      + Formats.addSpaceIfNeeded(Formats.formatModifiers(method.getJavaMember().getModifiers())) + method.getDeclaringType().getJavaClass().getName() + "."
      + method.getJavaMember().getName() + Formats.formatAsFormalParameterList(method.getParameters());
}
origin: org.jboss.weld.se/weld-se-shaded

public static String formatAnnotatedMethod(AnnotatedMethod<?> method) {
  return Formats.formatSimpleClassName(method) + " " + Formats.addSpaceIfNeeded(Formats.formatAnnotations(method.getAnnotations()))
      + Formats.addSpaceIfNeeded(Formats.formatModifiers(method.getJavaMember().getModifiers())) + method.getDeclaringType().getJavaClass().getName() + "."
      + method.getJavaMember().getName() + Formats.formatAsFormalParameterList(method.getParameters());
}
origin: weld/core

public static String formatAnnotatedMethod(AnnotatedMethod<?> method) {
  return Formats.formatSimpleClassName(method) + " " + Formats.addSpaceIfNeeded(Formats.formatAnnotations(method.getAnnotations()))
      + Formats.addSpaceIfNeeded(Formats.formatModifiers(method.getJavaMember().getModifiers())) + method.getDeclaringType().getJavaClass().getName() + "."
      + method.getJavaMember().getName() + Formats.formatAsFormalParameterList(method.getParameters());
}
origin: weld/core

public static <X, Y extends X> AnnotatedMethod<X> of(AnnotatedMethod<X> originalMethod, UnbackedAnnotatedType<Y> declaringType, SharedObjectCache cache) {
  UnbackedAnnotatedType<X> downcastDeclaringType = cast(declaringType);
  return new UnbackedAnnotatedMethod<X>(originalMethod.getBaseType(), originalMethod.getTypeClosure(), originalMethod.getAnnotations(), downcastDeclaringType,
      originalMethod.getParameters(), originalMethod.getJavaMember(), cache);
}
origin: org.jboss.weld.se/weld-se

public static <X, Y extends X> AnnotatedMethod<X> of(AnnotatedMethod<X> originalMethod, UnbackedAnnotatedType<Y> declaringType, SharedObjectCache cache) {
  UnbackedAnnotatedType<X> downcastDeclaringType = cast(declaringType);
  return new UnbackedAnnotatedMethod<X>(originalMethod.getBaseType(), originalMethod.getTypeClosure(), originalMethod.getAnnotations(), downcastDeclaringType,
      originalMethod.getParameters(), originalMethod.getJavaMember(), cache);
}
origin: weld/core

public static <X, Y extends X> AnnotatedMethod<X> of(AnnotatedMethod<X> originalMethod, UnbackedAnnotatedType<Y> declaringType, SharedObjectCache cache) {
  UnbackedAnnotatedType<X> downcastDeclaringType = cast(declaringType);
  return new UnbackedAnnotatedMethod<X>(originalMethod.getBaseType(), originalMethod.getTypeClosure(), originalMethod.getAnnotations(), downcastDeclaringType,
      originalMethod.getParameters(), originalMethod.getJavaMember(), cache);
}
origin: weld/core

public static <X, Y extends X> AnnotatedMethod<X> of(AnnotatedMethod<X> originalMethod, UnbackedAnnotatedType<Y> declaringType, SharedObjectCache cache) {
  UnbackedAnnotatedType<X> downcastDeclaringType = cast(declaringType);
  return new UnbackedAnnotatedMethod<X>(originalMethod.getBaseType(), originalMethod.getTypeClosure(), originalMethod.getAnnotations(), downcastDeclaringType,
      originalMethod.getParameters(), originalMethod.getJavaMember(), cache);
}
javax.enterprise.inject.spiAnnotatedMethodgetParameters

Popular methods of AnnotatedMethod

  • getJavaMember
    Get the underlying Method.
  • isAnnotationPresent
  • getAnnotations
  • getAnnotation
  • getDeclaringType
  • isStatic
  • getBaseType
  • getTypeClosure

Popular in Java

  • Making http post requests using okhttp
  • onCreateOptionsMenu (Activity)
  • getSharedPreferences (Context)
  • onRequestPermissionsResult (Fragment)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • HashSet (java.util)
    This class implements the Set interface, backed by a hash table (actually a HashMap instance). It m
  • ImageIO (javax.imageio)
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • JLabel (javax.swing)
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
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