IT. Expert System.

Android Reference

InvocationHandler


java.lang.reflect

Interface InvocationHandler

  • All Known Implementing Classes:
    AnnotationFactory


    public interface InvocationHandler
    Implementors of this interface dispatch methods invoked on proxy instances.
    See Also:
    Proxy
    • Method Summary

      Methods
      Modifier and Type Method and Description
      Object invoke(Object proxy, Method method, Object[] args)
      Handles the method which was originally invoked on the proxy instance.
    • Method Detail

      • invoke

        Object invoke(Object proxy,
                    Method method,
                    Object[] args)
                      throws Throwable
        Handles the method which was originally invoked on the proxy instance. A typical usage pattern follows below:
         public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
             //do some processing before the method invocation
        
             //invoke the method
             Object result = method.invoke(proxy, args);
        
             //do some processing after the method invocation
             return result;
         }
        Parameters:
        proxy - the proxy instance on which the method was invoked
        method - the method invoked on the proxy instance
        args - an array of objects containing the parameters passed to the method, or null if no arguments are expected. Primitive types are boxed.
        Returns:
        the result of executing the method. Primitive types are boxed.
        Throws:
        Throwable - the exception to throw from the invoked method on the proxy. The exception must match one of the declared exception types of the invoked method or any unchecked exception type. If not then an UndeclaredThrowableException is thrown


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 983 / . Delta: 0.02415 с