Codota Logo
InvokableAnnotatedMethod.invokeOnInstance
Code IndexAdd Codota to your IDE (free)

How to use
invokeOnInstance
method
in
org.jboss.weld.annotated.runtime.InvokableAnnotatedMethod

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

  • Common ways to obtain InvokableAnnotatedMethod
private void myMethod () {
InvokableAnnotatedMethod i =
  • Codota IconObject obj;Reflections.cast(obj)
  • Codota IconDecoratedMethods decoratedMethods;Method method;decoratedMethods.getDecoratedMethod(method)
  • Codota IconAnnotatedMethod annotatedMethod;new InvokableAnnotatedMethod<T>(annotatedMethod)
  • Smart code suggestions by Codota
}
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

  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

  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: org.jboss.weld.servlet/weld-servlet-shaded

  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: org.jboss.weld.se/weld-se

  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: org.jboss.weld.se/weld-se-shaded

  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);
  }
}
org.jboss.weld.annotated.runtimeInvokableAnnotatedMethodinvokeOnInstance

Javadoc

Invokes the method on the class of the passed instance, not the declaring class. Useful with proxies

Popular methods of InvokableAnnotatedMethod

  • <init>
  • getJavaMember
  • getParameters
  • of

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • orElseThrow (Optional)
  • requestLocationUpdates (LocationManager)
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • KeyStore (java.security)
    This class represents an in-memory collection of keys and certificates. It manages two types of entr
  • Dictionary (java.util)
    The Dictionary class is the abstract parent of any class, such as Hashtable, which maps keys to valu
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • 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