org.jboss.ejb3.proxy.impl.factory.session.service
Class ServiceProxyFactoryBase

java.lang.Object
  extended by org.jboss.ejb3.proxy.impl.factory.ProxyFactoryBase
      extended by org.jboss.ejb3.proxy.impl.factory.session.service.ServiceProxyFactoryBase
All Implemented Interfaces:
ProxyFactory, ServiceProxyFactory, SessionProxyFactory
Direct Known Subclasses:
ServiceLocalProxyFactory, ServiceRemoteProxyFactory

public abstract class ServiceProxyFactoryBase
extends ProxyFactoryBase
implements ServiceProxyFactory

ServiceProxyFactoryBase Base upon which @Service Proxy Factory implementations may build

Version:
$Revision: $
Author:
ALR

Constructor Summary
ServiceProxyFactoryBase(String name, String containerName, String containerGuid, org.jboss.metadata.ejb.jboss.JBossServiceBeanMetaData metadata, ClassLoader classloader, org.jboss.aop.Advisor advisor)
          Constructor
 
Method Summary
protected abstract  SessionProxyInvocationHandler createInvocationHandler()
          Returns the ServiceProxyInvocationHandler to be used in Proxy Creation
 Object createProxyDefault()
          Create an EJB3 Business proxy.
protected abstract  Set<String> getBusinessInterfaceTypes()
          Returns the a Set of String representations of the Business Interface Types
 org.jboss.metadata.ejb.jboss.JBossServiceBeanMetaData getMetadata()
           
protected  Constructor<?> getProxyConstructor()
           
protected  void setMetadata(org.jboss.metadata.ejb.jboss.JBossServiceBeanMetaData metadata)
           
protected  void setProxyConstructor(Constructor<?> proxyConstructor)
           
 void start()
          Lifecycle callback to be invoked before the ProxyFactory is able to service requests
 void stop()
          Lifecycle callback to be invoked 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

ServiceProxyFactoryBase

public ServiceProxyFactoryBase(String name,
                               String containerName,
                               String containerGuid,
                               org.jboss.metadata.ejb.jboss.JBossServiceBeanMetaData metadata,
                               ClassLoader classloader,
                               org.jboss.aop.Advisor advisor)
Constructor

Parameters:
name - The unique name for this ProxyFactory
containerName - The name of the InvokableContext (container) upon which Proxies will invoke
containerGuid - The globally-unique name of the container
metadata - The metadata representing this @Service Bean
classloader - The ClassLoader associated with the Container's Bean Class for which this ProxyFactory is to generate Proxies
advisor - The Advisor for proxies created by this factory
Method Detail

createProxyDefault

public Object createProxyDefault()
Create an EJB3 Business proxy. The returned proxy will implement all appropriate business interfaces.

Specified by:
createProxyDefault in interface SessionProxyFactory
Returns:

start

public void start()
           throws Exception
Lifecycle callback to be invoked before the ProxyFactory is able to service requests

Specified by:
start in interface ProxyFactory
Overrides:
start in class ProxyFactoryBase
Throws:
Exception

stop

public void stop()
          throws Exception
Lifecycle callback to be invoked before the ProxyFactory is taken out of service, possibly GC'd

Specified by:
stop in interface ProxyFactory
Overrides:
stop in class ProxyFactoryBase
Throws:
Exception

getBusinessInterfaceTypes

protected abstract Set<String> getBusinessInterfaceTypes()
Returns the a Set of String representations of the Business Interface Types

Returns:

createInvocationHandler

protected abstract SessionProxyInvocationHandler createInvocationHandler()
Returns the ServiceProxyInvocationHandler to be used in Proxy Creation

Returns:

getMetadata

public org.jboss.metadata.ejb.jboss.JBossServiceBeanMetaData getMetadata()

setMetadata

protected void setMetadata(org.jboss.metadata.ejb.jboss.JBossServiceBeanMetaData metadata)

getProxyConstructor

protected Constructor<?> getProxyConstructor()

setProxyConstructor

protected void setProxyConstructor(Constructor<?> proxyConstructor)


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.