org.apache.jetspeed.components.jndi
Class SpringJNDIStarter
java.lang.Object
org.apache.jetspeed.components.jndi.SpringJNDIStarter
public class SpringJNDIStarter
- extends java.lang.Object
Constructor Summary |
SpringJNDIStarter(java.util.Map context,
java.lang.String appRoot,
java.lang.String[] bootConfig,
java.lang.String[] appConfig)
Create an instance with a given context and the usual SpringComponent arguments |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JNDI_DS_NAME
public static final java.lang.String JNDI_DS_NAME
- See Also:
- Constant Field Values
DATASOURCE_DRIVER
public static final java.lang.String DATASOURCE_DRIVER
DATASOURCE_URL
public static final java.lang.String DATASOURCE_URL
DATASOURCE_USERNAME
public static final java.lang.String DATASOURCE_USERNAME
DATASOURCE_PASSWORD
public static final java.lang.String DATASOURCE_PASSWORD
datasourceComponent
protected BoundDBCPDatasourceComponent datasourceComponent
jndi
protected JNDIComponent jndi
SpringJNDIStarter
public SpringJNDIStarter(java.util.Map context,
java.lang.String appRoot,
java.lang.String[] bootConfig,
java.lang.String[] appConfig)
- Create an instance with a given context and the usual SpringComponent arguments
- Parameters:
context
- appRoot
- root directory of the applicationbootConfig
- (string-)list of files to process on bootappConfig
- (string-)list of files to process as configuration
setUp
public void setUp()
throws java.lang.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:
java.lang.Exception
tearDown
public void tearDown()
throws java.lang.Exception
- Throws:
java.lang.Exception
setupJNDI
public void setupJNDI()
throws java.lang.Exception
- Throws:
java.lang.Exception
getComponentManager
public SpringComponentManager getComponentManager()
getContext
public java.util.Map getContext()
Copyright © 1999-2009 Apache Software Foundation. All Rights Reserved.