|
JPF 0.10 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.java.plugin.standard.StandardPathResolver
org.java.plugin.standard.ShadingPathResolver
This implementation of path resolver makes "shadow copy" of plug-in resources before resolving paths to them, this helps avoid locking of local resources and run native code from remote locations.
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
.
Field Summary |
Fields inherited from class org.java.plugin.standard.StandardPathResolver |
log |
Constructor Summary | |
ShadingPathResolver()
|
Method Summary | |
void |
configure(ExtendedProperties config)
No configuration parameters expected in this implementation. |
void |
registerContext(Identity idt,
java.net.URL url)
This implementation accepts PluginDescriptor or
PluginFragment as valid plug-in elements. |
java.net.URL |
resolvePath(Identity idt,
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. |
Methods inherited from class org.java.plugin.standard.StandardPathResolver |
getRegisteredContext, isContextRegistered, isResourceExists, resolvePath, url2file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ShadingPathResolver()
Method Detail |
public void configure(ExtendedProperties config) throws java.lang.Exception
StandardPathResolver
configure
in interface PathResolver
configure
in class StandardPathResolver
java.lang.Exception
PathResolver.configure(ExtendedProperties)
public void registerContext(Identity idt, java.net.URL url)
StandardPathResolver
PluginDescriptor
or
PluginFragment
as valid plug-in elements.
registerContext
in interface PathResolver
registerContext
in class StandardPathResolver
StandardPathResolver.registerContext(
org.java.plugin.registry.Identity, java.net.URL)
public void unregisterContext(java.lang.String id)
PathResolver
unregisterContext
in interface PathResolver
unregisterContext
in class StandardPathResolver
StandardPathResolver.unregisterContext(
java.lang.String)
public java.net.URL resolvePath(Identity idt, java.lang.String path)
PathResolver
resolvePath
in interface PathResolver
resolvePath
in class StandardPathResolver
PathResolver.resolvePath(
org.java.plugin.registry.Identity, java.lang.String)
|
JPF 0.10 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |