|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase
public abstract class JndiSessionRegistrarBase
JndiSessionRegistrarBase Responsible for binding of ObjectFactories and creation/registration of associated ProxyFactories, centralizing operations common to that of all Session EJB Implementations
Constructor Summary | |
---|---|
JndiSessionRegistrarBase(String sessionProxyObjectFactoryType)
Creates a JNDI Registrar from the specified configuration properties, none of which may be null. |
Method Summary | |
---|---|
protected void |
bind(Context context,
JndiReferenceBinding binding,
boolean useRebind)
|
protected void |
bind(Context context,
JndiReferenceBindingSet bindings,
boolean useRebind,
boolean bindLocals)
|
protected void |
bind(Context context,
String address,
Reference ref)
Binds the specified Reference into JNDI at the specified address |
void |
bindEjb(Context context,
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData smd,
ClassLoader cl,
String containerName,
String containerGuid,
org.jboss.aop.Advisor advisor)
Binds into JNDI all appropriate objects required by the EJB described by the specified metadata. |
protected JndiReferenceBindingSet |
createJndiReferenceBindingSet(Context context,
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData smd,
ClassLoader cl,
String containerName,
String containerGuid,
org.jboss.aop.Advisor advisor)
Creates all of the Reference objects that should be bound
in JNDI for the EJB, and determines the correct JNDI name for each. |
protected abstract ProxyFactory |
createLocalProxyFactory(String name,
String containerName,
String containerGuid,
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData smd,
ClassLoader cl,
org.jboss.aop.Advisor advisor)
Creates and returns a new local proxy factory for this Session Bean |
protected abstract ProxyFactory |
createRemoteProxyFactory(String name,
String containerName,
String containerGuid,
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData smd,
ClassLoader cl,
String url,
org.jboss.aop.Advisor advisor,
String interceptorStackName)
Creates and returns a new remote proxy factory for this Session Bean |
protected RefAddr |
createRemotingRefAddr(String clientBindUrl)
Creates and returns a new RefAddr to flag the proper InvokerLocator URL used by remoting for the EJB represented by the specified metadata |
protected Reference |
createStandardReference(String referenceName,
String proxyFactoryRegistryKey,
String containerName,
boolean isLocal)
Creates a new Reference whose classname is
the given referenceName and whose classFactory
is getSessionProxyObjectFactoryType() , adding
the requisite Registry key for the ProxyFactory and the requisite
target EJB Container Name as ReferenceAddresses. |
protected void |
deregisterProxyFactory(String name)
Deregisters the proxy factory with the specified name from the registry |
protected String |
getHumanReadableListOfInterfacesInRefAddrs(List<RefAddr> refAddrs)
Makes a comma-delimited list of interfaces bound for setting the Classname of the Reference. |
String |
getProxyFactoryRegistryKey(String jndiName,
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData smd,
boolean isLocal)
Returns the name of the unique key under which a Proxy Factory will be registered. |
String |
getSessionProxyObjectFactoryType()
|
protected boolean |
isHomeAndBusinessBoundTogether(org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData smd,
boolean isLocal)
Returns whether the business interfaces and EJB2.x Home should be bound to the same JNDI Name |
protected void |
rebind(Context context,
String address,
Reference ref)
Re-binds the specified Reference into JNDI at the specified address |
protected void |
registerProxyFactory(String name,
ProxyFactory factory,
org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData smd)
Registers the specified proxy factory into the registry |
void |
setSessionProxyObjectFactoryType(String sessionProxyObjectFactoryType)
|
protected void |
unbind(Context context,
String address)
Unbinds the specified address from JNDI |
void |
unbindEjb(Context context,
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData smd)
Unbinds from JNDI all appropriate objects registered by the EJB described by the specified metadata. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JndiSessionRegistrarBase(String sessionProxyObjectFactoryType)
sessionProxyObjectFactoryType
- String representation of the JNDI Object
Factory Class Name (fully-qualified) to use for this Session EJBMethod Detail |
---|
public void bindEjb(Context context, org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData smd, ClassLoader cl, String containerName, String containerGuid, org.jboss.aop.Advisor advisor)
context
- The JNDI Context to use for bindingsmd
- the Container's metadatacl
- The CL of the ContainercontainerName
- The name under which the target container is registeredcontainerGuid
- The globally-unique name of the containeradvisor
- The advisor to use for generated proxiesprotected JndiReferenceBindingSet createJndiReferenceBindingSet(Context context, org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData smd, ClassLoader cl, String containerName, String containerGuid, org.jboss.aop.Advisor advisor)
Reference
objects that should be bound
in JNDI for the EJB, and determines the correct JNDI name for each.
Additionally responsible for creation and registration of any all
ProxyFactory implementations required by the EJB.
smd
- the Container's metadatacl
- The CL of the ContainercontainerName
- The name under which the target container is registeredcontainerGuid
- The globally-unique name of the containeradvisor
- The advisor to use for generated proxies
public void unbindEjb(Context context, org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData smd)
context
- The JNDI Context to use for unbindingsmd
- protected abstract ProxyFactory createLocalProxyFactory(String name, String containerName, String containerGuid, org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData smd, ClassLoader cl, org.jboss.aop.Advisor advisor)
name
- The unique name for the ProxyFactorycontainerName
- The name of the Container upon which Proxies
from the returned ProxyFactory will invokecontainerGuid
- The globally-unique name of the containersmd
- The metadata representing this Session EJBcl
- The ClassLoader for this EJB Containeradvisor
- The Advisor for proxies created by this factoryprotected abstract ProxyFactory createRemoteProxyFactory(String name, String containerName, String containerGuid, org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData smd, ClassLoader cl, String url, org.jboss.aop.Advisor advisor, String interceptorStackName)
name
- The unique name for the ProxyFactorycontainerName
- The name of the Container upon which Proxies
from the returned ProxyFactory will invokecontainerGuid
- The globally-unique name of the containersmd
- The metadata representing this Session EJBcl
- The ClassLoader for this EJB Containerurl
- The URL to use for Remotingadvisor
- The Advisor for proxies created by this factoryinterceptorStackName
- The name of the client-side interceptor stack to use.
If null the default will apply.protected Reference createStandardReference(String referenceName, String proxyFactoryRegistryKey, String containerName, boolean isLocal)
Reference
whose classname
is
the given referenceName
and whose classFactory
is getSessionProxyObjectFactoryType()
, adding
the requisite Registry key for the ProxyFactory and the requisite
target EJB Container Name as ReferenceAddresses.
protected void bind(Context context, JndiReferenceBindingSet bindings, boolean useRebind, boolean bindLocals)
protected void bind(Context context, JndiReferenceBinding binding, boolean useRebind)
protected void bind(Context context, String address, Reference ref)
context
- The JNDI Context to useaddress
- the addressref
- the reference to bindprotected void rebind(Context context, String address, Reference ref)
context
- The JNDI Context to useaddress
- the addressobject
- the object to bindprotected void unbind(Context context, String address)
context
- The JNDI Context to useaddress
- protected boolean isHomeAndBusinessBoundTogether(org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData smd, boolean isLocal)
smd
- isLocal
-
protected RefAddr createRemotingRefAddr(String clientBindUrl)
clientBindUrl
-
public String getProxyFactoryRegistryKey(String jndiName, org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData smd, boolean isLocal)
jndiName
- smd
- isLocal
- protected String getHumanReadableListOfInterfacesInRefAddrs(List<RefAddr> refAddrs)
refAddrs
-
protected void registerProxyFactory(String name, ProxyFactory factory, org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData smd) throws org.jboss.ejb3.common.registrar.spi.DuplicateBindException
name
- The unique name for the ProxyFactoryfactory
- smd
- Metadata describing the EJB
org.jboss.ejb3.common.registrar.spi.DuplicateBindException
protected void deregisterProxyFactory(String name)
name
- public String getSessionProxyObjectFactoryType()
public void setSessionProxyObjectFactoryType(String sessionProxyObjectFactoryType)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |