Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.jcorporate.expresso.core.db.config
Class JNDIConfig  view JNDIConfig download JNDIConfig.java

java.lang.Object
  extended bycom.jcorporate.expresso.kernel.EmbeddedComponent
      extended bycom.jcorporate.expresso.core.db.config.JNDIConfig
All Implemented Interfaces:
com.jcorporate.expresso.kernel.ComponentLifecycle, com.jcorporate.expresso.kernel.ExpressoComponent, java.io.Serializable

public class JNDIConfig
extends com.jcorporate.expresso.kernel.EmbeddedComponent
implements java.io.Serializable, com.jcorporate.expresso.kernel.ComponentLifecycle

A Commons digester class for JDBC section of the standardmaessig Expresso Configuration XML file. This bean defines the conection characteristics to the database in this context

Documentation written by Yves Henri AMAIZO @ AmyCase.com, Sun Jul 29 00:55:00 GMT 2002

All the 'bean' methods here are directly mapped to the <jdbc> section int the expresso-config.xml file. It is recommend that you also look at the Expresso config DTD for a better understanding of the relation of these various parameteters.

Since:
Expresso 5.1

Field Summary
protected  java.lang.String authoritative
          JNDI AUTHORITATIVE
protected  java.lang.String batchSize
          JNDI BATCHSIZE
protected  java.lang.String dnsURL
          JNDI DNS_URL
protected  java.lang.String initialContextFactory
          JNDI INITIAL CONTEXT FACTORY
protected  java.lang.String language
          JNDI LANGUAGE
protected  java.lang.String objectFactories
          JNDI OBJECT_FACTORIES
protected  java.lang.String providerURL
          JNDI provider URL ://:
protected  java.lang.String securityAuthentication
          JNDI SECURITY_AUTHENTICATION "none", "simple", "strong"
protected  java.lang.String securityCredentials
          JNDI SECURITY_CREDENTIALS Password
protected  java.lang.String securityPrincipal
          JNDI SECURITY_PRINCIPAL Username
protected  java.lang.String securityProtocol
          JNDI SECURITY_PROTOCOL
protected  java.lang.String stateFactories
          JNDI STATE_FACTORIES
protected  java.lang.String urlPKGPrefixes
          JNDI URL_PKG_PREFIXES
 
Fields inherited from class com.jcorporate.expresso.kernel.EmbeddedComponent
 
Constructor Summary
JNDIConfig()
          Default constructor
JNDIConfig(java.lang.String factory, java.lang.String user, java.lang.String pass, java.lang.String provider)
          Default commons constructor
 
Method Summary
 void configure(com.jcorporate.expresso.kernel.Configuration newConfig)
          Configure lifecycle event.
 void destroy()
          Destroy Lifecycle Event
 java.lang.String getAuthoritative()
          Gets the authoritative
 java.lang.String getBatchSize()
          Gets the batchSize
 java.lang.String getDnsURL()
          Gets the dnsURL
 java.lang.String getInitialContextFactory()
          Gets the initialContextFactory
 java.lang.String getLanguage()
          Gets the language
 java.lang.String getMetadataName()
          Because we look up our metadata in the parent component, we have to somehow know WHAT component's metadata is ours.
 java.lang.String getObjectFactories()
          Gets the objectFactories
 java.lang.String getProviderURL()
          Gets the providerURL
 java.lang.String getSecurityAuthentication()
          Gets the securityAuthentication
 java.lang.String getSecurityCredentials()
          Gets the securityCredentials
 java.lang.String getSecurityPrincipal()
          Gets the securityPrincipal
 java.lang.String getSecurityProtocol()
          Gets the securityProtocol
 java.lang.String getStateFactories()
          Gets the stateFactories
 java.lang.String getUrlPKGPrefixes()
          Gets the urlPKGPrefixes
 void initialize()
          Initial Creation initialization
 void reconfigure(com.jcorporate.expresso.kernel.Configuration newConfig)
          Reconfigure Lifecycle Event.
 void setAuthoritative(java.lang.String authoritative)
          Sets the authoritative
 void setBatchSize(java.lang.String batchSize)
          Sets the batchSize
 void setDnsURL(java.lang.String dnsURL)
          Sets the dnsURL
 void setInitialContextFactory(java.lang.String initialContextFactory)
          Sets the initialContextFactory
 void setLanguage(java.lang.String language)
          Sets the language
 void setObjectFactories(java.lang.String objectFactories)
          Sets the objectFactories
 void setProviderURL(java.lang.String providerURL)
          Sets the providerURL
 void setSecurityAuthentication(java.lang.String securityAuthentication)
          Sets the securityAuthentication
 void setSecurityCredentials(java.lang.String securityCredentials)
          Sets the securityCredentials
 void setSecurityPrincipal(java.lang.String securityPrincipal)
          Sets the securityPrincipal
 void setSecurityProtocol(java.lang.String securityProtocol)
          Sets the securityProtocol
 void setStateFactories(java.lang.String stateFactories)
          Sets the stateFactories
 void setUrlPKGPrefixes(java.lang.String urlPKGPrefixes)
          Sets the urlPKGPrefixes
 
Methods inherited from class com.jcorporate.expresso.kernel.EmbeddedComponent
getMetaData, getParent, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialContextFactory

protected java.lang.String initialContextFactory
JNDI INITIAL CONTEXT FACTORY


providerURL

protected java.lang.String providerURL
JNDI provider URL ://:


securityPrincipal

protected java.lang.String securityPrincipal
JNDI SECURITY_PRINCIPAL Username


securityCredentials

protected java.lang.String securityCredentials
JNDI SECURITY_CREDENTIALS Password


dnsURL

protected java.lang.String dnsURL
JNDI DNS_URL


securityProtocol

protected java.lang.String securityProtocol
JNDI SECURITY_PROTOCOL


securityAuthentication

protected java.lang.String securityAuthentication
JNDI SECURITY_AUTHENTICATION "none", "simple", "strong"


objectFactories

protected java.lang.String objectFactories
JNDI OBJECT_FACTORIES


stateFactories

protected java.lang.String stateFactories
JNDI STATE_FACTORIES


urlPKGPrefixes

protected java.lang.String urlPKGPrefixes
JNDI URL_PKG_PREFIXES


batchSize

protected java.lang.String batchSize
JNDI BATCHSIZE


authoritative

protected java.lang.String authoritative
JNDI AUTHORITATIVE


language

protected java.lang.String language
JNDI LANGUAGE

Constructor Detail

JNDIConfig

public JNDIConfig()
Default constructor


JNDIConfig

public JNDIConfig(java.lang.String factory,
                  java.lang.String user,
                  java.lang.String pass,
                  java.lang.String provider)
Default commons constructor

Method Detail

getInitialContextFactory

public java.lang.String getInitialContextFactory()
Gets the initialContextFactory


setInitialContextFactory

public void setInitialContextFactory(java.lang.String initialContextFactory)
Sets the initialContextFactory


getProviderURL

public java.lang.String getProviderURL()
Gets the providerURL


setProviderURL

public void setProviderURL(java.lang.String providerURL)
Sets the providerURL


getDnsURL

public java.lang.String getDnsURL()
Gets the dnsURL


setDnsURL

public void setDnsURL(java.lang.String dnsURL)
Sets the dnsURL


getSecurityProtocol

public java.lang.String getSecurityProtocol()
Gets the securityProtocol


setSecurityProtocol

public void setSecurityProtocol(java.lang.String securityProtocol)
Sets the securityProtocol


getUrlPKGPrefixes

public java.lang.String getUrlPKGPrefixes()
Gets the urlPKGPrefixes


setUrlPKGPrefixes

public void setUrlPKGPrefixes(java.lang.String urlPKGPrefixes)
Sets the urlPKGPrefixes


getBatchSize

public java.lang.String getBatchSize()
Gets the batchSize


setBatchSize

public void setBatchSize(java.lang.String batchSize)
Sets the batchSize


getAuthoritative

public java.lang.String getAuthoritative()
Gets the authoritative


setAuthoritative

public void setAuthoritative(java.lang.String authoritative)
Sets the authoritative


getLanguage

public java.lang.String getLanguage()
Gets the language


setLanguage

public void setLanguage(java.lang.String language)
Sets the language


getSecurityPrincipal

public java.lang.String getSecurityPrincipal()
Gets the securityPrincipal


setSecurityPrincipal

public void setSecurityPrincipal(java.lang.String securityPrincipal)
Sets the securityPrincipal


getSecurityCredentials

public java.lang.String getSecurityCredentials()
Gets the securityCredentials


setSecurityCredentials

public void setSecurityCredentials(java.lang.String securityCredentials)
Sets the securityCredentials


getSecurityAuthentication

public java.lang.String getSecurityAuthentication()
Gets the securityAuthentication


setSecurityAuthentication

public void setSecurityAuthentication(java.lang.String securityAuthentication)
Sets the securityAuthentication


getObjectFactories

public java.lang.String getObjectFactories()
Gets the objectFactories


setObjectFactories

public void setObjectFactories(java.lang.String objectFactories)
Sets the objectFactories


getStateFactories

public java.lang.String getStateFactories()
Gets the stateFactories


setStateFactories

public void setStateFactories(java.lang.String stateFactories)
Sets the stateFactories


initialize

public void initialize()
Initial Creation initialization

Specified by:
initialize in interface com.jcorporate.expresso.kernel.ComponentLifecycle

configure

public void configure(com.jcorporate.expresso.kernel.Configuration newConfig)
               throws com.jcorporate.expresso.kernel.exception.ConfigurationException
Configure lifecycle event. Loads all the configuration values

Specified by:
configure in interface com.jcorporate.expresso.kernel.ComponentLifecycle

reconfigure

public void reconfigure(com.jcorporate.expresso.kernel.Configuration newConfig)
                 throws com.jcorporate.expresso.kernel.exception.ConfigurationException
Reconfigure Lifecycle Event. Zeroes out all configuration values and reconfigures.

Specified by:
reconfigure in interface com.jcorporate.expresso.kernel.ComponentLifecycle

destroy

public void destroy()
Destroy Lifecycle Event

Specified by:
destroy in interface com.jcorporate.expresso.kernel.ComponentLifecycle

getMetadataName

public java.lang.String getMetadataName()
Because we look up our metadata in the parent component, we have to somehow know WHAT component's metadata is ours. Sub classes need to override this one-liner and return the name of the metadata we're looking for.