protectedPackage | ClassLoader.definePackage(String name,String specTitle,String specVersion,String specVendor,String implTitle,String implVersion,String implVendor,URL sealBase) | Defines a package by name in this ClassLoader. |
|---|
Package | ClassLoader.getDefinedPackage(String name) | Returns a Package of the given name that has been defined by this class loader. |
|---|
Package[] | ClassLoader.getDefinedPackages() | Returns all of thePackages that have been defined by this class loader. |
|---|
Package | Class.getPackage() | Gets the package of this class. |
|---|
protectedPackage | ClassLoader.getPackage(String name) | Deprecated.If multiple class loaders delegate to each other and define classes with the same package name, and one such loader relies on the lookup behavior ofgetPackage to return aPackage from a parent loader, then the properties exposed by thePackage may not be as expected in the rest of the program. |
|---|
staticPackage | Package.getPackage(String name) | Deprecated.If multiple class loaders delegate to each other and define classes with the same package name, and one such loader relies on the lookup behavior ofgetPackage to return aPackage from a parent loader, then the properties exposed by thePackage may not be as expected in the rest of the program. |
|---|
protectedPackage[] | ClassLoader.getPackages() | Returns all of thePackages that have been defined by this class loader and its ancestors. |
|---|
staticPackage[] | Package.getPackages() | Returns all of thePackages defined by the caller's class loader and its ancestors. |
|---|