protected static interface JavaModule.Dispatcher
java.lang.reflect.Module API if it is available on the current VM.| Modifier and Type | Interface and Description |
|---|---|
static class |
JavaModule.Dispatcher.Disabled
A disabled dispatcher for a VM that does not support the
java.lang.reflect.Module API. |
static class |
JavaModule.Dispatcher.Enabled
A dispatcher for a VM that does support the
java.lang.reflect.Module API. |
| Modifier and Type | Method and Description |
|---|---|
ClassLoader |
getClassLoader(Object module)
Returns the module's class loader.
|
String |
getName(Object module)
Returns the module's name.
|
boolean |
isNamed(Object module)
Returns
true if the supplied module is named. |
JavaModule |
moduleOf(Class<?> type)
Extracts the Java
Module for the provided class or returns null if the current VM does not support modules. |
JavaModule moduleOf(Class<?> type)
Module for the provided class or returns null if the current VM does not support modules.type - The type for which to extract the module.Module or null if the current VM does not support modules.boolean isNamed(Object module)
true if the supplied module is named.module - The java.lang.reflect.Module to check for the existence of a name.true if the supplied module is named.String getName(Object module)
module - The java.lang.reflect.Module to check for its name.ClassLoader getClassLoader(Object module)
module - The java.lang.reflect.ModuleCopyright © 2014–2016. All rights reserved.