org.eclipse.osgi.internal.loader.buddy
Class RegisteredPolicy

java.lang.Object
  extended by org.eclipse.osgi.internal.loader.buddy.DependentPolicy
      extended by 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.


Constructor Summary
RegisteredPolicy(BundleLoader requester)
           
 
Method Summary
 Class<?> loadClass(String name)
           
 URL loadResource(String name)
           
 Enumeration<URL> loadResources(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegisteredPolicy

public RegisteredPolicy(BundleLoader requester)
Method Detail

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.