|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openejb.ProxyInfo
public class ProxyInfo
The ProxyInfo object is returned by the Container.createEJBObject() and Container.createEJBHome( ) method These method are invoked in response to client requests for EJBHome and EJBobject references. The ProxyInfo is used by the application server to create a remote stubs that represent the EJBObject and EJBHome on the client.
The implementation of the remote stub is application server specific, but the ProxyInfo object provides the application server with helpful information including: The Remote interface to implement (EJBHome or EJBObject types) the primary key, DeploymentInfo object, and container reference.
Field Summary | |
---|---|
protected RpcContainer |
beanContainer
|
protected DeploymentInfo |
deploymentInfo
|
protected java.lang.Object |
primaryKey
|
protected java.lang.Class |
type
|
Constructor Summary | |
---|---|
protected |
ProxyInfo()
Create an instance of ProxyInfo. |
|
ProxyInfo(DeploymentInfo depInfo,
java.lang.Object pk,
boolean isLocalInterface,
RpcContainer cntnr)
|
|
ProxyInfo(DeploymentInfo depInfo,
java.lang.Object pk,
java.lang.Class intrfc,
RpcContainer cntnr)
Creates a ProxyInfo to represent an EJBHome or EJBObject for a deployed bean in the container system. |
Method Summary | |
---|---|
RpcContainer |
getBeanContainer()
Gets the Container that the deployed bean lives in. |
DeploymentInfo |
getDeploymentInfo()
Gets the DeploymentInfo object of the bean that this proxy represents. |
java.lang.Class |
getInterface()
Gets the bean's remote interface if this proxy represents an EJBObject or the bean's home interface if this proxy represents an EJBHome. |
java.lang.Object |
getPrimaryKey()
Gets the primary key class of the bean or null if the bean does not need a primary key |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DeploymentInfo deploymentInfo
protected java.lang.Object primaryKey
protected java.lang.Class type
protected RpcContainer beanContainer
Constructor Detail |
---|
protected ProxyInfo()
public ProxyInfo(DeploymentInfo depInfo, java.lang.Object pk, java.lang.Class intrfc, RpcContainer cntnr)
depInfo
- the DeploymentInfo object connected to the EJBObject or EJBHome that this proxy will representpk
- the primary key class of the bean or null if the bean does not need a primary keyintrfc
- the bean's remote interface if this proxy represents an EJBObject or the bean's home interface if this proxy represents an EJBHomecntnr
- the Container that the deployed bean lives inDeploymentInfo
,
Container
public ProxyInfo(DeploymentInfo depInfo, java.lang.Object pk, boolean isLocalInterface, RpcContainer cntnr)
Method Detail |
---|
public DeploymentInfo getDeploymentInfo()
DeploymentInfo
public java.lang.Object getPrimaryKey()
public java.lang.Class getInterface()
public RpcContainer getBeanContainer()
Container
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |