|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectwave.configuration.bean.EjbPropertyLookup
Attempt to find configuration property values from a ConfigurationService enterprise bean. By default it will look for a bean called "/ejb/ConfigurationService", but this can be changed by setting an enviroment entry in a deployment descriptor. The environment property is "ConfigurationServiceName". The value found (if any) will be the complete JNDI name used to find the configuration service.
Nested Class Summary | |
class |
EjbPropertyLookup.FakeProperty
An object that pretends to be a Properties object. |
Field Summary | |
static java.lang.String |
ejbConfigServiceJndiName
Access ejb locally java:comp/env/ejb/ConfigurationService |
static java.lang.String |
ejbConfigServicePropertyName
|
Constructor Summary | |
EjbPropertyLookup()
Constructor for the EjbPropertyLookup object |
Method Summary | |
ConfigurationServiceHome |
getConfigurationServiceHome()
Attempt to locate the central Enterprise ConfigurationService home. |
javax.naming.Context |
getContext()
Gets the Context attribute of the FakeProperty object |
java.util.Properties |
getOrCreateProperties(java.lang.String categoryId,
java.lang.Object context)
Return an new 'Property' object that will query the ConfigurationService enterprise bean for property values. |
void |
initServiceHome()
Use JNDI to locate the ConfigurationService enterprise bean. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String ejbConfigServiceJndiName
public static final java.lang.String ejbConfigServicePropertyName
Constructor Detail |
public EjbPropertyLookup()
Method Detail |
public ConfigurationServiceHome getConfigurationServiceHome() throws javax.naming.NamingException
javax.naming.NamingException
public java.util.Properties getOrCreateProperties(java.lang.String categoryId, java.lang.Object context)
getOrCreateProperties
in interface CreationStrategy
categoryId
- context
-
public javax.naming.Context getContext() throws javax.naming.NamingException
javax.naming.NamingException
public void initServiceHome() throws javax.naming.NamingException
javax.naming.NamingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |