me.prettyprint.cassandra.jndi
Class CassandraClientJndiResourceFactory

java.lang.Object
  extended by me.prettyprint.cassandra.jndi.CassandraClientJndiResourceFactory
All Implemented Interfaces:
ObjectFactory

public class CassandraClientJndiResourceFactory
extends Object
implements ObjectFactory

A factory for JNDI Resource managed objects. Responsible for creating a Keyspace references for passing to HFactory. A limited set of configuration parameters are supported. These parameters are defined in a web application's context.xml file. Parameter descriptions can be found in CassandraHostConfigurator

           
 

Since:
0.5.1-8
Author:
Perry Hoekstra (dutchman_mn@charter.net), zznate

Constructor Summary
CassandraClientJndiResourceFactory()
           
 
Method Summary
 Object getObjectInstance(Object object, Name jndiName, Context context, Hashtable<?,?> environment)
          Creates an object using the location or reference information specified.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CassandraClientJndiResourceFactory

public CassandraClientJndiResourceFactory()
Method Detail

getObjectInstance

public Object getObjectInstance(Object object,
                                Name jndiName,
                                Context context,
                                Hashtable<?,?> environment)
                         throws Exception
Creates an object using the location or reference information specified.

Specified by:
getObjectInstance in interface ObjectFactory
Parameters:
object - The possibly null object containing location or reference information that can be used in creating an object.
jndiName - The name of this object relative to nameCtx, or null if no name is specified.
context - The context relative to which the name parameter is specified, or null if name is relative to the default initial context.
environment - The possibly null environment that is used in creating the object.
Returns:
Object - The object created; null if an object cannot be created.
Throws:
Exception - - if this object factory encountered an exception while attempting to create an object, and no other object factories are to be tried.


Copyright © 2011. All Rights Reserved.