net.refractions.udig.core
Class StaticProvider<T>

java.lang.Object
  extended by net.refractions.udig.core.StaticProvider<T>
All Implemented Interfaces:
IProvider<T>

public class StaticProvider<T>
extends java.lang.Object
implements IProvider<T>

An implementation of a Provider that provides the reference it was constructed with.

Example:

Provider p=new StaticProvider(integerInstance);

Since:
1.1.0
Author:
jones

Constructor Summary
StaticProvider(T objectToProvide)
           
 
Method Summary
 T get()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticProvider

public StaticProvider(T objectToProvide)
Method Detail

get

public T get()
Specified by:
get in interface IProvider<T>