|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.policy.jaxws.xmlstreamwriter.Invocation
public final class Invocation
The class represents a wrapper around XMLStreamWriter
invocations.
Method Summary | |
---|---|
java.lang.String |
argsToString()
Method returns String representation of arguments stored in the
Invocation instance. |
static Invocation |
createInvocation(java.lang.reflect.Method method,
java.lang.Object[] args)
Factory method that creates Invocation instance according to input
arguments |
java.lang.Object |
execute(javax.xml.stream.XMLStreamWriter target)
Executes the method on target XMLStreamWriter instance. |
static void |
executeBatch(javax.xml.stream.XMLStreamWriter target,
java.util.Queue<Invocation> batch)
Method executes queue of invocations. |
java.lang.Object |
getArgument(int index)
Returns single invocation argument for this Invocation instance that
is stored in the invocation arguments array at position determined by index
argument. |
int |
getArgumentsCount()
Returns information about the number of arguments stored in this Invocation
instance |
java.lang.String |
getMethodName()
Returns information about the name of the method represented by this Invocation instance |
XmlStreamWriterMethodType |
getMethodType()
Returns information about the type of the method represented by this Invocation instance |
java.lang.String |
toString()
Method returns String representation of the Invocation instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static Invocation createInvocation(java.lang.reflect.Method method, java.lang.Object[] args)
Invocation
instance according to input
arguments
method
- method represented by the Invocation
instance returned
as a result of this factory method callargs
- invocation arguments to be passed to the method when #executeBatch()
method is invoked on the Invocation
instance.
Invocation
instance representing invocation of method
defined by value of method
argument.public static void executeBatch(javax.xml.stream.XMLStreamWriter target, java.util.Queue<Invocation> batch) throws InvocationProcessingException
void
return type. After succesful invocation of the whole batch,
the batch queue is fully consumed and empty.
target
- http://java.sun.com/javase/6/docs/api/javax/xml/stream/XMLStreamWriter.html|XmlStreamWriter
used for invocation queue executionbatch
- queue of invocations to be executed on the targeted
http://java.sun.com/javase/6/docs/api/javax/xml/stream/XMLStreamWriter.html|XmlStreamWriter
.
After succesful invocation of the whole batch, the batch queue is fully
consumed and empty.
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
InvocationProcessingException
public java.lang.String getMethodName()
Invocation
instance
Invocation
instancepublic XmlStreamWriterMethodType getMethodType()
Invocation
instance
Invocation
instanceXmlStreamWriterMethodType
public java.lang.Object getArgument(int index) throws java.lang.ArrayIndexOutOfBoundsException
Invocation
instance that
is stored in the invocation arguments array at position determined by index
argument.
Invocation
instance at
position determined by index
argument
java.lang.ArrayIndexOutOfBoundsException
- if there are no arguments in the array
or if the index parameter is out of bounds of invocation arguments arraypublic int getArgumentsCount()
Invocation
instance
Invocation
instancepublic java.lang.Object execute(javax.xml.stream.XMLStreamWriter target) throws InvocationProcessingException
target
XMLStreamWriter
instance.
InvocationProcessingException
- wraps underlying exception - see Method.invoke()
.public java.lang.String toString()
String
representation of the Invocation
instance.
toString
in class java.lang.Object
String
representation of the Invocation
instance.public java.lang.String argsToString()
String
representation of arguments stored in the
Invocation
instance.
String
representation of arguments stored in the Invocation
instance.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |