org.apache.jetspeed.components.jndi
Class SpringJNDIStarter

java.lang.Object
  extended by org.apache.jetspeed.components.jndi.SpringJNDIStarter

public class SpringJNDIStarter
extends Object


Field Summary
(package private)  String[] appConfig
           
(package private)  String appRoot
           
(package private)  String[] bootConfig
           
private  Map context
           
static String DATASOURCE_DRIVER
           
static String DATASOURCE_PASSWORD
           
static String DATASOURCE_URL
           
static String DATASOURCE_USERNAME
           
protected  BoundDBCPDatasourceComponent datasourceComponent
           
protected  JNDIComponent jndi
           
static String JNDI_DS_NAME
           
(package private)  org.apache.jetspeed.components.SpringComponentManager scm
           
 
Constructor Summary
SpringJNDIStarter(Map context, String appRoot, String[] bootConfig, String[] appConfig)
          Create an instance with a given context and the usual SpringComponent arguments
 
Method Summary
 org.apache.jetspeed.components.SpringComponentManager getComponentManager()
           
 Map getContext()
           
(package private)  String getProperty(String name)
           
 void setUp()
          The main startup routine.
 void setupJNDI()
           
 void tearDown()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JNDI_DS_NAME

public static final String JNDI_DS_NAME
See Also:
Constant Field Values

DATASOURCE_DRIVER

public static final String DATASOURCE_DRIVER

DATASOURCE_URL

public static final String DATASOURCE_URL

DATASOURCE_USERNAME

public static final String DATASOURCE_USERNAME

DATASOURCE_PASSWORD

public static final String DATASOURCE_PASSWORD

context

private final Map context

datasourceComponent

protected BoundDBCPDatasourceComponent datasourceComponent

jndi

protected JNDIComponent jndi

appRoot

String appRoot

bootConfig

String[] bootConfig

appConfig

String[] appConfig

scm

org.apache.jetspeed.components.SpringComponentManager scm
Constructor Detail

SpringJNDIStarter

public SpringJNDIStarter(Map context,
                         String appRoot,
                         String[] bootConfig,
                         String[] appConfig)
Create an instance with a given context and the usual SpringComponent arguments

Parameters:
context -
appRoot - root directory of the application
bootConfig - (string-)list of files to process on boot
appConfig - (string-)list of files to process as configuration
Method Detail

setUp

public void setUp()
           throws Exception
The main startup routine. Establishes a JNDI connection based on the following System parameters:

org.apache.jetspeed.database.url

org.apache.jetspeed.database.driver

org.apache.jetspeed.database.user

org.apache.jetspeed.database.password

Throws:
Exception

tearDown

public void tearDown()
              throws Exception
Throws:
Exception

getProperty

String getProperty(String name)

setupJNDI

public void setupJNDI()
               throws Exception
Throws:
Exception

getComponentManager

public org.apache.jetspeed.components.SpringComponentManager getComponentManager()

getContext

public Map getContext()


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.