com.cafesoft.cams.access
Interface ResourceTypeRegistry


public interface ResourceTypeRegistry

Registry object that contains all ResourceTypes and their respective ResourceRequestFactory objects.

Since:
7/30/03
See Also:
ResourceRequestFactory, ResourceType

Method Summary
 ResourceRequestFactory getResourceRequestFactory(ResourceType type)
          Get the ResourceRequestFactory.
 ResourceRequestFactory getResourceRequestFactory(String typeName)
          Get the ResourceRequestFactory.
 ResourceType getResourceType(String typeName)
          Get the requested ResourceType from the registry.
 ResourceType[] getResourceTypes()
          Get all registered ResourceTypes.
 

Method Detail

getResourceType

public ResourceType getResourceType(String typeName)
Get the requested ResourceType from the registry.

Parameters:
typeName - the name of the ResourceType to get.
Returns:
the ResourceType with the given typeName, or null if it is not registered.
Throws:
NullPointerException - if typeName is null.

getResourceTypes

public ResourceType[] getResourceTypes()
Get all registered ResourceTypes.

Returns:
an array containing all registered ResourceTypes, or a zero length array if no ResourceTypes are registered.

getResourceRequestFactory

public ResourceRequestFactory getResourceRequestFactory(String typeName)
Get the ResourceRequestFactory.

Parameters:
typeName - the name of the ResourceType.
Returns:
the ResourceRequestFactory that corresponds to the ResourceType, or null if the ResourceType is not registered.
Throws:
NullPointerException - if typeName is null.

getResourceRequestFactory

public ResourceRequestFactory getResourceRequestFactory(ResourceType type)
Get the ResourceRequestFactory.

Parameters:
type - the ResourceType.
Returns:
the ResourceRequestFactory that corresponds to the ResourceType, or null if the ResourceType is not registered.
Throws:
NullPointerException - if type is null.


Generated on 5:16:42 PM May 12, 2008, © 1996-2005 Cafésoft LLC. All rights reserved.