com.emarsys.ecommon.builder.time
Class TimeBuilder

java.lang.Object
  extended by com.emarsys.ecommon.builder.time.TimeBuilder
All Implemented Interfaces:
Builder<Time>

public class TimeBuilder
extends java.lang.Object
implements Builder<Time>

The default Builder for Time instances.

Author:
Michael "kULO" Kulovits

Constructor Summary
TimeBuilder()
           
 
Method Summary
static Time getInstance()
           Creates a new Time instance by delegating to the Builder registered with Time in Builders.
 Time newInstance()
           Creates a Time instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeBuilder

public TimeBuilder()
Method Detail

getInstance

public static Time getInstance()

Creates a new Time instance by delegating to the Builder registered with Time in Builders.

Note that this method needs not to use newInstance() (this is only the default case) but may call whatever Time-Builder that is set in the registry.

Returns:

newInstance

public Time newInstance()

Creates a Time instance.

The SystemTime singleton instance will be returned on every call.

Specified by:
newInstance in interface Builder<Time>
Returns:
a new T instance, never null.
See Also:
Builder.newInstance()


Copyright © 2010 emarsys AG. All Rights Reserved.