|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ow2.jonas.lib.util.JNDIUtils
public class JNDIUtils
JNDIUtils groups all commonly used methods for JNDI.
| Method Summary | ||
|---|---|---|
static
|
extractObjectFrom(Reference ref,
String key,
Class<T> type)
Extract an Object from the Reference. |
|
static String |
extractStringFrom(Reference ref,
String key)
Extract a String value with the given key, from the Reference. |
|
static byte[] |
getBytesFromObject(Object obj)
Return an array of byte from a given object |
|
static byte[] |
getBytesFromObject(Object obj,
org.objectweb.util.monolog.api.Logger logger)
Return an array of byte from a given object |
|
static Object |
getObjectFromBytes(byte[] bytes)
Return an object from an array of bytes. |
|
static Object |
getObjectFromBytes(byte[] bytes,
org.objectweb.util.monolog.api.Logger logger)
Return an object from an array of bytes. |
|
static void |
insertInto(Reference ref,
String key,
Object value)
Insert a key/value String/Object couple in the given Reference after serialization of the value. |
|
static void |
insertInto(Reference ref,
String key,
String value)
Insert a key/value String/String couple in the given Reference as a StringRefAddr. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static byte[] getBytesFromObject(Object obj)
obj - the object from which we must extract the bytes.
public static byte[] getBytesFromObject(Object obj,
org.objectweb.util.monolog.api.Logger logger)
obj - the object from which we must extract the bytes.logger - logger to log exceptions
public static Object getObjectFromBytes(byte[] bytes)
bytes - an array of bytes
public static Object getObjectFromBytes(byte[] bytes,
org.objectweb.util.monolog.api.Logger logger)
bytes - an array of byteslogger - logger to log exceptions
public static void insertInto(Reference ref,
String key,
String value)
ref - Reference to be modifiedkey - Address' keyvalue - Address' value
public static void insertInto(Reference ref,
String key,
Object value)
ref - Reference to be modifiedkey - Address' keyvalue - Object value (will be serialized)
public static String extractStringFrom(Reference ref,
String key)
ref - Reference that holds the value withinkey - Key of the value
public static <T> T extractObjectFrom(Reference ref,
String key,
Class<T> type)
ref - Reference that holds the serialized version of the requested objectkey - Object's keytype - Object's type (may be an interface)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||