org.jboss.ejb3.proxy.factory
Class ProxyFactoryHelper

java.lang.Object
  extended by org.jboss.ejb3.proxy.factory.ProxyFactoryHelper

public class ProxyFactoryHelper
extends Object

Comment

Version:
$Revision: 83940 $
Author:
Bill Burke

Constructor Summary
ProxyFactoryHelper()
           
 
Method Summary
static Constructor<?> createProxyConstructor(Class<?>[] interfaces, ClassLoader cl)
          Create a Proxy Constructor for the specified interfaces, using the specified CL
static Set<Class<?>> getBusinessInterfaces(Class<?> beanClass)
          Resolve the potential business interfaces on an enterprise bean.
static Set<Class<?>> getBusinessInterfaces(Class<?> beanClass, boolean includeSupers)
          Resolve the potential business interfaces on an enterprise bean.
static String getDefaultRemoteBusinessJndiName(EJBContainer container)
           
static String getHomeJndiName(EJBContainer container)
           
static String getJndiName(EJBContainer container, Class<?> businessInterface)
          Obtains the JNDI name for the specified container; may either be explicitly-defined by annotation / XML or will otherwise default to the configured JNDI Binding Policy
static Class<?>[] getLocalAndBusinessLocalInterfaces(Container container)
           
static Class<?>[] getLocalBusinessInterfaces(Container container)
          Returns all local business interfaces in the specified container; interfaces marked as "local" via either annotation or XML and not extending EJBLocalObject
static Class<?> getLocalHomeInterface(Container container)
           
static String getLocalHomeJndiName(EJBContainer container)
           
static Class<?>[] getLocalInterfaces(Container container)
          Returns all local interfaces in the specified container; interfaces marked as "local" via either annotation or XML and extending EJBLocalObject
static String getLocalJndiName(EJBContainer container)
           
static Class<?>[] getRemoteAndBusinessRemoteInterfaces(Container container)
          Returns all remote and remote business interfaces in the specified container, designated by @Remote or in ejb-jar.xml as "remote" or "business-remote"
static Class<?>[] getRemoteBusinessInterfaces(Container container)
          Returns all remote business interfaces in the specified container; interfaces marked as "remote" via either annotation or XML and not extending EJBObject
static String getRemoteBusinessJndiName(EJBContainer container)
           
static String getRemoteBusinessJndiName(EJBContainer container, boolean check)
           
static String getRemoteBusinessJndiName(EJBContainer container, org.jboss.ejb3.annotation.RemoteBinding binding, boolean conflictCheck)
           
static Class<?> getRemoteHomeInterface(Container container)
           
static Class<?>[] getRemoteInterfaces(Container container)
          Returns all remote interfaces in the specified container; interfaces marked as "remote" via either annotation or XML and extending EJBObject
static boolean publishesInterface(Container container, Class<?> businessInterface)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyFactoryHelper

public ProxyFactoryHelper()
Method Detail

getLocalAndBusinessLocalInterfaces

public static Class<?>[] getLocalAndBusinessLocalInterfaces(Container container)
Parameters:
container -
Returns:
the local interfaces of the container or an empty array

getBusinessInterfaces

public static Set<Class<?>> getBusinessInterfaces(Class<?> beanClass)
Resolve the potential business interfaces on an enterprise bean. Returns all interfaces implemented by this class and its supers which are potentially a business interface. Note: for normal operation call container.getBusinessInterfaces().

Parameters:
beanClass - the EJB implementation class
Returns:
a list of potential business interfaces
See Also:
EJBContainer.getBusinessInterfaces()

getBusinessInterfaces

public static Set<Class<?>> getBusinessInterfaces(Class<?> beanClass,
                                                  boolean includeSupers)
Resolve the potential business interfaces on an enterprise bean. Returns all interfaces implemented by this class and, optionally, its supers which are potentially a business interface. Note: for normal operation call container.getBusinessInterfaces().

Parameters:
beanClass - the EJB implementation class
includeSupers - Whether or not to include superclasses of the specified beanClass in this check
Returns:
a list of potential business interfaces
See Also:
EJBContainer.getBusinessInterfaces()

getLocalHomeInterface

public static Class<?> getLocalHomeInterface(Container container)

getRemoteHomeInterface

public static Class<?> getRemoteHomeInterface(Container container)

publishesInterface

public static boolean publishesInterface(Container container,
                                         Class<?> businessInterface)

getJndiName

public static String getJndiName(EJBContainer container,
                                 Class<?> businessInterface)
Obtains the JNDI name for the specified container; may either be explicitly-defined by annotation / XML or will otherwise default to the configured JNDI Binding Policy

Parameters:
container -
businessInterface -
Returns:

getLocalInterfaces

public static Class<?>[] getLocalInterfaces(Container container)
Returns all local interfaces in the specified container; interfaces marked as "local" via either annotation or XML and extending EJBLocalObject

Parameters:
container -
Returns:

getRemoteInterfaces

public static Class<?>[] getRemoteInterfaces(Container container)
Returns all remote interfaces in the specified container; interfaces marked as "remote" via either annotation or XML and extending EJBObject

Parameters:
container -
Returns:

getLocalBusinessInterfaces

public static Class<?>[] getLocalBusinessInterfaces(Container container)
Returns all local business interfaces in the specified container; interfaces marked as "local" via either annotation or XML and not extending EJBLocalObject

Parameters:
container -
Returns:

getRemoteBusinessInterfaces

public static Class<?>[] getRemoteBusinessInterfaces(Container container)
Returns all remote business interfaces in the specified container; interfaces marked as "remote" via either annotation or XML and not extending EJBObject

Parameters:
container -
Returns:

getRemoteAndBusinessRemoteInterfaces

public static Class<?>[] getRemoteAndBusinessRemoteInterfaces(Container container)
Returns all remote and remote business interfaces in the specified container, designated by @Remote or in ejb-jar.xml as "remote" or "business-remote"

Parameters:
container -
Returns:
the remote interfaces of the container or an empty array

createProxyConstructor

public static Constructor<?> createProxyConstructor(Class<?>[] interfaces,
                                                    ClassLoader cl)
                                             throws Exception
Create a Proxy Constructor for the specified interfaces, using the specified CL

Parameters:
interfaces -
cl -
Returns:
Throws:
Exception

getHomeJndiName

public static String getHomeJndiName(EJBContainer container)

getLocalHomeJndiName

public static String getLocalHomeJndiName(EJBContainer container)

getLocalJndiName

public static String getLocalJndiName(EJBContainer container)

getRemoteBusinessJndiName

public static String getRemoteBusinessJndiName(EJBContainer container)

getRemoteBusinessJndiName

public static String getRemoteBusinessJndiName(EJBContainer container,
                                               boolean check)

getRemoteBusinessJndiName

public static String getRemoteBusinessJndiName(EJBContainer container,
                                               org.jboss.ejb3.annotation.RemoteBinding binding,
                                               boolean conflictCheck)

getDefaultRemoteBusinessJndiName

public static String getDefaultRemoteBusinessJndiName(EJBContainer container)


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