org.java.plugin
public interface PathResolver
ObjectFactory.createPathResolver()
Modifier and Type | Method and Description |
---|---|
void |
configure(ExtendedProperties config)
Configures this resolver instance.
|
java.net.URL |
getRegisteredContext(java.lang.String id)
Returns URL of
registered plug-in
element context. |
boolean |
isContextRegistered(java.lang.String id) |
void |
registerContext(Identity idt,
java.net.URL url)
Registers "home" URL for given plug-in element.
|
java.net.URL |
resolvePath(Identity identity,
java.lang.String path)
Should resolve given path to URL for a given identity.
|
void |
unregisterContext(java.lang.String id)
Unregisters plug-in element from this path resolver.
|
void configure(ExtendedProperties config) throws java.lang.Exception
object factory
implementation.config
- path resolver configuration datajava.lang.Exception
- if any error has occurredvoid registerContext(Identity idt, java.net.URL url)
idt
- plug-in elementurl
- "home" URL for a given plug-in elementvoid unregisterContext(java.lang.String id)
id
- plug-in element identifierjava.net.URL getRegisteredContext(java.lang.String id)
registered
plug-in
element context. If context for plug-in element with given ID not
registered, this method should throw an IllegalArgumentException
.
In other words, this method shouldn't return null
.id
- plug-in element identifierboolean isContextRegistered(java.lang.String id)
id
- plug-in element identifiertrue
if context for plug-in element with given ID
registeredjava.net.URL resolvePath(Identity identity, java.lang.String path)
identity
- plug-in element for which to resolve pathpath
- path to be resolvedCopyright © 2004-2007 Dmitry Olshansky. All Rights Reserved.