net.sf.freecol.common.resources
Class ResourceFactory

java.lang.Object
  extended by net.sf.freecol.common.resources.ResourceFactory

public class ResourceFactory
extends java.lang.Object

A factory class for creating Resource instances.

See Also:
Resource

Constructor Summary
ResourceFactory()
           
 
Method Summary
static Resource createResource(java.net.URI uri)
          Returns an instance of Resource with the given URI as the parameter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceFactory

public ResourceFactory()
Method Detail

createResource

public static Resource createResource(java.net.URI uri)
Returns an instance of Resource with the given URI as the parameter.

Parameters:
uri - The URI used when creating the instance.
Returns:
A previously created instance of Resource with the given URI if such an object has already been created, or a new instance if not.