|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.auth.Setter<T>
org.marketcetera.util.auth.SpringSetter<T>
public abstract class SpringSetter<T extends Holder<?>>
A setter that obtains holder data via Spring configuration
properties. It is supported by a SpringContext. It uses a
proxy bean to read the (final) value of a property from one (or
more overriding) properties files.
| Constructor Summary | |
|---|---|
SpringSetter(T holder,
I18NBoundMessage usage,
String propertyName)
Constructor mirroring superclass constructor. |
|
| Method Summary | |
|---|---|
String |
getPropertyName()
Returns the receiver's property name. |
Object |
getPropertyValue(GenericApplicationContext context)
Returns the receiver's property value. |
void |
setup(GenericApplicationContext context,
Properties properties,
int index)
Injects the receiver's proxy bean into the given context. |
abstract void |
setValue(GenericApplicationContext context)
Sets the holder's data by obtaining it from the given context via the receiver's proxy bean. |
| Methods inherited from class org.marketcetera.util.auth.Setter |
|---|
getHolder, getUsage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpringSetter(T holder,
I18NBoundMessage usage,
String propertyName)
propertyName - The property name.Setter.Setter(Holder,I18NBoundMessage)| Method Detail |
|---|
public String getPropertyName()
public Object getPropertyValue(GenericApplicationContext context)
context - The context hosting the receiver's proxy bean.
public void setup(GenericApplicationContext context,
Properties properties,
int index)
context - The context.properties - The properties.index - The index.public abstract void setValue(GenericApplicationContext context)
SpringContext.
context - The context.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||