All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.sun.wizards.builder.resolver.ResourceResolver

public interface ResourceResolver
This interface describes objects that are able to resolve an arbitrary resource from some source. Classes implementing this interface will have specific knowledge of where to get its classes. For example, one might create an "HTTPResourceResolver" That searches for its resources via an HTTP request from somewhere on the network. The ResourceResolver will know how to resolve resources based on resource name, resource type, and any extra arbitrary data associated with the resource.


Method Index

 o resolveResource(String, String, byte[])
Resolves resources from some source.

Methods

 o resolveResource
 public abstract ResourceInputStream resolveResource(String type,
                                                     String name,
                                                     byte extData[])
Resolves resources from some source. This method provides the core functionality of the ResourceResolver.

Parameters:
type - The type of the requested resource
name - The name of the requested resource in dot notation (i.e. "com.sun.wizards.core.Task")
extData - Any extra data that was specified for this resource in the ResourceCollection. This can be ignored in many circumstances, unless an object implementing this interface is expecting certain extra data during a request, or needs the extra data to distinguish whether to resolver a particular resource or not.
Returns:
The requested resource, or null if the resource could not be found

All Packages  Class Hierarchy  This Package  Previous  Next  Index