This project has retired. For details please refer to its
Attic page .
SpringJNDIStarter (Jetspeed-2 RDBMS Components 2.1.3 API)
org.apache.jetspeed.components.jndi
Class SpringJNDIStarter
java.lang.Object
org.apache.jetspeed.components.jndi.SpringJNDIStarter
public class SpringJNDIStarter extends Object
Methods inherited from class java.lang.Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
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
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 applicationbootConfig
- (string-)list of files to process on bootappConfig
- (string-)list of files to process as configuration
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.