Class BaseOjbConfigurer

java.lang.Object
org.kuali.rice.core.api.lifecycle.BaseLifecycle
org.kuali.rice.core.framework.persistence.ojb.BaseOjbConfigurer
All Implemented Interfaces:
Lifecycle, org.springframework.beans.factory.InitializingBean

@Deprecated public class BaseOjbConfigurer extends BaseLifecycle implements org.springframework.beans.factory.InitializingBean
Deprecated.
Base Ojb Configurer implementation which configures OJB for a particular rice module.
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Field Details

    • RICE_OJB_PROPERTIES_PARAM

      public static final String RICE_OJB_PROPERTIES_PARAM
      Deprecated.
      See Also:
    • OJB_PROPERTIES_PROP

      public static final String OJB_PROPERTIES_PROP
      Deprecated.
      See Also:
    • jcdAliases

      protected String[] jcdAliases
      Deprecated.
      The OJB JCD aliases
    • metadataLocation

      protected String metadataLocation
      Deprecated.
      The location of the OJB repository/metadata descriptor
    • additionalMetadataLocations

      protected List<String> additionalMetadataLocations
      Deprecated.
  • Constructor Details

    • BaseOjbConfigurer

      public BaseOjbConfigurer()
      Deprecated.
      No-arg constructor
    • BaseOjbConfigurer

      public BaseOjbConfigurer(String moduleName)
      Deprecated.
      Constructor that derives jcd aliases and repository metadata location from the module name jcdAliases = [ moduleName.toLowerCase() + "DataSource" ] metadataLocation = "classpath:OJB-repository-" + moduleName.toLowerCase() + ".xml";
      Parameters:
      moduleName - the module name
    • BaseOjbConfigurer

      public BaseOjbConfigurer(String[] jcdAliases, String metadataLocation)
      Deprecated.
      Constructor which takes the jcdAliases and metadata location
      Parameters:
      jcdAliases - the jcd aliases
      metadataLocation - the metadata location
  • Method Details

    • start

      public void start() throws Exception
      Deprecated.
      Specified by:
      start in interface Lifecycle
      Overrides:
      start in class BaseLifecycle
      Throws:
      Exception
    • stop

      public void stop() throws Exception
      Deprecated.
      Specified by:
      stop in interface Lifecycle
      Overrides:
      stop in class BaseLifecycle
      Throws:
      Exception
    • getOjbPropertiesLocation

      protected String getOjbPropertiesLocation()
      Deprecated.
    • establishConnectionMetaData

      protected void establishConnectionMetaData(org.apache.ojb.broker.metadata.MetadataManager mm) throws Exception
      Deprecated.
      Throws:
      Exception
    • preprocessConnectionMetadata

      protected InputStream preprocessConnectionMetadata(InputStream inputStream) throws Exception
      Deprecated.
      Throws:
      Exception
    • isConnectionAlreadyConfigured

      protected boolean isConnectionAlreadyConfigured(org.apache.ojb.broker.metadata.MetadataManager mm)
      Deprecated.
    • preprocessRepositoryMetadata

      protected InputStream preprocessRepositoryMetadata(InputStream inputStream) throws Exception
      Deprecated.
      Throws:
      Exception
    • establishRepositoryMetaData

      protected void establishRepositoryMetaData(org.apache.ojb.broker.metadata.MetadataManager mm) throws Exception
      Deprecated.
      Throws:
      Exception
    • getJcdAliases

      protected String[] getJcdAliases()
      Deprecated.
      Return the jcd alias of the connection loaded by the connection metadata. The default implementation returns the jcd alias with which the instance was created (if any)
      Returns:
      the jcd alias of the connection loaded by the connection metadata.
    • getMetadataLocation

      protected String getMetadataLocation()
      Deprecated.
      Should return a String representing the location of a file to load OJB connection and repository metadata from. If null or empty than no metadata will be loaded. The default implementation returns the metadata location with which the instance was created (if any)
    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Deprecated.
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
      See Also:
      • InitializingBean.afterPropertiesSet()
    • setJcdAliases

      public void setJcdAliases(String[] jcdAliases)
      Deprecated.
      Parameters:
      jcdAliases - the jcdAliases to set
    • setMetadataLocation

      public void setMetadataLocation(String metadataLocation)
      Deprecated.
      Parameters:
      metadataLocation - the metadataLocation to set
    • getAdditionalMetadataLocations

      public List<String> getAdditionalMetadataLocations()
      Deprecated.
      List of additional OJB descriptor files to include with the connect
      Returns:
      List<String> list of ojb files
    • setAdditionalMetadataLocations

      public void setAdditionalMetadataLocations(List<String> additionalMetadataLocations)
      Deprecated.
      Setter for additional ojb metadata files