|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.core.lifecycle.BaseLifecycle
org.kuali.rice.core.ojb.BaseOjbConfigurer
public class BaseOjbConfigurer
Base Ojb Configurer implementation which configures OJB for a particular rice module.
| Field Summary | |
|---|---|
static String |
DEFAULT_OJB_PROPERTIES
|
protected String[] |
jcdAliases
The OJB JCD aliases |
private static org.apache.log4j.Logger |
LOG
|
protected String |
metadataLocation
The location of the OJB repository/metadata descriptor |
static String |
OJB_PROPERTIES_PROP
|
static String |
RICE_OJB_PROPERTIES_PARAM
|
| Constructor Summary | |
|---|---|
BaseOjbConfigurer()
No-arg constructor |
|
BaseOjbConfigurer(String moduleName)
Constructor that derives jcd aliases and repository metadata location from the module name jcdAliases = [ moduleName.toLowerCase() + "DataSource" ] metadataLocation = "classpath:OJB-repository-" + moduleName.toLowerCase() + ".xml"; |
|
BaseOjbConfigurer(String[] jcdAliases,
String metadataLocation)
Constructor which takes the jcdAliases and metadata location |
|
| Method Summary | |
|---|---|
void |
afterPropertiesSet()
|
protected void |
establishConnectionMetaData(org.apache.ojb.broker.metadata.MetadataManager mm)
|
protected void |
establishRepositoryMetaData(org.apache.ojb.broker.metadata.MetadataManager mm)
|
protected String[] |
getJcdAliases()
Return the jcd alias of the connection loaded by the connection metadata. |
protected String |
getMetadataLocation()
Should return a String representing the location of a file to load OJB connection and repository metadata from. |
protected String |
getOjbPropertiesLocation()
|
protected boolean |
isConnectionAlreadyConfigured(org.apache.ojb.broker.metadata.MetadataManager mm)
|
protected InputStream |
preprocessConnectionMetadata(InputStream inputStream)
|
protected InputStream |
preprocessRepositoryMetadata(InputStream inputStream)
|
void |
setJcdAliases(String[] jcdAliases)
|
void |
setMetadataLocation(String metadataLocation)
|
void |
start()
|
void |
stop()
|
| Methods inherited from class org.kuali.rice.core.lifecycle.BaseLifecycle |
|---|
isStarted, setStarted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final org.apache.log4j.Logger LOG
public static final String RICE_OJB_PROPERTIES_PARAM
public static final String OJB_PROPERTIES_PROP
public static final String DEFAULT_OJB_PROPERTIES
protected String[] jcdAliases
protected String metadataLocation
| Constructor Detail |
|---|
public BaseOjbConfigurer()
public BaseOjbConfigurer(String moduleName)
moduleName - the module name
public BaseOjbConfigurer(String[] jcdAliases,
String metadataLocation)
jcdAliases - the jcd aliasesmetadataLocation - the metadata location| Method Detail |
|---|
public void start()
throws Exception
start in interface Lifecyclestart in class BaseLifecycleException
public void stop()
throws Exception
stop in interface Lifecyclestop in class BaseLifecycleExceptionprotected String getOjbPropertiesLocation()
protected void establishConnectionMetaData(org.apache.ojb.broker.metadata.MetadataManager mm)
throws Exception
Exception
protected InputStream preprocessConnectionMetadata(InputStream inputStream)
throws Exception
Exceptionprotected boolean isConnectionAlreadyConfigured(org.apache.ojb.broker.metadata.MetadataManager mm)
protected InputStream preprocessRepositoryMetadata(InputStream inputStream)
throws Exception
Exception
protected void establishRepositoryMetaData(org.apache.ojb.broker.metadata.MetadataManager mm)
throws Exception
Exceptionprotected String[] getJcdAliases()
protected String getMetadataLocation()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionInitializingBean.afterPropertiesSet()public void setJcdAliases(String[] jcdAliases)
jcdAliases - the jcdAliases to setpublic void setMetadataLocation(String metadataLocation)
metadataLocation - the metadataLocation to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||