org.marketcetera.util.auth
Class Setter<T extends Holder<?>>

java.lang.Object
  extended by org.marketcetera.util.auth.Setter<T>
Direct Known Subclasses:
CliSetter, ConsoleSetter, SpringSetter

public class Setter<T extends Holder<?>>
extends Object

A wrapper around a data holder that sets the holder's data. A holder may have more than one setter.

Since:
0.5.0
Version:
$Id: Setter.java 16154 2012-07-14 16:34:05Z colin $
Author:
tlerios@marketcetera.com

Constructor Summary
Setter(T holder, I18NBoundMessage usage)
          Creates a new setter, associated with the given holder, and with the given usage instructions.
 
Method Summary
 T getHolder()
          Returns the receiver's holder.
 I18NBoundMessage getUsage()
          Returns the receiver's usage instructions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Setter

public Setter(T holder,
              I18NBoundMessage usage)
Creates a new setter, associated with the given holder, and with the given usage instructions.

Parameters:
holder - The data holder.
usage - The usage instructions.
Method Detail

getHolder

public T getHolder()
Returns the receiver's holder.

Returns:
The holder.

getUsage

public I18NBoundMessage getUsage()
Returns the receiver's usage instructions.

Returns:
The instructions.


Copyright © 2012. All Rights Reserved.