class ProxyUtil extends Object
| Modifier | Constructor and Description |
|---|---|
private |
ProxyUtil()
This class cannot be instantiated.
|
| Modifier and Type | Method and Description |
|---|---|
(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. |
static Method getMethod(Class type, String name, Class[] parameterTypes)
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.
type - the Class type that defines the
method of interestname - String containing the name of the
method of interestparameterTypes - the Class types of the parameters
to the method of interestMethod object that provides information about,
and access to, the method of interestNoSuchMethodError - if the method of interest cannot
be foundNullPointerException - if type or
name is nullCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.