Codota Logo
org.jboss.weld.annotated.runtime
Code IndexAdd Codota to your IDE (free)

How to use org.jboss.weld.annotated.runtime

Best Java code snippets using org.jboss.weld.annotated.runtime (Showing top 20 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: org.jboss.weld.se/weld-se

public static <T> InvokableAnnotatedMethod<T> of(AnnotatedMethod<T> delegate) {
  return new InvokableAnnotatedMethod<T>(delegate);
}
origin: weld/core

private boolean isMoreSpecific(InvokableAnnotatedMethod<?> candidate, InvokableAnnotatedMethod<?> mostSpecific) {
  for (int i = 0; i < candidate.getJavaMember().getGenericParameterTypes().length; i++) {
    if (Types.isMoreSpecific(candidate.getJavaMember().getGenericParameterTypes()[i], mostSpecific.getJavaMember().getGenericParameterTypes()[i])) {
      return true;
    }
  }
  return false;
}
origin: weld/core

public InvokableAnnotatedMethod(AnnotatedMethod<T> annotatedMethod) {
  this.annotatedMethod = annotatedMethod;
  this.methods = Collections.<Class<?>, Method>singletonMap(annotatedMethod.getJavaMember().getDeclaringClass(), annotatedMethod.getJavaMember());
  SecurityActions.ensureAccessible(annotatedMethod.getJavaMember());
}
origin: weld/core

  private Object doInvoke(WeldDecorator<?> weldDecorator, Object decoratorInstance, Method method, Object[] args) throws Throwable {
    if (!method.isAnnotationPresent(Inject.class)) {
      InvokableAnnotatedMethod<?> decoratorMethod = weldDecorator.getDecoratorMethod(method);
      if (decoratorMethod != null) {
        try {
          return decoratorMethod.invokeOnInstance(decoratorInstance, args);
        } catch (InvocationTargetException e) {
          throw e.getCause();
        }
      }
    }
    SecurityActions.ensureAccessible(method);
    return Reflections.invokeAndUnwrap(getTargetInstance(), method, args);
  }
}
origin: weld/core

public static <T> InvokableAnnotatedMethod<T> of(AnnotatedMethod<T> delegate) {
  return new InvokableAnnotatedMethod<T>(delegate);
}
origin: org.jboss.weld.se/weld-se

private boolean isMoreSpecific(InvokableAnnotatedMethod<?> candidate, InvokableAnnotatedMethod<?> mostSpecific) {
  for (int i = 0; i < candidate.getJavaMember().getGenericParameterTypes().length; i++) {
    if (Types.isMoreSpecific(candidate.getJavaMember().getGenericParameterTypes()[i], mostSpecific.getJavaMember().getGenericParameterTypes()[i])) {
      return true;
    }
  }
  return false;
}
origin: org.jboss.weld.se/weld-se

public InvokableAnnotatedMethod(AnnotatedMethod<T> annotatedMethod) {
  this.annotatedMethod = annotatedMethod;
  this.methods = Collections.<Class<?>, Method>singletonMap(annotatedMethod.getJavaMember().getDeclaringClass(), annotatedMethod.getJavaMember());
  SecurityActions.ensureAccessible(annotatedMethod.getJavaMember()); // TODO: make sure this instance does not leak
}
origin: weld/core

  private Object doInvoke(WeldDecorator<?> weldDecorator, Object decoratorInstance, Method method, Object[] args) throws Throwable {
    if (!method.isAnnotationPresent(Inject.class)) {
      InvokableAnnotatedMethod<?> decoratorMethod = weldDecorator.getDecoratorMethod(method);
      if (decoratorMethod != null) {
        try {
          return decoratorMethod.invokeOnInstance(decoratorInstance, args);
        } catch (InvocationTargetException e) {
          throw e.getCause();
        }
      }
    }
    SecurityActions.ensureAccessible(method);
    return Reflections.invokeAndUnwrap(getTargetInstance(), method, args);
  }
}
origin: weld/core

public static <T> InvokableAnnotatedMethod<T> of(AnnotatedMethod<T> delegate) {
  return new InvokableAnnotatedMethod<T>(delegate);
}
origin: weld/core

private boolean isMoreSpecific(InvokableAnnotatedMethod<?> candidate, InvokableAnnotatedMethod<?> mostSpecific) {
  for (int i = 0; i < candidate.getJavaMember().getGenericParameterTypes().length; i++) {
    if (Types.isMoreSpecific(candidate.getJavaMember().getGenericParameterTypes()[i], mostSpecific.getJavaMember().getGenericParameterTypes()[i])) {
      return true;
    }
  }
  return false;
}
origin: weld/core

public InvokableAnnotatedMethod(AnnotatedMethod<T> annotatedMethod) {
  this.annotatedMethod = annotatedMethod;
  this.methods = Collections.<Class<?>, Method>singletonMap(annotatedMethod.getJavaMember().getDeclaringClass(), annotatedMethod.getJavaMember());
  SecurityActions.ensureAccessible(annotatedMethod.getJavaMember());
}
origin: weld/core

public static <T> InvokableAnnotatedMethod<T> of(AnnotatedMethod<T> delegate) {
  return new InvokableAnnotatedMethod<T>(delegate);
}
origin: weld/core

private boolean isMoreSpecific(InvokableAnnotatedMethod<?> candidate, InvokableAnnotatedMethod<?> mostSpecific) {
  for (int i = 0; i < candidate.getJavaMember().getGenericParameterTypes().length; i++) {
    if (Types.isMoreSpecific(candidate.getJavaMember().getGenericParameterTypes()[i], mostSpecific.getJavaMember().getGenericParameterTypes()[i])) {
      return true;
    }
  }
  return false;
}
origin: weld/core

public InvokableAnnotatedMethod(AnnotatedMethod<T> annotatedMethod) {
  this.annotatedMethod = annotatedMethod;
  this.methods = Collections.<Class<?>, Method>singletonMap(annotatedMethod.getJavaMember().getDeclaringClass(), annotatedMethod.getJavaMember());
  SecurityActions.ensureAccessible(annotatedMethod.getJavaMember());
}
origin: org.jboss.weld.se/weld-se-shaded

public static <T> InvokableAnnotatedMethod<T> of(AnnotatedMethod<T> delegate) {
  return new InvokableAnnotatedMethod<T>(delegate);
}
origin: org.jboss.weld.se/weld-se-shaded

private boolean isMoreSpecific(InvokableAnnotatedMethod<?> candidate, InvokableAnnotatedMethod<?> mostSpecific) {
  for (int i = 0; i < candidate.getJavaMember().getGenericParameterTypes().length; i++) {
    if (Types.isMoreSpecific(candidate.getJavaMember().getGenericParameterTypes()[i], mostSpecific.getJavaMember().getGenericParameterTypes()[i])) {
      return true;
    }
  }
  return false;
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

public InvokableAnnotatedMethod(AnnotatedMethod<T> annotatedMethod) {
  this.annotatedMethod = annotatedMethod;
  this.methods = Collections.<Class<?>, Method>singletonMap(annotatedMethod.getJavaMember().getDeclaringClass(), annotatedMethod.getJavaMember());
  SecurityActions.ensureAccessible(annotatedMethod.getJavaMember());
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

public static <T> InvokableAnnotatedMethod<T> of(AnnotatedMethod<T> delegate) {
  return new InvokableAnnotatedMethod<T>(delegate);
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

private boolean isMoreSpecific(InvokableAnnotatedMethod<?> candidate, InvokableAnnotatedMethod<?> mostSpecific) {
  for (int i = 0; i < candidate.getJavaMember().getGenericParameterTypes().length; i++) {
    if (Types.isMoreSpecific(candidate.getJavaMember().getGenericParameterTypes()[i], mostSpecific.getJavaMember().getGenericParameterTypes()[i])) {
      return true;
    }
  }
  return false;
}
origin: org.jboss.weld.se/weld-se-shaded

public InvokableAnnotatedMethod(AnnotatedMethod<T> annotatedMethod) {
  this.annotatedMethod = annotatedMethod;
  this.methods = Collections.<Class<?>, Method>singletonMap(annotatedMethod.getJavaMember().getDeclaringClass(), annotatedMethod.getJavaMember());
  SecurityActions.ensureAccessible(annotatedMethod.getJavaMember());
}
org.jboss.weld.annotated.runtime

Most used classes

  • InvokableAnnotatedMethod
    An implementation of AnnotatedMethod used at runtime for invoking Java methods.
  • SecurityActions
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