org.exolab.castor.xml.wls8
Class WeblogicXercesImplementation
java.lang.Objectorg.exolab.castor.xml.wls8.WeblogicXercesImplementation
public abstract class WeblogicXercesImplementation
extends java.lang.Object
protected static Method | getMethod(Class aClass, String methodName, Class[] parameterTypes)- Returns a Method object that reflects the specified public member method of the class
or interface represented by
aClass.
|
protected static void | handleMethodInvokeException(Exception e)
|
protected static void | handleMethodInvokeException(String message, Exception e)- Throws a Runtime exception with
e's message as its
detail message.
|
static void | handleStaticInitException(Exception e)
|
static void | handleStaticInitException(String message, Exception e)- Throws a Runtime exception with
e's message as its
detail message.
|
protected Object | invoke(Object anObject, Method method, Object[] params)- Invokes a method.
|
getMethod
protected static Method getMethod(Class aClass,
String methodName,
Class[] parameterTypes) Returns a Method object that reflects the specified public member method of the class
or interface represented by
aClass.
If either an SecurityException or NoSuchMethodException
is thrown, calls
handleStaticInitException(Exception).
aClass - The class.methodName - The name of the method.parameterTypes - The list of parameters.
- The Method object that matches the specified name and parameterTypes.
Class.getMethod(java.lang.String, java.lang.Class[])
handleMethodInvokeException
protected static void handleMethodInvokeException(Exception e)
handleMethodInvokeException
protected static void handleMethodInvokeException(String message,
Exception e) Throws a Runtime exception with e's message as its
detail message. Also logs the exception as an error.
message - The Message that will be inserted before e's
message in the RuntimeException's detail message.e - The exception that will be "wrapped" in a RuntimeException.
handleStaticInitException
public static void handleStaticInitException(Exception e)
handleStaticInitException
public static void handleStaticInitException(String message,
Exception e) Throws a Runtime exception with e's message as its
detail message. Also logs the exception as an error.
Called if an error occurs during the static initialization of WeblogicXercesSerializer
& OutputFormat (these classes use reflection to get the Weblogic classes & methods).
message - The Message that will be inserted before e's
message in the RuntimeException's detail message.e - The exception that will be "wrapped" in a RuntimeException
invoke
protected Object invoke(Object anObject,
Method method,
Object[] params) Invokes a method. Calls
Method.invoke(java.lang.Object, java.lang.Object[]). If either
an IllegalArgumentException, IllegalAccessException or InvocationTargetException is thrown,
calls
handleMethodInvokeException(Exception).
anObject - The object instance to invoke the method on.method - The method to invoke.params - The parameters to pass to the method.
- If the method completes normally, the value it returns is returned to the caller
of invoke; if the value has a primitive type, it is first appropriately wrapped in an object.
If the underlying method return type is void, the invocation returns null.
Method.invoke(java.lang.Object, java.lang.Object[])
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com