org.openejb
Class ProxyInfo
java.lang.Object
|
+--org.openejb.ProxyInfo
- Direct Known Subclasses:
- SpecialProxyInfo
- public class ProxyInfo
- extends java.lang.Object
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.
- Since:
- JDK 1.2
- Version:
- 0.1, 3/21/2000
Constructor Summary |
protected |
ProxyInfo()
Create an instance of ProxyInfo. |
|
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 |
deploymentInfo
protected DeploymentInfo deploymentInfo
primaryKey
protected java.lang.Object primaryKey
type
protected java.lang.Class type
beanContainer
protected RpcContainer beanContainer
ProxyInfo
protected ProxyInfo()
- Create an instance of ProxyInfo. For use in subclassing.
ProxyInfo
public 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.
- Parameters:
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 in- See Also:
DeploymentInfo
,
Container
getDeploymentInfo
public DeploymentInfo getDeploymentInfo()
- Gets the DeploymentInfo object of the bean that this proxy represents.
- Returns:
- the DeploymentInfo of the bean deployment
- See Also:
DeploymentInfo
getPrimaryKey
public java.lang.Object getPrimaryKey()
- Gets the primary key class of the bean or null if the bean does not need a primary key
- Returns:
- the primary key class of the bean or null if the bean does not need a primary key
getInterface
public 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.
- Returns:
- the class of the bean's remote or home interface
getBeanContainer
public RpcContainer getBeanContainer()
- Gets the Container that the deployed bean lives in.
- Returns:
- the Container that the bean deployment lives in
- See Also:
Container