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.
-
ArchiveResolver(WizardState)
- Create an ArchiveWriter with the default WizardState classes
and the default RuntimeClasses set.
-
getResolverWizardState()
- Gets the Wizard State used during resource resolution.
-
resolveResource(String, String, byte[])
- Resolves resources from the resource resolver.
-
setResolverWizardState(WizardState)
- Sets the wizard state that this object will resolve its resources from
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.
getResolverWizardState
public WizardState getResolverWizardState()
- Gets the Wizard State used during resource resolution.
- Returns:
- The WizardState that this resolver gets its resources from
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
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