org.compass.core.jndi
Class CompassObjectFactory

java.lang.Object
  extended by org.compass.core.jndi.CompassObjectFactory
All Implemented Interfaces:
ObjectFactory

public class CompassObjectFactory
extends Object
implements ObjectFactory

Resolves Compass JNDI lookups and deserialization


Constructor Summary
CompassObjectFactory()
           
 
Method Summary
static void addInstance(String uid, String name, Compass instance, CompassSettings settings)
           
static Object getInstance(String uid)
           
static Object getNamedInstance(String name)
           
 Object getObjectInstance(Object reference, Name name, Context ctx, Hashtable env)
           
static void removeInstance(String uid, String name, CompassSettings settings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompassObjectFactory

public CompassObjectFactory()
Method Detail

getObjectInstance

public Object getObjectInstance(Object reference,
                                Name name,
                                Context ctx,
                                Hashtable env)
                         throws Exception
Specified by:
getObjectInstance in interface ObjectFactory
Throws:
Exception

addInstance

public static void addInstance(String uid,
                               String name,
                               Compass instance,
                               CompassSettings settings)

removeInstance

public static void removeInstance(String uid,
                                  String name,
                                  CompassSettings settings)

getNamedInstance

public static Object getNamedInstance(String name)

getInstance

public static Object getInstance(String uid)


Copyright (c) 2004-2008 The Compass Project.