Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The methods are reasonable self explanatory, since they perform the actions normally associated with the methods of the same name on a class loader. However, their behavior is defined to help managers support proper OSGi class and resource delegation. The result of each method and its meaning are:

  • If the method returns a result, then this result should be returned by the manager-owned class loader (with the possible exception of getResources()) and delegation should stop.
  • If the method returns null, then the manager-owned class loader should continue its search.
  • If the method throws an exception, then the manager-owned class loader should stop its search and throw an exception.

Injection of wires into a virtual module does not compel the manager-owned class loader to obey proper OSGi delegation patterns. It is recommended to do so to ensure consistency, but the third-party provider has the flexibility to deviate as it sees fit, but it must live with the consequences.

...