|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NameResolver
NameResolvers are responsible for converting string names into InputStreamProviders, which encapsulate a remote file. Implementations exist that support using URLs, Files, Class resources, and the Servlet API to locate files, but other APIs may be substituted.
In some cases, the resolved target file may have need to locate support files of its own. Since those support files should be looked for relative to the target file, NameResolver supports creating new relative NameResolvers.
Developers writing their own NameResolver should strongly consider subclassing BaseNameResolver.
XMLUtils.getResolver(org.apache.myfaces.trinidadinternal.share.xml.ParseContext)
,
Method Summary | |
---|---|
InputStreamProvider |
getProvider(java.lang.String name)
Given a name, returns an InputStreamProvider. |
NameResolver |
getResolver(java.lang.String name)
Return the new NameResolver that should be used to resolve names relative to a given name. |
Method Detail |
---|
InputStreamProvider getProvider(java.lang.String name) throws java.io.IOException
name
- the name of the target
java.io.IOException
NameResolver getResolver(java.lang.String name)
name
- the name of the target
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |