winstone.jndi
Class ContainerJNDIManager

java.lang.Object
  extended by winstone.jndi.ContainerJNDIManager
All Implemented Interfaces:
JNDIManager
Direct Known Subclasses:
WebAppJNDIManager

public class ContainerJNDIManager
extends java.lang.Object
implements JNDIManager

Implements a simple web.xml + command line arguments style jndi manager

Version:
$Id: ContainerJNDIManager.java,v 1.3 2006/02/28 07:32:48 rickknowles Exp $
Author:
Rick Knowles

Field Summary
static WinstoneResourceBundle JNDI_RESOURCES
           
protected  java.util.Map objectsToCreate
           
 
Constructor Summary
ContainerJNDIManager(java.util.Map args, java.util.List webXmlNodes, java.lang.ClassLoader loader)
          Gets the relevant list of objects from the args, validating against the web.xml nodes supplied.
 
Method Summary
protected  java.lang.Object createObject(java.lang.String name, java.lang.String className, java.lang.String value, java.util.Map args, java.lang.ClassLoader loader)
          Build an object to insert into the jndi space
 void setup()
          Add the objects passed to the constructor to the JNDI Context addresses specified
 void tearDown()
          Remove the objects under administration from the JNDI Context, and then destroy the objects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JNDI_RESOURCES

public static final WinstoneResourceBundle JNDI_RESOURCES

objectsToCreate

protected java.util.Map objectsToCreate
Constructor Detail

ContainerJNDIManager

public ContainerJNDIManager(java.util.Map args,
                            java.util.List webXmlNodes,
                            java.lang.ClassLoader loader)
Gets the relevant list of objects from the args, validating against the web.xml nodes supplied. All node addresses are assumed to be relative to the java:/comp/env context

Method Detail

setup

public void setup()
Add the objects passed to the constructor to the JNDI Context addresses specified

Specified by:
setup in interface JNDIManager

tearDown

public void tearDown()
Remove the objects under administration from the JNDI Context, and then destroy the objects

Specified by:
tearDown in interface JNDIManager

createObject

protected java.lang.Object createObject(java.lang.String name,
                                        java.lang.String className,
                                        java.lang.String value,
                                        java.util.Map args,
                                        java.lang.ClassLoader loader)
Build an object to insert into the jndi space



Copyright © 2013. All Rights Reserved.