com.icecool.jndi.dbdir
Class StringObjectFactory

java.lang.Object
  |
  +--com.icecool.jndi.dbdir.StringObjectFactory
All Implemented Interfaces:
ObjectFactory

public class StringObjectFactory
extends Object
implements ObjectFactory

An ObjectFactory implementation that converts database objects stored as "strings" to JNDI objects. If the object is a string, it is returned as is. If it is serialized data, it decodes it using a BASE64 decoder.


Constructor Summary
StringObjectFactory()
           
 
Method Summary
 Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment)
           
 Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable environment, Attributes attrs)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringObjectFactory

public StringObjectFactory()
Method Detail

getObjectInstance

public Object getObjectInstance(Object obj,
                                Name name,
                                Context nameCtx,
                                Hashtable environment,
                                Attributes attrs)
                         throws Exception
Exception

getObjectInstance

public Object getObjectInstance(Object obj,
                                Name name,
                                Context nameCtx,
                                Hashtable environment)
                         throws Exception
Specified by:
getObjectInstance in interface ObjectFactory
Exception