|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb3.proxy.impl.factory.ProxyFactoryBase
org.jboss.ejb3.proxy.impl.factory.session.SessionProxyFactoryBase
public abstract class SessionProxyFactoryBase
SessionProxyFactoryBase Base upon which Session Proxy Factory implementations may build
Constructor Summary | |
---|---|
SessionProxyFactoryBase(String name,
String containerName,
String containerGuid,
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData metadata,
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(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 |
Object |
createProxyBusiness(String businessInterfaceName)
Create an EJB3 Business Proxy specific to the specified target business interface name (expressed as a fully-qualified class name) |
Object |
createProxyDefault()
Create an EJB3 Business proxy with no specific target business interface. |
Object |
createProxyEjb2x()
Create an EJB2.x Proxy |
Object |
createProxyHome()
Create an EJB2.x Home Proxy |
protected abstract Set<String> |
getBusinessInterfaceTypes()
Returns the a Set of String representations of the Business Interface Types |
protected Constructor<?> |
getConstructorProxyDefault()
|
protected Constructor<?> |
getConstructorProxyEjb2x()
|
protected Constructor<?> |
getConstructorProxyHome()
|
protected Map<String,Constructor<?>> |
getConstructorsProxySpecificBusinessInterface()
|
protected abstract String |
getEjb2xInterfaceType()
Returns the String representation of the EJB2.x Interface Types |
protected abstract String |
getHomeType()
Returns the String representation of the Home Interface Type |
org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData |
getMetadata()
|
protected abstract Set<Class<?>> |
getReturnTypesFromCreateMethods(Class<?> homeInterface)
Obtains the return types declared by the "create" methods for the specified home interface. |
protected Set<Class<?>> |
getReturnTypesFromCreateMethods(Class<?> homeInterface,
boolean isStateless)
Deprecated. http://jira.jboss.com/jira/browse/JBMETA-41 |
protected void |
setConstructorProxyDefault(Constructor<?> constructorProxyDefault)
|
protected void |
setConstructorProxyEjb2x(Constructor<?> constructorProxyEjb2x)
|
protected void |
setConstructorProxyHome(Constructor<?> constructorProxyHome)
|
protected void |
setConstructorsProxySpecificBusinessInterface(Map<String,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.impl.factory.ProxyFactoryBase |
---|
createProxyConstructor, getAdvisor, getClassLoader, getCommonProxyInterfaces, 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.impl.factory.ProxyFactory |
---|
getName |
Constructor Detail |
---|
public SessionProxyFactoryBase(String name, String containerName, String containerGuid, org.jboss.metadata.ejb.jboss.JBossSessionBeanMetaData metadata, 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 factoryMethod Detail |
---|
public Object createProxyHome()
createProxyHome
in interface SessionSpecProxyFactory
public Object createProxyDefault()
createProxyDefault
in interface SessionProxyFactory
public Object createProxyBusiness(String businessInterfaceName)
createProxyBusiness
in interface SessionSpecProxyFactory
businessInterfaceName
-
public Object createProxyEjb2x()
createProxyEjb2x
in interface SessionSpecProxyFactory
public void start() throws Exception
start
in interface ProxyFactory
start
in class ProxyFactoryBase
Exception
public void stop() throws Exception
stop
in interface ProxyFactory
stop
in class ProxyFactoryBase
Exception
@Deprecated protected Set<Class<?>> getReturnTypesFromCreateMethods(Class<?> homeInterface, boolean isStateless)
homeInterface
- isStateless
- Flag to indicate whether this is for a Stateful or Stateless container
protected abstract Set<String> getBusinessInterfaceTypes()
protected abstract String getHomeType()
protected abstract String getEjb2xInterfaceType()
protected abstract Set<Class<?>> getReturnTypesFromCreateMethods(Class<?> homeInterface)
homeInterface
-
protected abstract SessionProxyInvocationHandler createBusinessInterfaceSpecificInvocationHandler(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 Constructor<?> getConstructorProxyDefault()
protected void setConstructorProxyDefault(Constructor<?> constructorProxyDefault)
protected Map<String,Constructor<?>> getConstructorsProxySpecificBusinessInterface()
protected void setConstructorsProxySpecificBusinessInterface(Map<String,Constructor<?>> constructorsProxySpecificBusinessInterface)
protected Constructor<?> getConstructorProxyHome()
protected void setConstructorProxyHome(Constructor<?> constructorProxyHome)
protected Constructor<?> getConstructorProxyEjb2x()
protected void setConstructorProxyEjb2x(Constructor<?> constructorProxyEjb2x)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |