package saker.nest.utils
public class NestUtils
Contains utility functions that help working with the Nest repository.
public static BundleIdentifier | Gets the bundle identifier that contains the argument class. |
public static BundleIdentifier getClassBundleIdentifier(Class<?> c ) throws NullPointerException, IllegalArgumentException
Gets the bundle identifier that contains the argument class.
The argument class must be loaded by the Nest repository runtime. (That is, the ClassLoader of the class must be an instance of NestBundleClassLoader.)
cThe class to get the enclosing bundle identifier of.
The bundle identifier of the enclosing bundle.
NullPointerExceptionIf the argument is
null
.IllegalArgumentExceptionIf the class wasn't loaded by the Nest repository runtime.