Package org.exolab.castor.xml.wls8
Class WeblogicXercesImplementation
- java.lang.Object
-
- org.exolab.castor.xml.wls8.WeblogicXercesImplementation
-
- Direct Known Subclasses:
WeblogicXercesOutputFormat,WeblogicXercesSerializer
public abstract class WeblogicXercesImplementation extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description WeblogicXercesImplementation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static java.lang.reflect.MethodgetMethod(java.lang.Class aClass, java.lang.String methodName, java.lang.Class[] parameterTypes)Returns a Method object that reflects the specified public member method of the class or interface represented byaClass.protected static voidhandleMethodInvokeException(java.lang.Exception e)protected static voidhandleMethodInvokeException(java.lang.String message, java.lang.Exception e)Throws a Runtime exception withe'smessageas its detail message.static voidhandleStaticInitException(java.lang.Exception e)static voidhandleStaticInitException(java.lang.String message, java.lang.Exception e)Throws a Runtime exception withe'smessageas its detail message.protected java.lang.Objectinvoke(java.lang.Object anObject, java.lang.reflect.Method method, java.lang.Object[] params)Invokes a method.
-
-
-
Method Detail
-
getMethod
protected static java.lang.reflect.Method getMethod(java.lang.Class aClass, java.lang.String methodName, java.lang.Class[] parameterTypes)Returns a Method object that reflects the specified public member method of the class or interface represented byaClass.
If either an SecurityException or NoSuchMethodException is thrown, callshandleStaticInitException(Exception).- Parameters:
aClass- The class.methodName- The name of the method.parameterTypes- The list of parameters.- Returns:
- The Method object that matches the specified name and parameterTypes.
- See Also:
Class.getMethod(java.lang.String, java.lang.Class[])
-
invoke
protected java.lang.Object invoke(java.lang.Object anObject, java.lang.reflect.Method method, java.lang.Object[] params)Invokes a method. CallsMethod.invoke(java.lang.Object, java.lang.Object[]). If either an IllegalArgumentException, IllegalAccessException or InvocationTargetException is thrown, callshandleMethodInvokeException(Exception).- Parameters:
anObject- The object instance to invoke the method on.method- The method to invoke.params- The parameters to pass to the method.- Returns:
- 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.
- See Also:
Method.invoke(java.lang.Object, java.lang.Object[])
-
handleStaticInitException
public static void handleStaticInitException(java.lang.Exception e)
-
handleStaticInitException
public static void handleStaticInitException(java.lang.String message, java.lang.Exception e)Throws a Runtime exception withe'smessageas 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).- Parameters:
message- The Message that will be inserted beforee'smessagein the RuntimeException's detail message.e- The exception that will be "wrapped" in a RuntimeException
-
handleMethodInvokeException
protected static void handleMethodInvokeException(java.lang.Exception e)
-
handleMethodInvokeException
protected static void handleMethodInvokeException(java.lang.String message, java.lang.Exception e)Throws a Runtime exception withe'smessageas its detail message. Also logs the exception as an error.- Parameters:
message- The Message that will be inserted beforee'smessagein the RuntimeException's detail message.e- The exception that will be "wrapped" in a RuntimeException.
-
-