Module.State| Modifier and Type | Field and Description |
|---|---|
static org.jboss.gravia.resource.AttachmentKey<ModuleEntriesProvider> |
MODULE_ENTRIES_PROVIDER_KEY |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractModule(AbstractRuntime runtime,
ClassLoader classLoader,
org.jboss.gravia.resource.Resource resource,
Dictionary<String,String> headers) |
| Modifier and Type | Method and Description |
|---|---|
<A> A |
adapt(Class<A> type)
Addapt this module to another type.
|
void |
addServiceInUse(ServiceReference<?> serviceState) |
protected void |
assertNotUninstalled() |
<T> T |
getAttachment(org.jboss.gravia.resource.AttachmentKey<T> key) |
protected abstract Bundle |
getBundleAdaptor(Module module) |
protected ClassLoader |
getClassLoader() |
Dictionary<String,String> |
getHeaders()
Returns this module's headers and values that where given on module installation.
|
org.jboss.gravia.resource.ResourceIdentity |
getIdentity()
Get the identity of this module.
|
protected AbstractRuntime |
getRuntime() |
Set<ServiceReference<?>> |
getServicesInUseInternal() |
Class<?> |
loadClass(String className)
Loads the specified class using this module's class loader.
|
<T> T |
putAttachment(org.jboss.gravia.resource.AttachmentKey<T> key,
T value) |
<T> T |
removeAttachment(org.jboss.gravia.resource.AttachmentKey<T> key) |
int |
removeServiceInUse(ServiceReference<?> serviceState) |
protected abstract void |
setState(Module.State newState) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDataFile, getModuleContext, getModuleId, getState, start, stop, uninstallpublic static org.jboss.gravia.resource.AttachmentKey<ModuleEntriesProvider> MODULE_ENTRIES_PROVIDER_KEY
protected AbstractModule(AbstractRuntime runtime, ClassLoader classLoader, org.jboss.gravia.resource.Resource resource, Dictionary<String,String> headers)
protected abstract void setState(Module.State newState)
protected AbstractRuntime getRuntime()
protected ClassLoader getClassLoader()
public org.jboss.gravia.resource.ResourceIdentity getIdentity()
ModulegetIdentity in interface Modulepublic <A> A adapt(Class<A> type)
ModuleRuntimeClassLoaderResourceModuleContextpublic <T> T putAttachment(org.jboss.gravia.resource.AttachmentKey<T> key,
T value)
putAttachment in interface org.jboss.gravia.resource.Attachablepublic <T> T getAttachment(org.jboss.gravia.resource.AttachmentKey<T> key)
getAttachment in interface org.jboss.gravia.resource.Attachablepublic <T> T removeAttachment(org.jboss.gravia.resource.AttachmentKey<T> key)
removeAttachment in interface org.jboss.gravia.resource.Attachablepublic Class<?> loadClass(String className) throws ClassNotFoundException
Module
If this module's state is UNINSTALLED, then an
IllegalStateException is thrown.
loadClass in interface ModuleclassName - The name of the class to load.ClassNotFoundExceptionpublic Dictionary<String,String> getHeaders()
ModuleThese values may be mapped to manifest headers, but this is not a requirement. The module's header values do not change durint the lifecycle of the module.
Header names are case-insensitive. The methods of the returned
Dictionary object must operate on header names in a
case-insensitive manner.
This method must continue to return header information while
this module is in the UNINSTALLED state.
getHeaders in interface ModuleDictionary object containing this
module's Manifest headers and values.public Set<ServiceReference<?>> getServicesInUseInternal()
public void addServiceInUse(ServiceReference<?> serviceState)
public int removeServiceInUse(ServiceReference<?> serviceState)
protected void assertNotUninstalled()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.