|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.jini.fiddler.ProxyUtil
class ProxyUtil
Convenience class that contains a package protected static utility method used by the proxy classes of this package in proxy trust verification process. Note that this class cannot be instantiated.
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 |
---|
private ProxyUtil()
Method Detail |
---|
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 interest
Method
object that provides information about,
and access to, the method of interest
NoSuchMethodError
- if the method of interest cannot
be found
NullPointerException
- if type
or
name
is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |