org.naftulin.configmgr.parsers
Class AbstractJndiParser

java.lang.Object
  extended by org.naftulin.configmgr.parsers.AbstractJndiParser
Direct Known Subclasses:
DbJndiParserImpl, JndiParserImpl

public class AbstractJndiParser
extends java.lang.Object


Field Summary
protected  java.lang.String initialContextFactory
           
protected  java.lang.String jndiName
           
protected static org.apache.log4j.Logger log
           
protected  java.util.List<NameValuePairImpl> nameValuePairs
           
 
Constructor Summary
AbstractJndiParser(java.lang.String jndiName, java.lang.String initialContextFactory, java.util.List<NameValuePairImpl> nameValuePairs)
           
 
Method Summary
protected  javax.naming.InitialContext getJndiContext(java.lang.String key, java.util.Properties props, javax.naming.InitialContext context)
           
protected  void prepareJndiProperties(java.util.Properties props)
           
protected  void validateParameters(java.lang.String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static final org.apache.log4j.Logger log

jndiName

protected final java.lang.String jndiName

initialContextFactory

protected final java.lang.String initialContextFactory

nameValuePairs

protected final java.util.List<NameValuePairImpl> nameValuePairs
Constructor Detail

AbstractJndiParser

public AbstractJndiParser(java.lang.String jndiName,
                          java.lang.String initialContextFactory,
                          java.util.List<NameValuePairImpl> nameValuePairs)
Method Detail

getJndiContext

protected javax.naming.InitialContext getJndiContext(java.lang.String key,
                                                     java.util.Properties props,
                                                     javax.naming.InitialContext context)
                                              throws ConfigurationManagerException
Throws:
ConfigurationManagerException

prepareJndiProperties

protected void prepareJndiProperties(java.util.Properties props)

validateParameters

protected void validateParameters(java.lang.String key)
                           throws ConfigurationManagerException
Throws:
ConfigurationManagerException


Copyright © 2009. All Rights Reserved.