|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.naftulin.configmgr.content.AbstractRecordImpl
org.naftulin.configmgr.content.JndiRecordImpl
public class JndiRecordImpl
Represents a jndi entry, with it's key, name-value pairs and parser class. Intended to mirror master configuration rules for external configuration. The external configuraton xml is:
<jndi key="the key"
initialContextFactory="optional contenxt factory"
jndiName="jdni name"
>
<param name="key1" value="value1" />
.....
<param name="keyn" value="valuen" />
</jndi>
| Constructor Summary | |
|---|---|
JndiRecordImpl()
|
|
| Method Summary | |
|---|---|
void |
addNameValuePair(NameValuePairImpl nv)
Adds a name-value pair as it is read from the master configuration. |
java.lang.String |
getFileName()
Returns the file name associated with the record. |
java.lang.String |
getInitialContextFactory()
|
java.lang.String |
getJndiName()
|
java.util.List<NameValuePairImpl> |
getNameValuePairs()
|
ConfigEntryParser |
getParser()
Returns the parser that can parse the file to extract the configuration. |
boolean |
isGetUrlForFile()
Since it is not a file-based cofiguration, we need to overwrite the method. |
void |
setInitialContextFactory(java.lang.String initialContextFactory)
|
void |
setJndiName(java.lang.String jndiName)
|
| Methods inherited from class org.naftulin.configmgr.content.AbstractRecordImpl |
|---|
getKey, setFileName, setKey, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JndiRecordImpl()
| Method Detail |
|---|
public java.util.List<NameValuePairImpl> getNameValuePairs()
public void addNameValuePair(NameValuePairImpl nv)
nv - the name value pair.public java.lang.String getInitialContextFactory()
public void setInitialContextFactory(java.lang.String initialContextFactory)
public java.lang.String getJndiName()
public void setJndiName(java.lang.String jndiName)
public ConfigEntryParser getParser()
throws ConfigurationManagerException
AbstractRecordImpl
getParser in class AbstractRecordImplConfigurationManagerException - if an error occured while instantiating the parser.public boolean isGetUrlForFile()
isGetUrlForFile in class AbstractRecordImplpublic java.lang.String getFileName()
AbstractRecordImpl
getFileName in class AbstractRecordImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||