public static class EcorePlugin.ExtensionProcessor
extends java.lang.Object
process(ClassLoader)
Constructor and Description |
---|
EcorePlugin.ExtensionProcessor() |
Modifier and Type | Method and Description |
---|---|
static void |
process(java.lang.ClassLoader classLoader)
This explicitly triggers processing of all plugin.xml registered extensions.
|
public static void process(java.lang.ClassLoader classLoader)
bundle activation
.
As such this method is useful only in non-Eclipse applications to ensure that plugin.xml registrations are processed just as they are in an Eclipse application.
The exploit this mechanism, the classpath of the application must minimally include org.eclipse.equinox.common
, org.eclipse.equinox.registry
, and org.eclipse.osgi
This method creates a registry if one does not already exist
.
It will first consider all entries on the classpath as provided by System.getProperty("java.class.path")
to determine if there are any folder entries whose parent folder contains a plugin.xml;
such entries are common when launching a Java application from Eclipse at development time.
In that case, the class loader is not used and only registrations for entries of the classpath are considered.
Otherwise, the class loader is used to find all plugin.xml resources and only those entries are considered.
classLoader
- the class loader used to locate plugin.xml resources; it may be null in which class the current thread's context class loader
is used, if necessary.