|
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.EJBInvocationDescriptor
Describes and implements the invocation of a method in an arbitrary Enterprise Java Bean. It is used to obtain a remote reference to an EJB and invoke a remote method thereon.
ClassDescriptor
,
ClassInvocationDescriptor
,
EJBDescriptor
, 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 | |
EJBInvocationDescriptor()
Create a new EJB descriptor object. |
|
EJBInvocationDescriptor(java.lang.String description,
EJBDescriptor beanDescriptor,
MethodDescriptor homeMethodDescriptor,
java.lang.String[] homeParmDescriptions,
MethodDescriptor remoteMethodDescriptor,
java.lang.String[] remoteParmDescriptions)
Create a new EJB descriptor object. |
|
EJBInvocationDescriptor(java.lang.String description,
EJBDescriptor beanDescriptor,
MethodDescriptor homeMethodDescriptor,
java.lang.String[] homeParmDescriptions,
MethodDescriptor remoteMethodDescriptor,
java.lang.String[] remoteParmDescriptions,
boolean published)
Create a new EJB descriptor object. |
Method Summary | |
java.lang.Object |
clone()
clone an EJBInvocationDescriptor object. |
java.lang.Object |
getContents()
Return the publishable content. |
java.lang.String |
getDescription()
Return the human-readable bean description. |
java.lang.String |
getEJBDeploymentName()
Return the EJB deployment name. |
MethodDescriptor |
getEJBHomeMethod()
Return the home method to invoke. |
java.lang.String |
getEJBHomeName()
Return the home interface name. |
java.lang.String |
getEJBPrimaryKeyName()
Return the primary key class name. |
MethodDescriptor |
getEJBRemoteMethod()
Return the remote method to invoke. |
java.lang.String |
getEJBRemoteName()
Return the remote interface name. |
java.lang.String |
getEntryName()
Return the display name for the publishable object. |
java.lang.String[] |
getHomeParamDescriptions()
get the EJB home parameter descriptions |
java.lang.String[] |
getHomeParmsDescriptions()
Return the parameter descriptions for the home method to invoke. |
java.lang.String |
getId()
Return the system-assigned unique identifier. |
java.lang.String |
getOwnerName()
Return the name of the object's owner. |
java.lang.String[] |
getRemoteParamDescriptions()
get the EJB remote parameter descriptions |
java.lang.String[] |
getRemoteParmsDescriptions()
Return the parameter descriptions for the remote method to invoke. |
java.lang.String |
getReturnTypeName()
Get the remote method return type. |
int |
getType()
Return the type of publishable object. |
java.lang.Object |
invoke(java.util.Properties environment,
java.lang.Object[] ejbHomeParameters,
java.lang.Object[] ejbRemoteParameters)
Create a remote object reference; then, invoke a method on it. |
java.lang.Object |
invokeHomeMethod(java.util.Properties environment,
java.lang.Object[] ejbHomeParameters)
Create a home object reference; then, invoke a method on it. |
java.lang.Object |
invokeRemoteMethod(java.lang.Object remoteObject,
java.lang.Object[] ejbRemoteParameters)
Invoke a method on a remote object. |
boolean |
isFullyFormed()
Check whether this descriptor has all required values set. |
boolean |
isPublished()
Returns whether the object is published. |
boolean |
isSessionEJB()
Return true if the contained bean is a Session EJB |
boolean |
isVerbose()
Check whether the invokeXXX() methods emit debugging
messages. |
void |
set(java.lang.String description,
EJBDescriptor beanDescriptor,
MethodDescriptor homeMethodDescriptor,
java.lang.String[] homeParmDescriptions,
MethodDescriptor remoteMethodDescriptor,
java.lang.String[] remoteParmDescriptions)
Set descriptor values. |
void |
set(java.lang.String description,
EJBDescriptor beanDescriptor,
MethodDescriptor homeMethodDescriptor,
java.lang.String[] homeParmDescriptions,
MethodDescriptor remoteMethodDescriptor,
java.lang.String[] remoteParmDescriptions,
boolean published)
Set descriptor values. |
void |
setDescription(java.lang.String description)
Set the description. |
void |
setEJBDeploymentName(java.lang.String deploymentName)
Set the EJB deployment name. |
void |
setEJBHomeMethod(MethodDescriptor ejbHomeMethod)
Set the home method to invoke. |
void |
setEJBHomeName(java.lang.String ejbHomeName)
Set the home interface name. |
void |
setEJBPrimaryKeyName(java.lang.String ejbPrimaryKeyName)
Set the primary key class name. |
void |
setEJBRemoteMethod(MethodDescriptor ejbRemoteMethod)
Set the remote method to invoke. |
void |
setEJBRemoteName(java.lang.String ejbRemoteName)
Set the remote interface name. |
void |
setHomeParamDescriptions(java.lang.String[] homeParamDescriptions)
Set the EJB home parameter descriptions |
void |
setId(java.lang.String id)
Set the unique identifier. |
void |
setIsSessionBean(boolean isSessionBean)
|
void |
setPublished()
|
void |
setRemoteParamDescriptions(java.lang.String[] remoteParamDescriptions)
Set the EJB remote parameter descriptions |
void |
setVerbose(boolean verbose)
Set whether the invokeXXX() methods emit debugging
messages. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EJBInvocationDescriptor()
public EJBInvocationDescriptor(java.lang.String description, EJBDescriptor beanDescriptor, MethodDescriptor homeMethodDescriptor, java.lang.String[] homeParmDescriptions, MethodDescriptor remoteMethodDescriptor, java.lang.String[] remoteParmDescriptions)
description
- Human-readable bean description.beanDescriptor
- Meta-data describing the bean in question.homeMethodDescriptor
- Meta-data for home method to invoke.homeParmDescriptions
- Home method parameter descriptions.remoteMethodDescriptor
- Meta-data for remote method to invoke.remoteParmDescriptions
- Remote method parameter descriptions.public EJBInvocationDescriptor(java.lang.String description, EJBDescriptor beanDescriptor, MethodDescriptor homeMethodDescriptor, java.lang.String[] homeParmDescriptions, MethodDescriptor remoteMethodDescriptor, java.lang.String[] remoteParmDescriptions, boolean published)
description
- Human-readable bean description.beanDescriptor
- Meta-data describing the bean in question.homeMethodDescriptor
- Meta-data for home method to invoke.homeParmDescriptions
- Home method parameter descriptions.remoteMethodDescriptor
- Meta-data for remote method to invoke.remoteParmDescriptions
- Remote method parameter descriptions.Method Detail |
public final java.lang.String getId()
setId(java.lang.String)
public void setId(java.lang.String id)
id
- The unique identifier.getId()
public void setDescription(java.lang.String description)
description
- The description.getDescription()
public void set(java.lang.String description, EJBDescriptor beanDescriptor, MethodDescriptor homeMethodDescriptor, java.lang.String[] homeParmDescriptions, MethodDescriptor remoteMethodDescriptor, java.lang.String[] remoteParmDescriptions)
description
- Human-readable bean description.beanDescriptor
- Meta-data describing the bean in question.homeMethodDescriptor
- Meta-data for home method to invoke.homeParmDescriptions
- Home method parameter descriptions.remoteMethodDescriptor
- Meta-data for remote method to invoke.remoteParmDescriptions
- Remote method parameter descriptions.public void set(java.lang.String description, EJBDescriptor beanDescriptor, MethodDescriptor homeMethodDescriptor, java.lang.String[] homeParmDescriptions, MethodDescriptor remoteMethodDescriptor, java.lang.String[] remoteParmDescriptions, boolean published)
description
- Human-readable bean description.beanDescriptor
- Meta-data describing the bean in question.homeMethodDescriptor
- Meta-data for home method to invoke.homeParmDescriptions
- Home method parameter descriptions.remoteMethodDescriptor
- Meta-data for remote method to invoke.remoteParmDescriptions
- Remote method parameter descriptions.public java.lang.Object clone()
clone
in class java.lang.Object
public void setVerbose(boolean verbose)
invokeXXX()
methods emit debugging
messages.verbose
- true
to emit messages.isVerbose()
public boolean isVerbose()
invokeXXX()
methods emit debugging
messages.true
if the invokeXXX()
methods emit
debugging messages.setVerbose(boolean)
public boolean isPublished()
Publishable
isPublished
in interface Publishable
public java.lang.Object invoke(java.util.Properties environment, java.lang.Object[] ejbHomeParameters, java.lang.Object[] ejbRemoteParameters) throws WorkflowException
java.lang.*
object (e.g. int
is passed using
a java.lang.Integer
object, long
using a
java.lang.Long
, etc.).environment
- Environment settings for initial JNDI context used to
look up the home interface.ejbHomeParameters
- Actual parameter values for home method.ejbRemoteParameters
- Actual parameter values for remote method.WorkflowException
- if the specified home interface cannot be
located, or if the actual home or remote 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 home or
remote method cannot be found, or if the home method call fails, or if
any of the parameters are not instances of the corresponding classes
(or subclasses thereof) specified by this descriptor, or if either of
the invoked methods throws an exception.invokeHomeMethod(java.util.Properties, java.lang.Object[])
,
invokeRemoteMethod(java.lang.Object, java.lang.Object[])
public java.lang.Object invokeHomeMethod(java.util.Properties environment, java.lang.Object[] ejbHomeParameters) throws WorkflowException
java.lang.*
object (e.g. int
is passed using
a java.lang.Integer
object, long
using a
java.lang.Long
, etc.).environment
- Environment settings for initial JNDI context used to
look up the home interface.ejbHomeParameters
- Actual parameter values for home method.WorkflowException
- if the specified home interface cannot be
located, or if the actual home 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 home method cannot
be found, or if the home method 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 home methods throws an
exception.invoke(java.util.Properties, java.lang.Object[], java.lang.Object[])
,
invokeRemoteMethod(java.lang.Object, java.lang.Object[])
public java.lang.Object invokeRemoteMethod(java.lang.Object remoteObject, java.lang.Object[] ejbRemoteParameters) throws WorkflowException
java.lang.*
object (e.g. int
is passed using
a java.lang.Integer
object, long
using a
java.lang.Long
, etc.).remoteObject
- Remote object on which to invoke the method.ejbRemoteParameters
- Actual parameter values for remote method.WorkflowException
- if the actual remote 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 remote method
cannot be found, or if any of the parameters are not instances of the
corresponding classes (or a subclass thereof) specified by this
descriptor, or if the invoked method throws an exception.invoke(java.util.Properties, java.lang.Object[], java.lang.Object[])
,
invokeHomeMethod(java.util.Properties, java.lang.Object[])
public boolean isFullyFormed()
true
if all required values are set.public boolean isSessionEJB()
true
if the contained bean is a Session EJBtrue
if all required values are set.public java.lang.String getReturnTypeName()
public final java.lang.String getDescription()
public final java.lang.String[] getHomeParmsDescriptions()
public final java.lang.String[] getRemoteParmsDescriptions()
public void setEJBDeploymentName(java.lang.String deploymentName)
ejbDeploymentName
- The name under which the EJB was deployed.getEJBDeploymentName()
public java.lang.String getEJBDeploymentName()
setEJBDeploymentName(java.lang.String)
public void setEJBHomeName(java.lang.String ejbHomeName)
ejbHomeName
- The fully qualified name of the EJB's home interface.getEJBHomeName()
public java.lang.String getEJBHomeName()
setEJBHomeName(java.lang.String)
public void setHomeParamDescriptions(java.lang.String[] homeParamDescriptions)
homeParamDescriptions
- the EJB home parameter descrptions.getHomeParamDescriptions()
public java.lang.String[] getHomeParamDescriptions()
setHomeParamDescriptions(java.lang.String[])
public void setRemoteParamDescriptions(java.lang.String[] remoteParamDescriptions)
remoteParamDescriptions
- the EJB home parameter descrptions.getRemoteParamDescriptions()
public java.lang.String[] getRemoteParamDescriptions()
setRemoteParamDescriptions(java.lang.String[])
public void setEJBPrimaryKeyName(java.lang.String ejbPrimaryKeyName)
ejbPrimaryKeyName
- The fully qualified name of the EJB's primary
key class.getEJBPrimaryKeyName()
public java.lang.String getEJBPrimaryKeyName()
setEJBPrimaryKeyName(java.lang.String)
public void setEJBHomeMethod(MethodDescriptor ejbHomeMethod)
ejbHomeMethod
- Descriptor for the home method to invoke.getEJBHomeMethod()
public MethodDescriptor getEJBHomeMethod()
setEJBHomeMethod(com.bea.wlpi.common.MethodDescriptor)
public void setEJBRemoteName(java.lang.String ejbRemoteName)
ejbRemoteName
- The fully qualified name of the EJB's remote interface.getEJBRemoteName()
public java.lang.String getEJBRemoteName()
setEJBRemoteName(java.lang.String)
public void setEJBRemoteMethod(MethodDescriptor ejbRemoteMethod)
ejbRemoteName
- Descriptor for the remote method to invoke.getEJBRemoteMethod()
public MethodDescriptor getEJBRemoteMethod()
setEJBRemoteMethod(com.bea.wlpi.common.MethodDescriptor)
public void setIsSessionBean(boolean isSessionBean)
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 |