|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.marketcetera.util.auth.Context<T>
public abstract class Context<T extends Setter<?>>
A context, comprising a group of setters. The context provides an operational context for its setters to set their respective holder data. When multiple contexts attempt to set holder data in sequence (via their respective, context-specific setters), then a later override context will override prior successful settings, while a non-override context will not.
| Constructor Summary | |
|---|---|
Context(boolean override)
Creates a new anonymous context with the given override role. |
|
Context(I18NBoundMessage name,
boolean override)
Creates a new context with the given name and override role. |
|
| Method Summary | |
|---|---|
void |
add(T setter)
Adds the given setter to the receiver's setters. |
I18NBoundMessage |
getName()
Returns the receiver's name. |
boolean |
getOverride()
Checks whether the receiver is an override context. |
Iterable<T> |
getSetters()
Returns the receiver's setters. |
void |
printUsage(PrintStream stream)
Prints the receiver's usage instructions (which include its name, if not anonymous) onto the given stream. |
abstract void |
setValues()
Sets the data of the holders associated with the receivers' setters. |
boolean |
shouldProcess(Setter<?> setter)
Checks whether the receiver should process the specified setter, that is, attempt to use it to set the holder data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Context(I18NBoundMessage name,
boolean override)
name - The context name.override - The override role.public Context(boolean override)
override - The override role.| Method Detail |
|---|
public boolean shouldProcess(Setter<?> setter)
setter - The setter.
public void add(T setter)
setter - The setter.public Iterable<T> getSetters()
public I18NBoundMessage getName()
public void printUsage(PrintStream stream)
stream - The stream.public boolean getOverride()
public abstract void setValues()
throws I18NException
I18NException - Thrown if the receiver cannot create an
operational context for its setters, and therefore the setters
cannot even attempt to set their holder data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||