public interface PathResolver
ObjectFactory.createPathResolver()| Modifier and Type | Method and Description |
|---|---|
void |
configure(ExtendedProperties config)
Configures this resolver instance.
|
URL |
getRegisteredContext(String id)
Returns URL of
registered plug-in
element context. |
boolean |
isContextRegistered(String id) |
void |
registerContext(Identity idt,
URL url)
Registers "home" URL for given plug-in element.
|
URL |
resolvePath(Identity identity,
String path)
Should resolve given path to URL for a given identity.
|
void |
unregisterContext(String id)
Unregisters plug-in element from this path resolver.
|
void configure(ExtendedProperties config) throws Exception
object factory implementation.config - path resolver configuration dataException - if any error has occurredvoid registerContext(Identity idt, URL url)
idt - plug-in elementurl - "home" URL for a given plug-in elementvoid unregisterContext(String id)
id - plug-in element identifierURL getRegisteredContext(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(String id)
id - plug-in element identifiertrue if context for plug-in element with given ID
registeredCopyright © 2015. All rights reserved.