|
WebLogic Process Integrator Version 2.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.bea.wlpi.common.ClassInvocationDescriptor
Describes and implements the invocation of a method in an arbitrary Java class. It is used to pass information on server-side classes to the client (where the class in question may not be accessible), and to instantiate such an object in the server and invoke a method thereon.
ClassDescriptor
,
EJBDescriptor
,
EJBInvocationDescriptor
, Serialized FormFields inherited from interface com.bea.wlpi.common.Publishable |
BUSINESS_CALENDAR, BUSINESS_OPERATION, EVENT_KEY, ORG, ROLE, TEMPLATE, TEMPLATE_DEFINITION, USER, XML_REPOSITORY_ENTITY, XML_REPOSITORY_FOLDER |
Constructor Summary | |
ClassInvocationDescriptor(java.lang.String description,
java.lang.String className,
MethodDescriptor constructorDescriptor,
java.lang.String[] constructorParmDescriptions,
MethodDescriptor methodDescriptor,
java.lang.String[] methodParmDescriptions)
Create a new class invocation descriptor object. |
|
ClassInvocationDescriptor(java.lang.String description,
java.lang.String className,
MethodDescriptor constructorDescriptor,
java.lang.String[] constructorParmDescriptions,
MethodDescriptor methodDescriptor,
java.lang.String[] methodParmDescriptions,
boolean published)
Create a new class invocation descriptor object. |
Method Summary | |
java.lang.Object |
clone()
Clone a ClassInvocationDescriptor instance. |
java.lang.String |
getClassName()
Return the fully qualified Java class name. |
MethodDescriptor |
getConstructor()
Return meta-data for constructor to invoke. |
java.lang.String[] |
getConstructorParmsDescriptions()
Return constructor parameter descriptions. |
java.lang.Object |
getContents()
Return the publishable content. |
java.lang.String |
getDescription()
Return a human-readable description of the method invocation. |
java.lang.String |
getEntryName()
Return the display name for the publishable object. |
java.lang.String |
getId()
Return the system-assigned unique identifier. |
MethodDescriptor |
getMethod()
Return meta-data for method to invoke. |
java.lang.String[] |
getMethodParmsDescriptions()
Return method parameter descriptions. |
java.lang.String |
getOwnerName()
Return the name of the object's owner. |
int |
getType()
Return the type of publishable object. |
java.lang.Object |
invoke(java.lang.Object[] constructorParameters,
java.lang.Object[] methodParameters)
Create an instance of the Java class; then, invoke a method on it. |
java.lang.Object |
invokeConstructor(java.lang.Object[] constructorParameters)
Create an instance of the Java class. |
java.lang.Object |
invokeMethod(java.lang.Object obj,
java.lang.Object[] methodParameters)
Invoke the method specified by this descriptor on an object. |
boolean |
isPublished()
Returns whether the object is published. |
void |
set(java.lang.String description,
java.lang.String className,
MethodDescriptor constructorDescriptor,
java.lang.String[] constructorParmDescriptions,
MethodDescriptor methodDescriptor,
java.lang.String[] methodParmDescriptions)
Update a class invocation descriptor. |
void |
set(java.lang.String description,
java.lang.String className,
MethodDescriptor constructorDescriptor,
java.lang.String[] constructorParmDescriptions,
MethodDescriptor methodDescriptor,
java.lang.String[] methodParmDescriptions,
boolean published)
Update a class invocation descriptor. |
void |
setId(java.lang.String id)
Set the unique identifier. |
void |
setPublished()
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ClassInvocationDescriptor(java.lang.String description, java.lang.String className, MethodDescriptor constructorDescriptor, java.lang.String[] constructorParmDescriptions, MethodDescriptor methodDescriptor, java.lang.String[] methodParmDescriptions)
description
- Human-readable description of the method invocation.className
- Fully qualified Java class name.constructorDescriptor
- Meta-data for constructor to invoke.constructorParmDescriptions
- Constructor parameter descriptions.methodDescriptor
- Meta-data for method to invoke.methodParmDescriptions
- Method parameter descriptions.public ClassInvocationDescriptor(java.lang.String description, java.lang.String className, MethodDescriptor constructorDescriptor, java.lang.String[] constructorParmDescriptions, MethodDescriptor methodDescriptor, java.lang.String[] methodParmDescriptions, boolean published)
description
- Human-readable description of the method invocation.className
- Fully qualified Java class name.constructorDescriptor
- Meta-data for constructor to invoke.constructorParmDescriptions
- Constructor parameter descriptions.methodDescriptor
- Meta-data for method to invoke.methodParmDescriptions
- Method parameter descriptions.published
- Method Detail |
public void set(java.lang.String description, java.lang.String className, MethodDescriptor constructorDescriptor, java.lang.String[] constructorParmDescriptions, MethodDescriptor methodDescriptor, java.lang.String[] methodParmDescriptions)
description
- Human-readable description of the method invocation.className
- Fully qualified Java class name.constructorDescriptor
- Meta-data for constructor to invoke.constructorParmDescriptions
- Constructor parameter descriptions.methodDescriptor
- Meta-data for method to invoke.methodParmDescriptions
- Method parameter descriptions.public void set(java.lang.String description, java.lang.String className, MethodDescriptor constructorDescriptor, java.lang.String[] constructorParmDescriptions, MethodDescriptor methodDescriptor, java.lang.String[] methodParmDescriptions, boolean published)
description
- Human-readable description of the method invocation.className
- Fully qualified Java class name.constructorDescriptor
- Meta-data for constructor to invoke.constructorParmDescriptions
- Constructor parameter descriptions.methodDescriptor
- Meta-data for method to invoke.methodParmDescriptions
- Method parameter descriptions.published
- public java.lang.Object clone()
clone
in class java.lang.Object
public final java.lang.String getId()
setId(java.lang.String)
public boolean isPublished()
Publishable
isPublished
in interface Publishable
public void setId(java.lang.String id)
id
- The unique identifier.getId()
public final java.lang.String getClassName()
public final java.lang.String getDescription()
public final MethodDescriptor getMethod()
public final MethodDescriptor getConstructor()
public final java.lang.String[] getConstructorParmsDescriptions()
public final java.lang.String[] getMethodParmsDescriptions()
public java.lang.Object invoke(java.lang.Object[] constructorParameters, java.lang.Object[] methodParameters) throws WorkflowException
java.lang.*
object (e.g.,
int
is passed using a java.lang.Integer
object, long
using a java.lang.Long
, etc.).constructorParameters
- Actual constructor parameter values.methodParameters
- Actual method parameter values.WorkflowException
- if the specified class cannot be loaded, or
if the actual constructor or method parameters do not match those
specified in this descriptor in number and type, or if any parameter
class cannot be loaded, or if the specified constructor or method
cannot be found, or if the constructor call fails, or if any of the
parameters are not instances of the corresponding classes (or
subclasses thereof) specified by this descriptor, or if the invoked
method throws an exception.invokeConstructor(java.lang.Object[])
,
invokeMethod(java.lang.Object, java.lang.Object[])
public java.lang.Object invokeConstructor(java.lang.Object[] constructorParameters) throws WorkflowException
java.lang.*
object (e.g., int
is passed using a
java.lang.Integer
object, long
using a
java.lang.Long
, etc.).constructorParameters
- Actual constructor parameter values.WorkflowException
- if the specified class cannot be loaded, or
if the actual constructor parameters do not match those specified in
this descriptor in number and type, or if any parameter classes cannot
be loaded, or if the specified constructor cannot be found, or if the
constructor call fails.invoke(java.lang.Object[], java.lang.Object[])
,
invokeMethod(java.lang.Object, java.lang.Object[])
public java.lang.Object invokeMethod(java.lang.Object obj, java.lang.Object[] methodParameters) throws WorkflowException
java.lang.*
object (e.g., int
is passed using a
java.lang.Integer
object, long
using a
java.lang.Long
, etc.).obj
- An instance of the class specified by this descriptor object,
on which the specified method is to be invoked.methodParameters
- Actual method parameter values.WorkflowException
- if the specified class cannot be loaded, or
if the actual method parameters do not match those specified in this
descriptor in number and type, or if any parameter classes cannot be
loaded, or if the specified method cannot be found, or if the supplied
object or any of the parameters are not instances of the corresponding
classes (or subclasses thereof) specified by this descriptor, or if the
invoked method throws an exception.invoke(java.lang.Object[], java.lang.Object[])
,
invokeConstructor(java.lang.Object[])
public void setPublished()
public java.lang.Object getContents()
Publishable
getContents
in interface Publishable
com.bea.wlpi.common.Publishable
public java.lang.String getEntryName()
Publishable
getEntryName
in interface Publishable
com.bea.wlpi.common.Publishable
public int getType()
Publishable
getType
in interface Publishable
com.bea.wlpi.common.Publishable
Publishable.TEMPLATE
,
Publishable.TEMPLATE_DEFINITION
,
Publishable.BUSINESS_OPERATION
,
Publishable.BUSINESS_CALENDAR
,
Publishable.USER
,
Publishable.ROLE
,
Publishable.ORG
,
Publishable.XML_REPOSITORY_FOLDER
,
Publishable.XML_REPOSITORY_ENTITY
,
Publishable.EVENT_KEY
,public java.lang.String getOwnerName()
Publishable
getOwnerName
in interface Publishable
com.bea.wlpi.common.Publishable
|
WebLogic Process Integrator Version 2.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |