|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.auth.Context<SpringSetter<?>>
org.marketcetera.util.auth.SpringContext
public class SpringContext
A context for Spring setters (SpringSetter). This context
provides a Spring context, which is partially created via a Spring
configuration file that instantiates a properties file
bean like this one:
<bean
id="propertiesFiles"
class="java.lang.String">
<constructor-arg
value="file:src/test/sample_data/auth/auth_user.properties" />
</bean>
or this one
<util:list id="propertiesFiles"> <value>file:src/test/sample_data/auth/auth_pwd.properties</value> </util:list>The Spring configuration file and the name of the bean are given as arguments to the constructors of this class. In both cases, one or more properties files are thus identified. The newly created context guides its setters to set holder data based on the property values contained in these files: each
SpringSetter is
associated with a property name, and sets its holder data to the
property value.
| Constructor Summary | |
|---|---|
SpringContext(boolean override,
String configLocation,
String propertiesFilesBean)
Constructor mirroring superclass constructor. |
|
SpringContext(I18NBoundMessage name,
boolean override,
String configLocation,
String propertiesFilesBean)
Constructor mirroring superclass constructor. |
|
| Method Summary | |
|---|---|
String |
getConfigLocation()
Returns the location of the Spring configuration file. |
String |
getPropertiesFilesBean()
Returns the name of the properties file bean. |
void |
setValues()
Sets the data of the holders associated with the receivers' setters. |
| Methods inherited from class org.marketcetera.util.auth.Context |
|---|
add, getName, getOverride, getSetters, printUsage, shouldProcess |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpringContext(I18NBoundMessage name,
boolean override,
String configLocation,
String propertiesFilesBean)
configLocation - The location of the Spring configuration
file.propertiesFilesBean - The name of the properties file
bean.Context.Context(I18NBoundMessage,boolean)
public SpringContext(boolean override,
String configLocation,
String propertiesFilesBean)
configLocation - The location of the Spring configuration
file.propertiesFilesBean - The name of the properties file
bean.Context.Context(I18NBoundMessage,boolean)| Method Detail |
|---|
public String getConfigLocation()
public String getPropertiesFilesBean()
public void setValues()
Context
setValues in class Context<SpringSetter<?>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||