public class EJBUtils extends Object
| Constructor and Description |
|---|
EJBUtils() |
| Modifier and Type | Method and Description |
|---|---|
static RemoteBusinessWrapperBase |
createRemoteBusinessObject(ClassLoader loader,
String businessInterface,
Remote delegate) |
static RemoteBusinessWrapperBase |
createRemoteBusinessObject(String businessInterface,
Remote delegate) |
static Object |
deserializeObject(byte[] data,
ClassLoader loader,
boolean resolveObject,
long appUniqueId)
Utility method for deserializing EJBs, primary keys and
container-managed fields, all of which may include Remote
EJB references,
Local refs, JNDI Contexts etc which are not Serializable.
|
static Object |
deserializeObject(byte[] data,
ClassLoader loader,
long appUniqueId) |
static void |
deserializeObjectFields(Object instance,
ObjectInputStream ois) |
static void |
deserializeObjectFields(Object instance,
ObjectInputStream ois,
Object replaceValue,
boolean usesSuperClass) |
static Class |
generateSEI(ClassGeneratorFactory cgf,
String seiClassName,
ClassLoader loader,
Class beanClass) |
static String |
getGeneratedOptionalInterfaceName(String ejbClassName) |
static String |
getGeneratedRemoteIntfName(String businessIntf) |
static String |
getGeneratedRemoteWrapperName(String businessIntf) |
static String |
getGeneratedSerializableClassName(String beanClass) |
static String |
getGenericEJBHomeClassName() |
static String |
getRemote30HomeJndiName(String jndiName) |
static String |
getRemoteEjbJndiName(boolean businessView,
String interfaceName,
String jndiName) |
static String |
getRemoteEjbJndiName(EjbReferenceDescriptor refDesc)
Actual jndi-name under which Remote ejb factory lives depends on
whether it's a Remote Home view or Remote Business view.
|
static Class |
loadGeneratedGenericEJBHomeClass(ClassLoader appClassLoader) |
static void |
loadGeneratedRemoteBusinessClasses(ClassLoader appClassLoader,
String businessInterfaceName) |
static void |
loadGeneratedRemoteBusinessClasses(String businessInterfaceName) |
static Class |
loadGeneratedSerializableClass(ClassLoader loader,
String className) |
static Object |
lookupRemote30BusinessObject(Object jndiObj,
String businessInterface) |
static Object |
resolveEjbRefObject(EjbReferenceDescriptor refDesc,
Object jndiObj) |
static byte[] |
serializeObject(Object obj) |
static byte[] |
serializeObject(Object obj,
boolean replaceObject)
Utility methods for serializing EJBs, primary keys and
container-managed fields, all of which may include Remote EJB
references,
Local refs, JNDI Contexts etc which are not Serializable.
|
static void |
serializeObjectFields(Object instance,
ObjectOutputStream oos) |
static void |
serializeObjectFields(Object instance,
ObjectOutputStream oos,
boolean usesSuperClass) |
static boolean |
useStaticCodegen() |
public static final byte[] serializeObject(Object obj, boolean replaceObject) throws IOException
IOExceptionpublic static final byte[] serializeObject(Object obj) throws IOException
IOExceptionpublic static final Object deserializeObject(byte[] data, ClassLoader loader, boolean resolveObject, long appUniqueId) throws Exception
data - loader - resolveObject - appUniqueId - Exceptionpublic static final Object deserializeObject(byte[] data, ClassLoader loader, long appUniqueId) throws Exception
Exceptionpublic static boolean useStaticCodegen()
public static String getGeneratedOptionalInterfaceName(String ejbClassName)
public static String getGeneratedSerializableClassName(String beanClass)
public static String getGeneratedRemoteWrapperName(String businessIntf)
public static String getGenericEJBHomeClassName()
public static String getRemoteEjbJndiName(EjbReferenceDescriptor refDesc)
public static String getRemoteEjbJndiName(boolean businessView, String interfaceName, String jndiName)
public static Object resolveEjbRefObject(EjbReferenceDescriptor refDesc, Object jndiObj) throws NamingException
NamingExceptionpublic static Object lookupRemote30BusinessObject(Object jndiObj, String businessInterface) throws NamingException
NamingExceptionpublic static Class loadGeneratedSerializableClass(ClassLoader loader, String className) throws Exception
Exceptionpublic static void loadGeneratedRemoteBusinessClasses(String businessInterfaceName) throws Exception
Exceptionpublic static void loadGeneratedRemoteBusinessClasses(ClassLoader appClassLoader, String businessInterfaceName) throws Exception
Exceptionpublic static Class loadGeneratedGenericEJBHomeClass(ClassLoader appClassLoader) throws Exception
Exceptionpublic static Class generateSEI(ClassGeneratorFactory cgf, String seiClassName, ClassLoader loader, Class beanClass)
public static RemoteBusinessWrapperBase createRemoteBusinessObject(String businessInterface, Remote delegate) throws Exception
Exceptionpublic static RemoteBusinessWrapperBase createRemoteBusinessObject(ClassLoader loader, String businessInterface, Remote delegate) throws Exception
Exceptionpublic static void serializeObjectFields(Object instance, ObjectOutputStream oos) throws IOException
IOExceptionpublic static void serializeObjectFields(Object instance, ObjectOutputStream oos, boolean usesSuperClass) throws IOException
IOExceptionpublic static void deserializeObjectFields(Object instance, ObjectInputStream ois) throws IOException
IOExceptionpublic static void deserializeObjectFields(Object instance, ObjectInputStream ois, Object replaceValue, boolean usesSuperClass) throws IOException
IOExceptionCopyright © 2017. All rights reserved.