|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.ejb3.proxy.factory.ProxyFactoryBase
org.jboss.ejb3.proxy.factory.session.SessionProxyFactoryBase
public abstract class SessionProxyFactoryBase
SessionProxyFactoryBase Base upon which Session Proxy Factory implementations may build
| Constructor Summary | |
|---|---|
SessionProxyFactoryBase(java.lang.String name,
java.lang.String containerName,
java.lang.String containerGuid,
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData metadata,
java.lang.ClassLoader classloader,
org.jboss.aop.Advisor advisor)
Constructor |
|
| Method Summary | |
|---|---|
protected abstract SessionProxyInvocationHandler |
createBusinessDefaultInvocationHandler()
Returns the Constructor of the SessionProxyInvocationHandler to be used in instanciating new handlers to specify in Proxy Creation Used for creating a Handler for a Business Default proxy |
protected abstract SessionProxyInvocationHandler |
createBusinessInterfaceSpecificInvocationHandler(java.lang.String businessInterfaceName)
Returns the Constructor of the SessionProxyInvocationHandler to be used in instanciating new handlers to specify in Proxy Creation Used for creating a Handler for a Business Interface-specific proxy |
protected abstract SessionProxyInvocationHandler |
createEjb2xComponentInterfaceInvocationHandler()
Returns the Constructor of the SessionProxyInvocationHandler to be used in instanciating new handlers to specify in Proxy Creation Used for creating a Handler for an EJB2.x Component Interface proxy |
protected abstract SessionProxyInvocationHandler |
createHomeInvocationHandler()
Returns the Constructor of the SessionProxyInvocationHandler to be used in instanciating new handlers to specify in Proxy Creation Used for creating a Handler for am EJB2.x Home proxy |
java.lang.Object |
createProxyBusiness(java.lang.String businessInterfaceName)
Create an EJB3 Business Proxy specific to the specified target business interface name (expressed as a fully-qualified class name) |
java.lang.Object |
createProxyDefault()
Create an EJB3 Business proxy with no specific target business interface. |
java.lang.Object |
createProxyEjb2x()
Create an EJB2.x Proxy |
java.lang.Object |
createProxyHome()
Create an EJB2.x Home Proxy |
protected abstract java.util.Set<java.lang.String> |
getBusinessInterfaceTypes()
Returns the a Set of String representations of the Business Interface Types |
protected java.util.Set<java.lang.Class<?>> |
getCommonProxyInterfaces()
Returns Proxy interfaces common to all Proxies generated by this ProxyFactory |
protected java.lang.reflect.Constructor<?> |
getConstructorProxyDefault()
|
protected java.lang.reflect.Constructor<?> |
getConstructorProxyEjb2x()
|
protected java.lang.reflect.Constructor<?> |
getConstructorProxyHome()
|
protected java.util.Map<java.lang.String,java.lang.reflect.Constructor<?>> |
getConstructorsProxySpecificBusinessInterface()
|
protected abstract java.lang.String |
getEjb2xInterfaceType()
Returns the String representation of the EJB2.x Interface Types |
protected abstract java.lang.String |
getHomeType()
Returns the String representation of the Home Interface Type |
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData |
getMetadata()
|
protected abstract java.util.Set<java.lang.Class<?>> |
getReturnTypesFromCreateMethods(java.lang.Class<?> homeInterface)
Obtains the return types declared by the "create" methods for the specified home interface. |
protected java.util.Set<java.lang.Class<?>> |
getReturnTypesFromCreateMethods(java.lang.Class<?> homeInterface,
boolean isStateless)
Deprecated. http://jira.jboss.com/jira/browse/JBMETA-41 |
protected void |
setConstructorProxyDefault(java.lang.reflect.Constructor<?> constructorProxyDefault)
|
protected void |
setConstructorProxyEjb2x(java.lang.reflect.Constructor<?> constructorProxyEjb2x)
|
protected void |
setConstructorProxyHome(java.lang.reflect.Constructor<?> constructorProxyHome)
|
protected void |
setConstructorsProxySpecificBusinessInterface(java.util.Map<java.lang.String,java.lang.reflect.Constructor<?>> constructorsProxySpecificBusinessInterface)
|
protected void |
setMetadata(org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData metadata)
|
void |
start()
Lifecycle callback to be invoked before the ProxyFactory is able to service requests |
void |
stop()
Lifecycle callback to be invoked by the ProxyFactoryDeployer before the ProxyFactory is taken out of service, possibly GC'd |
| Methods inherited from class org.jboss.ejb3.proxy.factory.ProxyFactoryBase |
|---|
createProxyConstructor, getAdvisor, getClassLoader, getContainerGuid, getContainerName, getInterceptors, getInterceptorStackName, getName, setClassLoader, setContainerName, setName |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jboss.ejb3.proxy.factory.ProxyFactory |
|---|
getName |
| Constructor Detail |
|---|
public SessionProxyFactoryBase(java.lang.String name,
java.lang.String containerName,
java.lang.String containerGuid,
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData metadata,
java.lang.ClassLoader classloader,
org.jboss.aop.Advisor advisor)
name - The unique name for this ProxyFactorycontainerName - The name of the InvokableContext (container)
upon which Proxies will invokecontainerGuid - The globally-unique name of the containermetadata - The metadata representing this Session Beanclassloader - The ClassLoader associated with the Container's Bean Class
for which this ProxyFactory is to generate Proxiesadvisor - The Advisor for proxies created by this factory| Method Detail |
|---|
public java.lang.Object createProxyHome()
createProxyHome in interface SessionProxyFactorypublic java.lang.Object createProxyDefault()
createProxyDefault in interface SessionProxyFactorypublic java.lang.Object createProxyBusiness(java.lang.String businessInterfaceName)
createProxyBusiness in interface SessionProxyFactorybusinessInterfaceName -
public java.lang.Object createProxyEjb2x()
createProxyEjb2x in interface SessionProxyFactory
public void start()
throws java.lang.Exception
start in interface ProxyFactorystart in class ProxyFactoryBasejava.lang.Exception
public void stop()
throws java.lang.Exception
stop in interface ProxyFactorystop in class ProxyFactoryBasejava.lang.Exceptionprotected java.util.Set<java.lang.Class<?>> getCommonProxyInterfaces()
getCommonProxyInterfaces in class ProxyFactoryBase
@Deprecated
protected java.util.Set<java.lang.Class<?>> getReturnTypesFromCreateMethods(java.lang.Class<?> homeInterface,
boolean isStateless)
homeInterface - isStateless - Flag to indicate whether this is for a Stateful or Stateless container
protected abstract java.util.Set<java.lang.String> getBusinessInterfaceTypes()
protected abstract java.lang.String getHomeType()
protected abstract java.lang.String getEjb2xInterfaceType()
protected abstract java.util.Set<java.lang.Class<?>> getReturnTypesFromCreateMethods(java.lang.Class<?> homeInterface)
homeInterface -
protected abstract SessionProxyInvocationHandler createBusinessInterfaceSpecificInvocationHandler(java.lang.String businessInterfaceName)
protected abstract SessionProxyInvocationHandler createBusinessDefaultInvocationHandler()
protected abstract SessionProxyInvocationHandler createEjb2xComponentInterfaceInvocationHandler()
protected abstract SessionProxyInvocationHandler createHomeInvocationHandler()
public org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData getMetadata()
protected void setMetadata(org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData metadata)
protected java.lang.reflect.Constructor<?> getConstructorProxyDefault()
protected void setConstructorProxyDefault(java.lang.reflect.Constructor<?> constructorProxyDefault)
protected java.util.Map<java.lang.String,java.lang.reflect.Constructor<?>> getConstructorsProxySpecificBusinessInterface()
protected void setConstructorsProxySpecificBusinessInterface(java.util.Map<java.lang.String,java.lang.reflect.Constructor<?>> constructorsProxySpecificBusinessInterface)
protected java.lang.reflect.Constructor<?> getConstructorProxyHome()
protected void setConstructorProxyHome(java.lang.reflect.Constructor<?> constructorProxyHome)
protected java.lang.reflect.Constructor<?> getConstructorProxyEjb2x()
protected void setConstructorProxyEjb2x(java.lang.reflect.Constructor<?> constructorProxyEjb2x)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||