org.eclipse.osgi.internal.loader.buddy
Class RegisteredPolicy
java.lang.Object
org.eclipse.osgi.internal.loader.buddy.DependentPolicy
org.eclipse.osgi.internal.loader.buddy.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.
| 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 Class<?> loadClass(String name)
- Specified by:
loadClass in interface IBuddyPolicy- Overrides:
loadClass in class DependentPolicy
loadResource
public URL loadResource(String name)
- Specified by:
loadResource in interface IBuddyPolicy- Overrides:
loadResource in class DependentPolicy
loadResources
public Enumeration<URL> loadResources(String name)
- Specified by:
loadResources in interface IBuddyPolicy- Overrides:
loadResources in class DependentPolicy
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.