|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.module.Module
public abstract class Module
This class represents the reified module instance in the module system.
ClassLoader
,
ModuleDefinition
,
ModuleSystemPermission
Constructor Summary | |
---|---|
protected |
Module()
Creates a new Module instance. |
Method Summary | |
---|---|
abstract void |
deepValidate()
Perform deep validation on the module instance. |
boolean |
equals(Object obj)
Compares the specified object with this Module for equality. |
abstract ClassLoader |
getClassLoader()
Returns the classloader associated with the module instance. |
abstract List<Module> |
getImportedModules()
Returns an unmodifiable list of imported module instances. |
abstract ModuleDefinition |
getModuleDefinition()
Returns the ModuleDefinition of the module instance. |
int |
hashCode()
Returns a hash code for this Module . |
abstract boolean |
supportsDeepValidation()
Check if deep validation is supported. |
String |
toString()
Returns a String object representing this
Module . |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected Module()
Module
instance.
Method Detail |
---|
public abstract ModuleDefinition getModuleDefinition()
ModuleDefinition
of the module instance.
ModuleDefinition
object.public abstract ClassLoader getClassLoader()
If a security manager is present, and the caller's
class loader is not null and the caller's class loader
is not the same as or an ancestor of the class loader
for the module instance whose class loader is
requested, then this method calls the security
manager's checkPermission
method with a
RuntimePermission("getClassLoader")
permission to ensure it's ok to access the class
loader for the module instance.
SecurityException
- if a security manager
exists and its checkPermission
method denies access to the class loader for
the module instance.public abstract List<Module> getImportedModules()
public abstract boolean supportsDeepValidation()
public abstract void deepValidate() throws ModuleInitializationException
ModuleInitializationException
- if deep validation fails.public final boolean equals(Object obj)
Module
for equality.
Returns true
if and only if obj
is the same object as
this object.
equals
in class Object
obj
- the object to be compared for equality with this module.
true
if the specified object is equal to this modulepublic final int hashCode()
Module
.
hashCode
in class Object
public String toString()
String
object representing this
Module
.
toString
in class Object
Module
object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |