org.eclipse.osgi.framework.internal.core
Class GlobalPolicy
java.lang.Object
org.eclipse.osgi.framework.internal.core.GlobalPolicy
- All Implemented Interfaces:
- IBuddyPolicy
public class GlobalPolicy
- extends java.lang.Object
- implements IBuddyPolicy
Global policy is an implementation of a buddy policy. It is responsible
for looking up a class within the global set of exported classes. If multiple
version of the same package are exported in the system, the exported package
with the highest version will be returned.
Method Summary |
java.lang.Class |
loadClass(java.lang.String name)
|
java.net.URL |
loadResource(java.lang.String name)
|
java.util.Enumeration |
loadResources(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GlobalPolicy
public GlobalPolicy(PackageAdmin admin)
loadClass
public java.lang.Class loadClass(java.lang.String name)
- Specified by:
loadClass
in interface IBuddyPolicy
loadResource
public java.net.URL loadResource(java.lang.String name)
- Specified by:
loadResource
in interface IBuddyPolicy
loadResources
public java.util.Enumeration loadResources(java.lang.String name)
- Specified by:
loadResources
in interface IBuddyPolicy