Skip navigation links
A B C D E F G H I J L M N O P R S T U V W 

A

AbstractModuleRegistry - Class in org.diet4j.core
Collects functionality common to implementations of ModuleRegistry.
AbstractModuleRegistry() - Constructor for class org.diet4j.core.AbstractModuleRegistry
 
AbstractScanningModuleRegistry - Class in org.diet4j.core
Collections functionality common to ModuleRegistry implementations that determine the set of available ModuleMetas through a scan.
AbstractScanningModuleRegistry(Map<String, MiniModuleMetaMap>) - Constructor for class org.diet4j.core.AbstractScanningModuleRegistry
Private constructor, for subclasses only.
activate() - Method in class org.diet4j.core.DefaultModuleActivator
Activate a Module.
activate() - Method in interface org.diet4j.core.ModuleActivator
Activate a Module.
activateRecursively() - Method in class org.diet4j.core.Module
This recursively activates this Module.
activateRecursively(ModuleActivator) - Method in class org.diet4j.core.Module
This recursively activates this Module.
ACTIVATION_CLASS_PROPERTY - Static variable in class org.diet4j.core.AbstractScanningModuleRegistry
Name of the (optional) property in pom.xml that identifies the activation/deactivation class in a Module JAR.
ACTIVATION_METHOD_NAME - Static variable in class org.diet4j.core.DefaultModuleActivator
Name of the activation method in the ModuleInit class.
addModuleJarUrls(Set<URL>) - Method in class org.diet4j.core.ModuleClassLoader
Add, to the provided set, all URLs to Module JARs, of this ModuleClassLoader and all dependent ClassLoaders.
addModuleMeta(ModuleMeta, HashMap<String, MiniModuleMetaMap>) - Static method in class org.diet4j.core.AbstractScanningModuleRegistry
Add another ModuleMeta during runtime.
addModuleRegistryListener(ModuleRegistryListener) - Method in class org.diet4j.core.AbstractModuleRegistry
Add a ModuleRegistry listener to be notified when new Modules become available etc.
addModuleRegistryListener(ModuleRegistryListener) - Method in class org.diet4j.core.ModuleRegistry
Add a ModuleRegistry listener to be notified when new Modules become available etc.
addParsedModuleMetasFromDirectories(List<File>, HashMap<String, MiniModuleMetaMap>) - Static method in class org.diet4j.core.AbstractScanningModuleRegistry
Given a list of META-INF directories, determine the ModuleMetas that they contain.
addParsedModuleMetasFromJars(List<JarFile>, HashMap<String, MiniModuleMetaMap>) - Static method in class org.diet4j.core.AbstractScanningModuleRegistry
Given a list of Jar filenames, parse the JARs and determine the ModuleMetas that they contain.
allValues() - Method in class org.diet4j.core.MiniModuleMetaMap
Obtain all values in the map, regardless of key.

B

BUILDTIME - Static variable in class org.diet4j.core.Version
 

C

cannotFindTable - Variable in class org.diet4j.core.ModuleClassLoader
This map maps names of resources that we know for sure we can't load to a marker object, so we stop attempting to load here and not delegate.
CmdlineBootLoader - Class in org.diet4j.cmdline
Acts as the main() program in a diet4j-based application.
CmdlineBootLoader() - Constructor for class org.diet4j.cmdline.CmdlineBootLoader
Private constructor to keep this from being instantiated.
CmdlineParameters - Class in org.diet4j.cmdline
A simple command-line parser.
CmdlineParameters(CmdlineParameters.Parameter...) - Constructor for class org.diet4j.cmdline.CmdlineParameters
Constructor, list allowed Parameters.
CmdlineParameters.Parameter - Class in org.diet4j.cmdline
Defines one allowed parameter.
compareParsedVersionParts(Object[], Object[]) - Method in class org.diet4j.core.ModuleRequirement
Helper method to compare version parts.
compareParsedVersions(Object[][], Object[][]) - Method in class org.diet4j.core.ModuleRequirement
Compare two parsed versions.
CompoundIterator(T, Enumeration<T>) - Constructor for class org.diet4j.core.ModuleClassLoader.CompoundIterator
Constructor.
containsKey(String) - Method in class org.diet4j.cmdline.CmdlineParameters
Has this named parameter been given?
create(String) - Static method in class org.diet4j.core.ModuleRequirement
Factory method.
create(String, String) - Static method in class org.diet4j.core.ModuleRequirement
Factory method.
create(String, String, String) - Static method in class org.diet4j.core.ModuleRequirement
Factory method.
create(String, String, String, boolean) - Static method in class org.diet4j.core.ModuleRequirement
Factory method.
create(File[]) - Static method in class org.diet4j.core.ScanningDirectoriesModuleRegistry
Factory method.
createClassLoader(Module, ClassLoader) - Method in class org.diet4j.core.AbstractModuleRegistry
ModuleRegistries can also acts as a factory for the Modules' ClassLoaders.
createClassLoader(Module, ClassLoader) - Method in class org.diet4j.core.ModuleRegistry
ModuleRegistries can also acts as a factory for the Modules' ClassLoaders.
createClassLoader(Module, ClassLoader) - Method in class org.diet4j.core.ScanningClasspathModuleRegistry
ModuleRegistry also acts as a factory for the Modules' ClassLoaders.
createClassLoader(Module, ClassLoader) - Method in class org.diet4j.inclasspath.InClasspathModuleRegistry
ModuleRegistry also acts as a factory for the Modules' ClassLoaders.
createModule(AbstractModuleRegistry, ClassLoader) - Method in class org.diet4j.core.ModuleMeta
Create a Module from this ModuleMeta.

D

deactivate() - Method in class org.diet4j.core.DefaultModuleActivator
Deactivate a Module.
deactivate() - Method in interface org.diet4j.core.ModuleActivator
Deactivate a Module.
deactivateRecursively() - Method in class org.diet4j.core.Module
This recursively deactivates this Module.
deactivateRecursively(ModuleActivator) - Method in class org.diet4j.core.Module
This recursively deactivates this Module.
DEACTIVATION_METHOD_NAME - Static variable in class org.diet4j.core.DefaultModuleActivator
Name of the deactivation method in the ModuleInit class.
DEFAULT_MODULE_DIRECTORIES - Static variable in class org.diet4j.core.ScanningDirectoriesModuleRegistry
The directories scanned by default if none are given as parameters.
DEFAULT_MODULEDIRECTORY - Static variable in class org.diet4j.tomcat.TomcatModuleLoader
The default directory in which the module JARs can be found.
DEFAULT_SIZE - Static variable in class org.diet4j.core.MiniModuleMetaMap
The initial default size for the MiniModuleMetaMap.
DefaultModuleActivator - Class in org.diet4j.core
This is the default implementation of ModuleActivator.
DefaultModuleActivator(Module) - Constructor for class org.diet4j.core.DefaultModuleActivator
Constructor.
definePackage(String, Manifest, URL) - Method in class org.diet4j.core.ModuleClassLoader
Verbatim copy from JDK's URLClassLoader.
dependentModuleActivator(Module) - Method in class org.diet4j.core.DefaultModuleActivator
Obtain a ModuleActivator that is responsible for activating a dependent Module.
dependentModuleActivator(Module) - Method in interface org.diet4j.core.ModuleActivator
Obtain a ModuleActivator that is responsible for activating a dependent Module.
destroy() - Method in class org.diet4j.jsvc.Diet4jDaemon
 
determineResolutionCandidates(ModuleRequirement) - Method in class org.diet4j.core.AbstractScanningModuleRegistry
Determine the ModuleMetas that are candidates to resolve a Module dependency, based on the knowledge of this ModuleRegistry.
determineResolutionCandidates(ModuleRequirement) - Method in class org.diet4j.core.ModuleRegistry
Determine the ModuleMetas that are candidates to resolve a Module dependency, based on the knowledge of this ModuleRegistry.
determineRuntimeDependencies(Module) - Method in class org.diet4j.core.AbstractModuleRegistry
Given a Module, this allows us to determine which other Modules it depends at run-time.
determineRuntimeDependencies() - Method in class org.diet4j.core.Module
Convenience method to determine the dependent Modules of this Module at run-time.
determineRuntimeDependencies(Module) - Method in class org.diet4j.core.ModuleRegistry
Given a Module, this allows us to determine which other Modules it depends at run-time.
determineRuntimeUses(Module) - Method in class org.diet4j.core.AbstractModuleRegistry
Given a Module, this allows us to determine which other Modules use it at run-time.
determineRuntimeUses() - Method in class org.diet4j.core.Module
Convenience method to determine the Modules that use this Module at run-time.
determineRuntimeUses(Module) - Method in class org.diet4j.core.ModuleRegistry
Given a Module, this allows us to determine which other Modules use it at run-time.
determineSingleResolutionCandidate(ModuleRequirement) - Method in class org.diet4j.core.AbstractModuleRegistry
Convenience method to determine the one and only ModuleMeta that is the only candidate to resolve a Module dependency, based on the knowledge of this ModuleRegistry.
determineSingleResolutionCandidate(ModuleRequirement) - Method in class org.diet4j.core.ModuleRegistry
Convenience method to determine the one and only ModuleMeta that is the only candidate to resolve a Module dependency, based on the knowledge of this ModuleRegistry.
Diet4jDaemon - Class in org.diet4j.jsvc
An implementation of the jsvc Daemon interface that enables jsvc to invoke the diet4j framework and start a diet4j module.
Diet4jDaemon() - Constructor for class org.diet4j.jsvc.Diet4jDaemon
 
doFirst - Variable in class org.diet4j.core.ModuleClassLoader.CompoundIterator
Flag that tells whether to return the first element next.

E

ensureVersionsParsed() - Method in class org.diet4j.core.ModuleRequirement
Ensure that the min and max versions have been parsed.
equals(Object) - Method in class org.diet4j.core.Module
Determine Module equality.
equals(Object) - Method in class org.diet4j.core.ModuleMeta
Two ModuleMetas are the same if they have the same name and version.

F

fatal(String) - Static method in class org.diet4j.cmdline.CmdlineBootLoader
Print fatal error and quit.
findModuleMetas(ClassLoader) - Static method in class org.diet4j.core.ScanningClasspathModuleRegistry
Find the ModuleMetas available to this ClassLoader.
findModuleMetas(ClassLoader) - Static method in class org.diet4j.inclasspath.InClasspathModuleRegistry
Find the ModuleMetas available to this ClassLoader.
findRegistry() - Static method in class org.diet4j.status.StatusMain
Find the ModuleRegistry.
findResource(String) - Method in class org.diet4j.core.ModuleClassLoader
Find a URL.
findResource(String) - Method in class org.diet4j.tomcat.TomcatWebAppClassLoader
Find a URL.
findVersionMatchesFrom(ModuleMeta[]) - Method in class org.diet4j.core.ModuleRequirement
Given an ordered set of ModuleMetas, find the matching versions.
fireModuleAddedEvent(ModuleRegistryEvent) - Method in class org.diet4j.core.AbstractModuleRegistry
Send an event to our listeners.

G

get(String) - Method in class org.diet4j.cmdline.CmdlineParameters
Obtain the value of a single-valued parameter.
get(String) - Method in class org.diet4j.core.MiniModuleMetaMap
Obtain the value for a given key.
getActivationClassName() - Method in class org.diet4j.core.ModuleMeta
Obtain the name of the Module activation/deactivation class.
getClassLoader() - Method in class org.diet4j.core.Module
Obtain a ClassLoader that knows how to load the code belonging to this Module.
getContextObject() - Method in class org.diet4j.core.Module
Obtain the context object returned by the activation method of this Module, if any.
getDefaultModuleActivator() - Method in class org.diet4j.core.Module
Obtain the default ModuleActivator for this Module.
getDependencyClassLoaders() - Method in class org.diet4j.core.ModuleClassLoader
Obtain the ClassLoaders from dependent Modules.
getLicenseText() - Method in class org.diet4j.core.ModuleLicense
Obtain the text of the license.
getMany(String) - Method in class org.diet4j.cmdline.CmdlineParameters
Obtain the value(s) of a multi-valued parameter
getMessage() - Method in exception org.diet4j.core.ModuleResolutionCandidateNotUniqueException
Returns the detail message string of this Throwable.
getMessage() - Method in exception org.diet4j.core.ModuleResolutionException
Returns the detail message string of this Throwable.
getMessage() - Method in exception org.diet4j.core.ModuleRunException
Obtain the message.
getMessage() - Method in exception org.diet4j.core.NoModuleResolutionCandidateException
Returns the detail message string of this Throwable.
getModule() - Method in class org.diet4j.core.DefaultModuleActivator
Obtain the Module that this ModuleActivator can activate.
getModule() - Method in interface org.diet4j.core.ModuleActivator
Obtain the Module that we can activate.
getModule() - Method in class org.diet4j.core.ModuleClassLoader
Obtain the Module whose classes this ModuleClassLoader loads.
getModuleArtifactId() - Method in class org.diet4j.core.Module
Obtain the artifactId of this Module.
getModuleArtifactId() - Method in class org.diet4j.core.ModuleMeta
Obtain the artifactId of the Module.
getModuleBuildDate() - Method in class org.diet4j.core.ModuleMeta
Obtain the time at which this Module was built, in System.currentTimeMillis() format.
getModuledirectory() - Method in class org.diet4j.tomcat.TomcatModuleLoader
Get directory in which the module JARs can be found.
getModuleGroupId() - Method in class org.diet4j.core.Module
Obtain the groupId of this Module.
getModuleGroupId() - Method in class org.diet4j.core.ModuleMeta
Obtain the groupId of the Module.
getModuleLicense() - Method in class org.diet4j.core.ModuleMeta
Obtain the license for this Module.
getModuleMeta() - Method in class org.diet4j.core.Module
Obtain the ModuleMeta for this Module.
getModuleMeta() - Method in exception org.diet4j.core.ModuleException
Obtain the ModuleMeta whose Module had a problem.
getModuleMeta() - Method in class org.diet4j.core.ModuleRegistryEvent
Obtain the ModuleMeta to which this event relates.
getModuleRegistry() - Method in class org.diet4j.core.Module
Obtain the ModuleRegistry in which this Module has been registered.
getModuleRegistry() - Method in class org.diet4j.core.ModuleClassLoader
Convenience method to obtain the ModuleRegistry in use.
getModuleRequirement() - Method in exception org.diet4j.core.ModuleResolutionException
Obtain the ModuleRequirement that could not be met.
getModuleUserDescription(Locale) - Method in class org.diet4j.core.ModuleMeta
Obtain the internationalized description of the Module in a specified locale.
getModuleUserDescriptions() - Method in class org.diet4j.core.ModuleMeta
Obtain the Map of internationalized descriptions of the Module.
getModuleUserName() - Method in class org.diet4j.core.ModuleMeta
Obtain the internationalized name of the Module in the current locale.
getModuleUserName(Locale) - Method in class org.diet4j.core.ModuleMeta
Obtain the internationalized name of the Module in a specified locale.
getModuleUserNames() - Method in class org.diet4j.core.ModuleMeta
Obtain the Map of internationalized names of the Module.
getModuleVersion() - Method in class org.diet4j.core.Module
Obtain the version of this Module.
getModuleVersion() - Method in class org.diet4j.core.ModuleMeta
Obtain the version of this Module.
getProvidesJar() - Method in class org.diet4j.core.ModuleMeta
Obtain the JAR file that this Module provides as JarFile.
getRequiredModuleArtifactId() - Method in class org.diet4j.core.ModuleRequirement
Obtain the artifactId of the Module that we require.
getRequiredModuleGroupId() - Method in class org.diet4j.core.ModuleRequirement
Obtain the groupId of the Module that we require.
getResolutionOf(ModuleMeta) - Method in class org.diet4j.core.AbstractModuleRegistry
Determine whether a certain ModuleMeta is resolved already, and if so, return it.
getResolutionOf(ModuleMeta) - Method in class org.diet4j.core.ModuleRegistry
Determine whether a certain ModuleMeta is resolved already, and if so, return it.
getResource(String) - Method in class org.diet4j.core.ModuleClassLoader
Find a resource through this ClassLoader.
getResource(String) - Method in class org.diet4j.tomcat.TomcatWebAppClassLoader
Find a resource through this ClassLoader.
getResourceAsStream(String) - Method in class org.diet4j.tomcat.TomcatWebAppClassLoader
Find the resource with the given name, and return an input stream that can be used for reading it.
getResourceJarEntryPrefix() - Method in class org.diet4j.core.ModuleMeta
Obtain the relative path below which resources, such as a class files, are to be found.
getResources(String) - Method in class org.diet4j.core.ModuleClassLoader
Obtain an Enumeration of Resources.
getResources(String) - Method in class org.diet4j.tomcat.TomcatWebAppClassLoader
Obtain an Enumeration of Resources.
getRootmodule() - Method in class org.diet4j.tomcat.TomcatModuleLoader
Get name of root module.
getRunClassName() - Method in class org.diet4j.core.ModuleMeta
Obtain the name of the class that contains the Module's run method.
getRuntimeModuleRequirements() - Method in class org.diet4j.core.ModuleMeta
Obtain the list of requirements for other Modules that this Module depends on at run time.
getScannedDirectories() - Method in class org.diet4j.core.ScanningDirectoriesModuleRegistry
Determine the directories that were scanned.
getSingleton() - Static method in class org.diet4j.core.ModuleRegistry
Obtain the singleton instance of this class, or a subclass.
getUninterpretedRequiredModuleVersion() - Method in class org.diet4j.core.ModuleRequirement
Obtain the version of the Module that we require.
getURLs() - Method in class org.diet4j.tomcat.TomcatWebAppClassLoader
Obtain the JAR URLs for this ClassLoader.

H

hashCode() - Method in class org.diet4j.core.Module
Determine hash code.
hashCode() - Method in class org.diet4j.core.ModuleMeta
We determine the hash code by looking at the Module's name and version.
hasMoreElements() - Method in class org.diet4j.core.ModuleClassLoader.CompoundIterator
Tests if this enumeration contains more elements.
helpAndQuit() - Static method in class org.diet4j.cmdline.CmdlineBootLoader
Print help text and quit.

I

InClasspathModuleRegistry - Class in org.diet4j.inclasspath
A (mock) ModuleRegistry when all Modules are on the class path.
init(DaemonContext) - Method in class org.diet4j.jsvc.Diet4jDaemon
 
initialize(Module[]) - Method in class org.diet4j.tomcat.TomcatWebAppClassLoader
Initialize with the parameters given.
instantiate() - Static method in class org.diet4j.core.ScanningClasspathModuleRegistry
Instantiate ScanningClasspathModuleRegistry as the singleton ModuleRegistry
instantiate(ClassLoader) - Static method in class org.diet4j.inclasspath.InClasspathModuleRegistry
Instantiate an InClasspathModuleRegistry as the singleton ModuleRegistry
instantiateOrGet(ClassLoader) - Static method in class org.diet4j.inclasspath.InClasspathModuleRegistry
Obtain the already instantiated ModuleRegistry, or instantiate an InclasspathModuleRegistry as the singleton ModuleRegistry.
isActive() - Method in class org.diet4j.core.Module
Determine whether this Module is active.
isOptional() - Method in class org.diet4j.core.ModuleRequirement
Determine whether this ModuleRequirement is optional.

J

JAR_RESOURCE_JAR_ENTRY_PREFIX - Static variable in class org.diet4j.core.ModuleMeta
The resourceJarEntryPrefix for JAR files.

L

loadClass(String, boolean) - Method in class org.diet4j.core.ModuleClassLoader
Override loadClass() per comment above.
loadClass(String, boolean) - Method in class org.diet4j.tomcat.TomcatWebAppClassLoader
Load a Class.

M

main(String[]) - Static method in class org.diet4j.cmdline.CmdlineBootLoader
The main program from the Java perspective: just a shell that catches exceptions.
main(String[]) - Static method in class org.diet4j.status.StatusMain
Main program, must be invoked by diet4j framework.
matches(ModuleMeta) - Method in class org.diet4j.core.ModuleRequirement
Determine whether a candidate ModuleMeta meets this ModuleRequirement.
matchesVersionRequirement(String) - Method in class org.diet4j.core.ModuleRequirement
Determine whether the provided version String matches the version requirement in this ModuleRequirement.
MAVEN_VERSION_REGEX - Static variable in class org.diet4j.core.ModuleRequirement
The regex defining Maven version expressions.
MiniModuleMetaMap - Class in org.diet4j.core
A minimal, resource-efficient Map implementation for ModuleMetas.
MiniModuleMetaMap() - Constructor for class org.diet4j.core.MiniModuleMetaMap
Constructor with default initial size.
MiniModuleMetaMap(int) - Constructor for class org.diet4j.core.MiniModuleMetaMap
Constructor with specified initial size.
Module - Class in org.diet4j.core
A software Module.
Module(ModuleMeta, AbstractModuleRegistry, ClassLoader) - Constructor for class org.diet4j.core.Module
Constructor.
MODULE_CLASSES_PREFIXES - Static variable in class org.diet4j.core.ModuleClassLoader
Only load classes with this prefix from the default ClassLoader.
ModuleActivationException - Exception in org.diet4j.core
This Exception is thrown if Module activation was unsuccessful.
ModuleActivationException(ModuleMeta, Throwable) - Constructor for exception org.diet4j.core.ModuleActivationException
Constructor.
ModuleActivationException(ModuleMeta, String) - Constructor for exception org.diet4j.core.ModuleActivationException
Constructor.
ModuleActivationException(ModuleMeta, String, Throwable) - Constructor for exception org.diet4j.core.ModuleActivationException
Constructor.
ModuleActivator - Interface in org.diet4j.core
Instances supporting this interface know how to activate a Module.
ModuleClassLoader - Class in org.diet4j.core
This is a ClassLoader that knows how to load the code for a Module.
ModuleClassLoader(Module, ClassLoader, ModuleClassLoader[]) - Constructor for class org.diet4j.core.ModuleClassLoader
Construct one with the Module whose classes this ModuleClassLoader is supposed to load, the parent/system ClassLoader, and the ClassLoaders of dependent Modules.
ModuleClassLoader.CompoundIterator<T> - Class in org.diet4j.core
Compound iterator helper class.
ModuleDeactivationException - Exception in org.diet4j.core
This Exception is thrown if Module deactivation was unsuccessful.
ModuleDeactivationException(ModuleMeta, Throwable) - Constructor for exception org.diet4j.core.ModuleDeactivationException
Constructor.
ModuleDeactivationException(ModuleMeta, String) - Constructor for exception org.diet4j.core.ModuleDeactivationException
Constructor.
ModuleException - Exception in org.diet4j.core
The abstract superclass of all diet4j-related Exceptions.
ModuleException(ModuleMeta, Throwable) - Constructor for exception org.diet4j.core.ModuleException
Constructor with causal Throwable.
ModuleException(ModuleMeta, String, Throwable) - Constructor for exception org.diet4j.core.ModuleException
Constructor with message and causal Throwable.
ModuleLicense - Class in org.diet4j.core
This represents the license for a Module.
ModuleLicense(String) - Constructor for class org.diet4j.core.ModuleLicense
Constructor.
ModuleMeta - Class in org.diet4j.core
The metadata for a software Module.
ModuleMeta(String, String, String, Map<String, String>, Map<String, String>, long, ModuleLicense, ModuleRequirement[], JarFile, String, String) - Constructor for class org.diet4j.core.ModuleMeta
Constructor.
ModuleNotFoundException - Exception in org.diet4j.core
This Exception is thrown if we cannot find a Module whose ModuleMeta we have.
ModuleNotFoundException(ModuleMeta, Throwable) - Constructor for exception org.diet4j.core.ModuleNotFoundException
Constructor.
ModuleRegistry - Class in org.diet4j.core
A ModuleRegistry is a place where Modules can be found and resolved.
ModuleRegistry() - Constructor for class org.diet4j.core.ModuleRegistry
 
ModuleRegistryEvent - Class in org.diet4j.core
An event generated by a AbstractModuleRegistry.
ModuleRegistryEvent(AbstractModuleRegistry, ModuleMeta) - Constructor for class org.diet4j.core.ModuleRegistryEvent
Constructor.
ModuleRegistryListener - Interface in org.diet4j.core
A listener for ModuleRegistryEvents.
ModuleRequirement - Class in org.diet4j.core
This collects all information needed to find a Module.
ModuleRequirement(String, String, String, boolean) - Constructor for class org.diet4j.core.ModuleRequirement
Construct one.
ModuleResolutionCandidateNotUniqueException - Exception in org.diet4j.core
This Exception indicates that a ModuleRequirement could not be resolved into a single resolution candidate.
ModuleResolutionCandidateNotUniqueException(ModuleRequirement, ModuleMeta[]) - Constructor for exception org.diet4j.core.ModuleResolutionCandidateNotUniqueException
Constructor.
ModuleResolutionException - Exception in org.diet4j.core
This Exception indicates that a Module cannot be resolved.
ModuleResolutionException(ModuleMeta, ModuleRequirement, Throwable) - Constructor for exception org.diet4j.core.ModuleResolutionException
Constructor.
ModuleRunException - Exception in org.diet4j.core
This exception indicates that a Module's specified run method was invoked, but that the method threw an exception
ModuleRunException(ModuleMeta, String, String, Throwable) - Constructor for exception org.diet4j.core.ModuleRunException
Constructor.

N

nameSet() - Method in class org.diet4j.core.AbstractScanningModuleRegistry
Obtain the set of Module names currently contained in the registry.
nameSet(Pattern) - Method in class org.diet4j.core.AbstractScanningModuleRegistry
Obtain the set of Module names currently contained in the registry that match a naming pattern.
nameSet() - Method in class org.diet4j.core.ModuleRegistry
Obtain the set of Module names currently contained in the registry.
nameSet(Pattern) - Method in class org.diet4j.core.ModuleRegistry
Obtain the set of Module names currently contained in the registry that match a naming pattern.
newModuleAvailable(ModuleRegistryEvent) - Method in interface org.diet4j.core.ModuleRegistryListener
The registry has learned about a new Module.
nextElement() - Method in class org.diet4j.core.ModuleClassLoader.CompoundIterator
Returns the next element of this enumeration if this enumeration object has at least one more element to provide.
NoClassDefFoundWithClassLoaderError - Error in org.diet4j.core
Extends NoClassDefFoundError with the ModuleClassLoader that attempted to find the Class.
NoClassDefFoundWithClassLoaderError(String, ModuleClassLoader) - Constructor for error org.diet4j.core.NoClassDefFoundWithClassLoaderError
Constructs a NoClassDefFoundError with the specified detail message.
NoModuleResolutionCandidateException - Exception in org.diet4j.core
This Exception indicates that a ModuleRequirement could not be resolved into a single resolution candidate.
NoModuleResolutionCandidateException(ModuleRequirement) - Constructor for exception org.diet4j.core.NoModuleResolutionCandidateException
Constructor.
NoRunMethodException - Exception in org.diet4j.core
This exception indicates that a Module's specified run method was invoked, but that the method could not be found.
NoRunMethodException(ModuleMeta, String, String, Throwable) - Constructor for exception org.diet4j.core.NoRunMethodException
Constructor.

O

org.diet4j.cmdline - package org.diet4j.cmdline
 
org.diet4j.core - package org.diet4j.core
 
org.diet4j.inclasspath - package org.diet4j.inclasspath
 
org.diet4j.jsvc - package org.diet4j.jsvc
 
org.diet4j.status - package org.diet4j.status
 
org.diet4j.tomcat - package org.diet4j.tomcat
 

P

Parameter(String, int) - Constructor for class org.diet4j.cmdline.CmdlineParameters.Parameter
Constructor.
Parameter(String, int, boolean) - Constructor for class org.diet4j.cmdline.CmdlineParameters.Parameter
Constructor.
parse(String[]) - Method in class org.diet4j.cmdline.CmdlineParameters
Parse the command-line arguments.
parse(String) - Static method in class org.diet4j.core.ModuleRequirement
Factory method using a String representation corresponding to toString().
parseAndSetMinMaxVersions(String) - Method in class org.diet4j.core.ModuleRequirement
Parse a version string, and set the properties on this instance accordingly.
parseMetadataFiles(DocumentBuilderFactory, JarFile, InputStream, InputStream, InputStream, InputStream) - Static method in class org.diet4j.core.AbstractScanningModuleRegistry
Helper method to parse metadata jar file entries into a ModuleMeta.
parseVersion(String) - Method in class org.diet4j.core.ModuleRequirement
Take a version string and parse it into its components.
put(String, ModuleMeta[]) - Method in class org.diet4j.core.MiniModuleMetaMap
Add a key-value mapping to the map.

R

removeModuleRegistryListener(ModuleRegistryListener) - Method in class org.diet4j.core.AbstractModuleRegistry
Remove a ModuleRegistry listener.
removeModuleRegistryListener(ModuleRegistryListener) - Method in class org.diet4j.core.ModuleRegistry
Remove a ModuleRegistry listener.
replaceProperties(HashMap<String, String>, String) - Static method in class org.diet4j.core.AbstractScanningModuleRegistry
Replace properties in Strings.
resolve(ModuleMeta) - Method in class org.diet4j.core.AbstractModuleRegistry
Recursively resolve this ModuleMeta into a Module.
resolve(ModuleMeta, boolean) - Method in class org.diet4j.core.AbstractModuleRegistry
Resolve this ModuleMeta into a Module.
resolve(ModuleMeta) - Method in class org.diet4j.core.ModuleRegistry
Recursively resolve this ModuleMeta into a Module.
resolve(ModuleMeta, boolean) - Method in class org.diet4j.core.ModuleRegistry
Resolve this ModuleMeta into a Module.
RESOLVE_LOCK - Variable in class org.diet4j.core.AbstractModuleRegistry
This object is used as a semaphore for Module loads.
rpmvercmp(String, String) - Static method in class org.diet4j.core.AbstractScanningModuleRegistry
Helper method to compare two versions the way RPM does it.
run(String[]) - Method in class org.diet4j.core.Module
Run this Module as a root Module.
run(String, String, String[]) - Method in class org.diet4j.core.Module
Run this Module as a root Module.
RUN_METHOD_NAME - Static variable in class org.diet4j.core.Module
Name of the run method on a class.

S

ScanningClasspathModuleRegistry - Class in org.diet4j.core
A (mock) ModuleRegistry that can be used when all Modules are on the class path, but they still need to be activated/deactivated.
ScanningDirectoriesModuleRegistry - Class in org.diet4j.core
Upon instantiation, recursively scans the provided directory to look for available Modules.
ScanningDirectoriesModuleRegistry(File[], HashMap<String, MiniModuleMetaMap>) - Constructor for class org.diet4j.core.ScanningDirectoriesModuleRegistry
Private constructor, use factory method.
setModuledirectory(String) - Method in class org.diet4j.tomcat.TomcatModuleLoader
Set directory in which the module JARs can be found.
setRootmodule(String) - Method in class org.diet4j.tomcat.TomcatModuleLoader
Set name of root module.
showModule(String, boolean, boolean, boolean, boolean) - Static method in class org.diet4j.status.StatusMain
Show a particular Module.
showModule(ModuleRequirement, Module, int, Set<Module>, boolean, boolean, boolean, PrintStream) - Static method in class org.diet4j.status.StatusMain
Recursive helper method to dump a Module hierarchy.
showModuleRegistry() - Static method in class org.diet4j.status.StatusMain
Show the content of the Module Registry.
slurpJarEntry(JarFile, JarEntry) - Static method in class org.diet4j.core.ModuleClassLoader
Helper method to read a byte array from a JarEntry.
start() - Method in class org.diet4j.jsvc.Diet4jDaemon
 
startInternal() - Method in class org.diet4j.tomcat.TomcatModuleLoader
Start it.
StatusMain - Class in org.diet4j.status
Print out a variety of status information about modules available to diet4j.
StatusMain() - Constructor for class org.diet4j.status.StatusMain
 
stop() - Method in class org.diet4j.jsvc.Diet4jDaemon
 
stopInternal() - Method in class org.diet4j.tomcat.TomcatModuleLoader
Stop it.
synopsis() - Static method in class org.diet4j.status.StatusMain
Print the synopsis for this app.

T

theActivationClassName - Variable in class org.diet4j.core.ModuleMeta
The name of the Module activation/deactivation class.
theClassLoader - Variable in class org.diet4j.core.Module
This Module's ClassLoader.
theClassLoader - Variable in error org.diet4j.core.NoClassDefFoundWithClassLoaderError
The ClassLoader through which loading failed.
theClassLoader - Variable in class org.diet4j.inclasspath.InClasspathModuleRegistry
The ClassLoader that was used to scan.
theContinued - Variable in class org.diet4j.core.ModuleClassLoader.CompoundIterator
The Enumeration over all other elements to return after the first.
theData - Variable in class org.diet4j.core.MiniModuleMetaMap
Contains the map's data.
theDependencyClassLoaders - Variable in class org.diet4j.core.ModuleClassLoader
The set of ModuleClassLoaders from the dependent Modules.
theDependencyClassLoaders - Variable in class org.diet4j.tomcat.TomcatWebAppClassLoader
The set of ModuleClassLoaders from the dependent Modules.
theDirectories - Variable in class org.diet4j.core.ScanningDirectoriesModuleRegistry
The directories that were scanned.
theFirstElement - Variable in class org.diet4j.core.ModuleClassLoader.CompoundIterator
The first element to return.
theFoundMetas - Variable in exception org.diet4j.core.ModuleResolutionCandidateNotUniqueException
The ModuleMetas that were found.
theIndex - Variable in class org.diet4j.core.MiniModuleMetaMap
The index of the next free element in the array.
theIsOptional - Variable in class org.diet4j.core.ModuleRequirement
Is this dependency optional.
theLicenseText - Variable in class org.diet4j.core.ModuleLicense
Text of the license.
theMaxRequiredModuleVersion - Variable in class org.diet4j.core.ModuleRequirement
The maximum version of the required Module.
theMaxRequiredModuleVersionIsInclusive - Variable in class org.diet4j.core.ModuleRequirement
Is the maximum version inclusive.
theMayRepeat - Variable in class org.diet4j.cmdline.CmdlineParameters.Parameter
 
theMetas - Variable in class org.diet4j.core.AbstractScanningModuleRegistry
The set of known ModuleMetas, keyed by artifactId and then by groupId.
theMinRequiredModuleVersion - Variable in class org.diet4j.core.ModuleRequirement
The minimum version of the required Module.
theMinRequiredModuleVersionIsInclusive - Variable in class org.diet4j.core.ModuleRequirement
Is the minimum version inclusive.
theModule - Variable in class org.diet4j.core.DefaultModuleActivator
The Module that this ModuleActivator can activate.
theModule - Variable in class org.diet4j.core.ModuleClassLoader
The Module whose classes this ClassLoader is responsible for loading.
theModuleArtifactId - Variable in class org.diet4j.core.ModuleMeta
The artifactId of the module.
theModuleBuildDate - Variable in class org.diet4j.core.ModuleMeta
The time when this Module was built.
theModuleDirectories - Static variable in class org.diet4j.cmdline.CmdlineBootLoader
The paths to the Module JAR files.
theModuleDirectories - Variable in class org.diet4j.jsvc.Diet4jDaemon
 
theModuledirectory - Variable in class org.diet4j.tomcat.TomcatModuleLoader
Directory in which the module JARs can be found.
theModuleGroupId - Variable in class org.diet4j.core.ModuleMeta
The groupId of the module
theModuleJar - Variable in class org.diet4j.core.ModuleMeta
The JAR that this Module provides.
theModuleLicense - Variable in class org.diet4j.core.ModuleMeta
The license of the Module.
theModuleMeta - Variable in class org.diet4j.core.Module
The ModuleMeta for this Module.
theModuleMeta - Variable in exception org.diet4j.core.ModuleException
The ModuleMeta whose Module had a problem.
theModuleMeta - Variable in class org.diet4j.core.ModuleRegistryEvent
The ModuleMeta to which this event relates.
theModuleRegistry - Variable in class org.diet4j.jsvc.Diet4jDaemon
 
theModuleRegistry - Variable in class org.diet4j.tomcat.TomcatModuleLoader
Keep a reference to the ModuleRegistries that we are using so they won't be garbage collected.
theModuleUserDescriptions - Variable in class org.diet4j.core.ModuleMeta
The user-visible descriptions for this Module, keyed by the locale.
theModuleUserNames - Variable in class org.diet4j.core.ModuleMeta
The user-visible names for this Module, keyed by the locale.
theModuleVersion - Variable in class org.diet4j.core.ModuleMeta
The version of the module.
theName - Variable in class org.diet4j.cmdline.CmdlineParameters.Parameter
 
theNumValues - Variable in class org.diet4j.cmdline.CmdlineParameters.Parameter
 
theParentClassLoader - Variable in class org.diet4j.core.Module
The parent ClassLoader of this Module's ClassLoader.
thePars - Variable in class org.diet4j.cmdline.CmdlineParameters
The defined parameters.
theParsedMaxRequiredModuleVersion - Variable in class org.diet4j.core.ModuleRequirement
Parsed form of the maximum version of the required Module.
theParsedMinRequiredModuleVersion - Variable in class org.diet4j.core.ModuleRequirement
Parsed form of the minimum version of the required Module.
theRegistry - Variable in class org.diet4j.core.Module
The AbstractModuleRegistry in which this Module is registered.
theRequiredModuleArtifactId - Variable in class org.diet4j.core.ModuleRequirement
The artifactId of the required Module.
theRequiredModuleGroupId - Variable in class org.diet4j.core.ModuleRequirement
The groupId of the required Module.
theRequirement - Variable in exception org.diet4j.core.ModuleResolutionCandidateNotUniqueException
The ModuleRequirement that could not be met unambiguously.
theRequirement - Variable in exception org.diet4j.core.ModuleResolutionException
The ModuleRequirement that could not be met.
theRequirement - Variable in exception org.diet4j.core.NoModuleResolutionCandidateException
The ModuleRequirement that could not be met unambiguously.
theResourceJarEntryPrefix - Variable in class org.diet4j.core.ModuleMeta
The relative path below which resources, such as a class files, are to be found.
theRootModule - Variable in class org.diet4j.jsvc.Diet4jDaemon
 
theRootmodule - Variable in class org.diet4j.tomcat.TomcatModuleLoader
Name of the root module.
theRootModuleMeta - Variable in class org.diet4j.jsvc.Diet4jDaemon
 
theRootModuleRequirement - Static variable in class org.diet4j.cmdline.CmdlineBootLoader
The ModuleRequirement for the root Module to start.
theRootModuleRequirement - Variable in class org.diet4j.jsvc.Diet4jDaemon
 
theRunArguments - Static variable in class org.diet4j.cmdline.CmdlineBootLoader
The arguments to the run
theRunArguments - Variable in class org.diet4j.jsvc.Diet4jDaemon
 
theRunClassName - Static variable in class org.diet4j.cmdline.CmdlineBootLoader
The name of the run class in the root Module, if specified on the command-line.
theRunClassName - Variable in class org.diet4j.core.ModuleMeta
The name of the class in this Module which provides a method to run this Module.
theRunClassName - Variable in exception org.diet4j.core.ModuleRunException
Name of the class whose run method we were trying to run.
theRunClassName - Variable in exception org.diet4j.core.NoRunMethodException
Name of the class whose run method we were trying to run.
theRunClassName - Variable in class org.diet4j.jsvc.Diet4jDaemon
 
theRunMethodName - Static variable in class org.diet4j.cmdline.CmdlineBootLoader
The name of the run method in the run class, if specified on the command-line.
theRunMethodName - Variable in exception org.diet4j.core.ModuleRunException
Name of the method within theRunClassName that we were trying to run.
theRunMethodName - Variable in exception org.diet4j.core.NoRunMethodException
Name of the method within theRunClassName that we were trying to run.
theRunMethodName - Variable in class org.diet4j.jsvc.Diet4jDaemon
 
theRuntimeModuleRequirements - Variable in class org.diet4j.core.ModuleMeta
The requirements for other modules that this Module will have at run time.
theSingleton - Static variable in class org.diet4j.core.ModuleRegistry
The singleton instance of this class.
theStreamHandler - Variable in class org.diet4j.core.ModuleClassLoader
Our StreamHandler, allocated as needed.
theUninterpretedRequiredModuleVersion - Variable in class org.diet4j.core.ModuleRequirement
The uninterpreted version string of the ModuleRequirement.
theValues - Variable in class org.diet4j.cmdline.CmdlineParameters
The found values.
TomcatModuleLoader - Class in org.diet4j.tomcat
This Tomcat-specific class can be specified as a WebappLoader in a Tomcat context.xml file in order to make the entire Tomcat app use diet4j.
TomcatModuleLoader() - Constructor for class org.diet4j.tomcat.TomcatModuleLoader
Public constructor.
TomcatModuleLoader(ClassLoader) - Constructor for class org.diet4j.tomcat.TomcatModuleLoader
Constructor.
TomcatWebAppClassLoader - Class in org.diet4j.tomcat
The ClassLoader for the root Module.
TomcatWebAppClassLoader(ClassLoader) - Constructor for class org.diet4j.tomcat.TomcatWebAppClassLoader
 
toString() - Method in class org.diet4j.core.AbstractModuleRegistry
Obtain String representation.
toString() - Method in class org.diet4j.core.Module
For debugging.
toString() - Method in exception org.diet4j.core.ModuleActivationException
For debugging.
toString() - Method in class org.diet4j.core.ModuleClassLoader
Convert to a string representation for debugging.
toString() - Method in exception org.diet4j.core.ModuleDeactivationException
For debugging.
toString() - Method in class org.diet4j.core.ModuleMeta
Obtain a String representation.
toString() - Method in exception org.diet4j.core.ModuleNotFoundException
For debugging.
toString() - Method in class org.diet4j.core.ModuleRequirement
Obtain a string representation of this object, for debugging purposes.
toString() - Method in exception org.diet4j.core.ModuleRunException
For debugging.
toString() - Method in error org.diet4j.core.NoClassDefFoundWithClassLoaderError
Convert to String representation, for debugging.
toString() - Method in exception org.diet4j.core.NoRunMethodException
For debugging.
toString() - Method in class org.diet4j.core.ScanningDirectoriesModuleRegistry
Obtain String representation.
toString() - Method in class org.diet4j.tomcat.TomcatModuleLoader
Convert to String, for debugging.
toString() - Method in class org.diet4j.tomcat.TomcatWebAppClassLoader
For debugging.

U

UNPACKED_RESOURCE_JAR_ENTRY_PREFIX - Static variable in class org.diet4j.core.ModuleMeta
The resourceJarEntryPrefix for unpacked directories.

V

Version - Class in org.diet4j.core
Version info generated by Maven.
Version() - Constructor for class org.diet4j.core.Version
 
VERSION - Static variable in class org.diet4j.core.Version
 

W

WAR_RESOURCE_JAR_ENTRY_PREFIX - Static variable in class org.diet4j.core.ModuleMeta
The resourceJarEntryPrefix for WAR files.
A B C D E F G H I J L M N O P R S T U V W 
Skip navigation links

Copyright © 2016. All rights reserved.