All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.wizards.builder.resolver.ArchiveResolver

java.lang.Object
   |
   +----com.sun.wizards.builder.resolver.ArchiveResolver

public class ArchiveResolver
extends Object
implements ResourceResolver
ArchiveResolver is able to resolver resources from an existing Archive. You must supply an existing WizardState object that is connected to the required archive.


Constructor Index

 o ArchiveResolver(WizardState)
Create an ArchiveWriter with the default WizardState classes and the default RuntimeClasses set.

Method Index

 o getResolverWizardState()
Gets the Wizard State used during resource resolution.
 o resolveResource(String, String, byte[])
Resolves resources from the resource resolver.
 o setResolverWizardState(WizardState)
Sets the wizard state that this object will resolve its resources from

Constructors

 o ArchiveResolver
 public ArchiveResolver(WizardState resolverWizardState)
Create an ArchiveWriter with the default WizardState classes and the default RuntimeClasses set.

Parameters:
resolverWizardState - The wizard state associated with the archive that this resolver should read its resources out of.

Methods

 o getResolverWizardState
 public WizardState getResolverWizardState()
Gets the Wizard State used during resource resolution.

Returns:
The WizardState that this resolver gets its resources from
 o setResolverWizardState
 public void setResolverWizardState(WizardState resolverWizardState)
Sets the wizard state that this object will resolve its resources from

Parameters:
resolverWizardState - the wizard state that this object should attempt to resolve its resources from
 o resolveResource
 public ResourceInputStream resolveResource(String type,
                                            String name,
                                            byte extData[])
Resolves resources from the resource resolver.

Parameters:
type - The type of the requested resource
name - The name of the requested resource i 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