public class ShadingPathResolver extends StandardPathResolver
Configuration parameters
This path resolver implementation supports following configuration parameters:
System.getProperty("java.io.tmpdir") + "/.jpf-shadow".
Please note that this folder will be maintained automatically by the
Framework and might be cleared without any confirmation or notification.
So it is strongly not recommended to use plug-ins folder (or other
sensitive application directory) as shadow folder, this may lead to
losing your data.always, "JAR'ed" or "ZIP'ed" plug-ins will be
un-compressed to the shadow folder, if never, they will be
just copied, if smart, the processing depends on plug-in
content - if plug-in contains JAR libraries, it will be un-packed,
otherwise just copied to shadow folder. It is also possible to add
boolean "unpack" attribute to plug-in manifest, in this case, it's value
will be taken into account. The default parameter value is
smart.log| Constructor and Description |
|---|
ShadingPathResolver() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(ExtendedProperties config)
No configuration parameters expected in this implementation.
|
protected URL |
getBaseUrl(UniqueIdentity uid) |
void |
registerContext(Identity idt,
URL url)
This implementation accepts
PluginDescriptor or
PluginFragment as valid plug-in elements. |
URL |
resolvePath(Identity idt,
String path)
Should resolve given path to URL for a given identity.
|
void |
unregisterContext(String id)
Unregisters plug-in element from this path resolver.
|
getRegisteredContext, isContextRegistered, maybeJarUrl, resolvePathpublic void configure(ExtendedProperties config) throws Exception
StandardPathResolverconfigure in interface PathResolverconfigure in class StandardPathResolverconfig - path resolver configuration dataException - if any error has occurredPathResolver.configure(ExtendedProperties)public void registerContext(Identity idt, URL url)
StandardPathResolverPluginDescriptor or
PluginFragment as valid plug-in elements.registerContext in interface PathResolverregisterContext in class StandardPathResolveridt - plug-in elementurl - "home" URL for a given plug-in elementStandardPathResolver.registerContext(
org.java.plugin.registry.Identity, java.net.URL)public void unregisterContext(String id)
PathResolverunregisterContext in interface PathResolverunregisterContext in class StandardPathResolverid - plug-in element identifierStandardPathResolver.unregisterContext(
java.lang.String)public URL resolvePath(Identity idt, String path)
PathResolverresolvePath in interface PathResolverresolvePath in class StandardPathResolveridt - plug-in element for which to resolve pathpath - path to be resolvedPathResolver.resolvePath(
org.java.plugin.registry.Identity, java.lang.String)protected URL getBaseUrl(UniqueIdentity uid)
Copyright © 2015. All rights reserved.