com.sun.jini.outrigger
Class ProxyUtil

java.lang.Object
  extended by com.sun.jini.outrigger.ProxyUtil

 class ProxyUtil
extends Object

Convenience class that contains a package protected static utility method used by the proxy classes of this package to build method-to-method mappings. Note that this class cannot be instantiated.

Author:
Sun Microsystems, Inc.

Constructor Summary
private ProxyUtil()
          This class cannot be instantiated.
 
Method Summary
(package private) static Method getMethod(Class type, String name, Class[] parameterTypes)
          Returns the public method for the specified Class type, method name, and array of parameter types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyUtil

private ProxyUtil()
This class cannot be instantiated.

Method Detail

getMethod

static Method getMethod(Class type,
                        String name,
                        Class[] parameterTypes)
Returns the public method for the specified Class type, method name, and array of parameter types.

This method is typically used in place of Class.getMethod to get a method that should definitely be defined; thus, this method throws an error instead of an exception if the given method is missing.

This method is convenient for the initialization of a static variable for use as the mappings argument to ConstrainableProxyUtil.translateConstraints.

Parameters:
type - the Class type that defines the method of interest
name - String containing the name of the method of interest
parameterTypes - the Class types of the parameters to the method of interest
Returns:
a Method object that provides information about, and access to, the method of interest
Throws:
NoSuchMethodError - if the method of interest cannot be found
NullPointerException - if type or name is null


Copyright 2007-2010, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.