org.eclipse.osgi.framework.internal.core
Class RegisteredPolicy
java.lang.Object
org.eclipse.osgi.framework.internal.core.DependentPolicy
org.eclipse.osgi.framework.internal.core.RegisteredPolicy
- All Implemented Interfaces:
- IBuddyPolicy
public class RegisteredPolicy
- extends DependentPolicy
Registered policy is an implementation of a buddy policy.
It is responsible for looking up a class in the bundles (registrant) that declare interest in the bundle that require the buddy loading.
Note that the registrants must have a direct dependency on the bundle needing buddy.
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 |
RegisteredPolicy
public RegisteredPolicy(BundleLoader requester)
loadClass
public java.lang.Class loadClass(java.lang.String name)
- Specified by:
loadClass
in interface IBuddyPolicy
- Overrides:
loadClass
in class DependentPolicy
loadResource
public java.net.URL loadResource(java.lang.String name)
- Specified by:
loadResource
in interface IBuddyPolicy
- Overrides:
loadResource
in class DependentPolicy
loadResources
public java.util.Enumeration loadResources(java.lang.String name)
- Specified by:
loadResources
in interface IBuddyPolicy
- Overrides:
loadResources
in class DependentPolicy