public class PluginUtil extends Object
Constructor and Description |
---|
PluginUtil() |
Modifier and Type | Method and Description |
---|---|
static ClassLoader |
getClassLoaderForService(String path)
If the service specified by
serviceId is supplied by a plugin, the ClassLoader used to load classes
for the associated plugin is returned. |
static String |
getPluginIdFromPath(String path)
If the service specified by
serviceId is supplied by a plugin, plugin id is returned. |
public static ClassLoader getClassLoaderForService(String path)
serviceId
is supplied by a plugin, the ClassLoader used to load classes
for the associated plugin is returned. This is a handy method to use if you want to find resources associated with
a particular (plugin-supplied) service, such as a GWT serialization policy file, properties files, etc. If the
service was not supplied by a plugin, then null
is returned.path
- a path to a plugin resourcenull
if the service was not
plugin-supplied or the plugin manager cannot identify the service.Copyright © 2017 Hitachi Vantara. All rights reserved.