@Generated(value="org.jomc.tools.SourceFileProcessor 1.5", comments="See http://www.jomc.org/jomc/1.5/jomc-tools-1.5") public class RuntimeModules extends Modules implements RuntimeModelObject
Modules
.
authors, createDate, deprecated, documentation, MODEL_PUBLIC_ID, modelVersion
Constructor and Description |
---|
RuntimeModules()
Creates a new
RuntimeModules instance. |
RuntimeModules(Modules modules)
Creates a new
RuntimeModules instance by deeply copying a given Modules instance. |
RuntimeModules(Modules modules,
Map<Object,Instance> objects)
Creates a new
DefaultModules instance by deeply copying a given Modules instance taking a map
backing the instance. |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears shared runtime state.
|
void |
gc()
Handles shared runtime state.
|
List<Object> |
getAnyObjects(String implementation)
Gets any objects of an implementation from the list of modules.
|
Dependencies |
getDependencies(String implementation)
Gets all dependencies of an implementation from the list of modules.
|
Implementation |
getImplementation(Class<?> implementation)
Gets an implementation for a given class from the list of modules.
|
Implementation |
getImplementation(Object object)
Gets an implementation for a given object from the list of modules.
|
Implementation |
getImplementation(String implementation)
Gets an implementation for a given identifier from the list of modules.
|
Implementation |
getImplementation(String specification,
String name)
Gets an implementation for a given name implementing a given specification from the list of modules.
|
Implementations |
getImplementations()
Gets all specifications of the list of modules.
|
Implementations |
getImplementations(String specification)
Gets all implementations implementing a given specification from the list of modules.
|
Instance |
getInstance(String implementation)
Gets an instance for an implementation from the list of modules.
|
Instance |
getInstance(String implementation,
Dependency dependency)
Gets an instance for an implementation from the list of modules overridden with a given dependency.
|
Messages |
getMessages(String implementation)
Gets all messages of an implementation from the list of modules.
|
Module |
getModule(String name)
Gets a module for a given name from the list of modules.
|
Module |
getModuleOfImplementation(String implementation)
Gets the module declaring a given implementation from the list of modules.
|
Module |
getModuleOfSpecification(String specification)
Gets the module declaring a given specification from the list of modules.
|
Properties |
getProperties(String implementation)
Gets all properties of an implementation from the list of modules.
|
Specification |
getSpecification(Class<?> specification)
Gets a specification for a given class from the list of modules.
|
Specification |
getSpecification(String specification)
Gets a specification for a given identifier from the list of modules.
|
Specifications |
getSpecifications()
Gets all specifications of the list of modules.
|
Specifications |
getSpecifications(String implementation)
Gets all specifications an implementation implements from the list of modules.
|
Properties |
getSpecifiedProperties(String implementation)
Gets all properties specified for an implementation from the list of modules.
|
clone, createObject, getClasspathModule, getDefaultClasspathModuleName, getDependencyJavaModifierName, getDependencyJavaTypeName, getImplementedJavaTypeNames, getInstance, getMergedModule, getMessageJavaModifierName, getModule, getPropertyJavaModifierName, setDefaultClasspathModuleName
getAnyElement, getAnyElement, getAnyElements, getAnyElements, getAnyObject, getAnyObjects, getAuthors, getCreateDate, getDocumentation, getModelVersion, isDeprecated, setAuthors, setCreateDate, setDeprecated, setDocumentation, setModelVersion
public RuntimeModules(Modules modules)
RuntimeModules
instance by deeply copying a given Modules
instance.modules
- The instance to copy.NullPointerException
- if modules
is null
.public RuntimeModules(Modules modules, Map<Object,Instance> objects)
DefaultModules
instance by deeply copying a given Modules
instance taking a map
backing the instance.modules
- The instance to copy.objects
- The map backing the instance.NullPointerException
- if modules
or objects
is null
.@Generated(value="org.jomc.tools.SourceFileProcessor 1.5", comments="See http://www.jomc.org/jomc/1.5/jomc-tools-1.5") public RuntimeModules()
RuntimeModules
instance.public Module getModule(String name)
This method queries an internal cache for a result object to return for the given argument values. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear()
must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getModule
in class Modules
name
- The name of the module to return.null
, if no such module is found.NullPointerException
- if name
is null
.Modules.getModule()
,
Module.getName()
,
clear()
public Specifications getSpecifications()
This method queries an internal cache for a result object to return. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear()
must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getSpecifications
in class Modules
null
, if no specifications are found.Modules.getModule()
,
clear()
public Implementations getImplementations()
This method queries an internal cache for a result object to return. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear()
must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getImplementations
in class Modules
null
, if no specifications are found.Modules.getModule()
,
clear()
public Module getModuleOfSpecification(String specification)
This method queries an internal cache for a result object to return for the given argument values. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear()
must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getModuleOfSpecification
in class Modules
specification
- The identifier of the specification whose declaring module to return.null
, if no such module is found.NullPointerException
- if specification
is null
.Modules.getModule()
,
Module.getSpecifications()
,
Specifications.getSpecification( java.lang.String )
,
clear()
public Module getModuleOfImplementation(String implementation)
This method queries an internal cache for a result object to return for the given argument values. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear()
must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getModuleOfImplementation
in class Modules
implementation
- The identifier of the implementation whose declaring module to return.null
, if no such module is found.NullPointerException
- if implementation
is null
.Modules.getModule()
,
Module.getImplementations()
,
Implementations.getImplementation( java.lang.String )
,
clear()
public Specification getSpecification(String specification)
This method queries an internal cache for a result object to return for the given argument values. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear()
must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getSpecification
in class Modules
specification
- The identifier of the specification to return.null
, if no such specification is found.NullPointerException
- if specification
is null
.Modules.getModule()
,
Module.getSpecifications()
,
Specifications.getSpecification( java.lang.String )
,
clear()
public Specification getSpecification(Class<?> specification) throws ModelObjectException
This method queries an internal cache for a result object to return for the given argument values. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear()
must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getSpecification
in class Modules
specification
- The class of the specification to return.null
, if no such specification is found.NullPointerException
- if specification
is null
.ModelObjectException
- if parsing a name of a referenced type fails.Modules.getModule()
,
Module.getSpecifications()
,
Specifications.getSpecification( java.lang.Class )
,
clear()
public Specifications getSpecifications(String implementation)
This method queries an internal cache for a result object to return for the given argument values. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear()
must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getSpecifications
in class Modules
implementation
- The identifier of the implementation to get all implemented specifications of.null
, if no such
implementation is found or if the first matching implementation does not implement any specification.NullPointerException
- if implementation
is null
.Modules.getModule()
,
getImplementation( java.lang.String )
,
Implementation.getImplementations()
,
Implementations.getReference()
,
clear()
public Implementation getImplementation(String implementation)
This method queries an internal cache for a result object to return for the given argument values. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear()
must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getImplementation
in class Modules
implementation
- The identifier of the implementation to return.null
, if no such implementation is found.NullPointerException
- if implementation
is null
.Modules.getModule()
,
Module.getImplementations()
,
Implementations.getImplementation( java.lang.String )
,
clear()
public Implementation getImplementation(Class<?> implementation) throws ModelObjectException
This method queries an internal cache for a result object to return for the given argument values. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear()
must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getImplementation
in class Modules
implementation
- The class of the implementation to return.null
, if no such implementation is found.NullPointerException
- if implementation
is null
.ModelObjectException
- if parsing a name of a referenced type fails.Modules.getModule()
,
Module.getImplementations()
,
Implementations.getImplementation( java.lang.Class )
,
clear()
public Implementation getImplementation(Object object) throws ModelObjectException
This method queries an internal cache for a result object to return for the given argument values. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear()
must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getImplementation
in class Modules
object
- The object of the implementation to return.null
, if no such implementation is found.NullPointerException
- if object
is null
.ModelObjectException
- if parsing a name of a referenced type fails.Modules.getModule()
,
getImplementation( java.lang.Class )
,
clear()
public Implementation getImplementation(String specification, String name)
This method queries an internal cache for a result object to return for the given argument values. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear()
must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getImplementation
in class Modules
specification
- The identifier of the specification to return an implementation of.name
- The name of the implementation to return.null
, if no such implementation is found.NullPointerException
- if specification
or name
is null
.Modules.getModule()
,
getImplementations( java.lang.String )
,
Implementations.getImplementationByName( java.lang.String )
,
clear()
public Dependencies getDependencies(String implementation)
This method queries an internal cache for a result object to return for the given argument values. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear()
must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getDependencies
in class Modules
implementation
- The identifier of the implementation to get all dependencies of.null
, if no such implementation is
found or if the first matching implementation does not have any dependencies.NullPointerException
- if implementation
is null
.Modules.getModule()
,
getImplementation( java.lang.String )
,
Implementation.getImplementations()
,
Implementations.getReference()
,
clear()
public Properties getProperties(String implementation)
This method queries an internal cache for a result object to return for the given argument values. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear()
must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getProperties
in class Modules
implementation
- The identifier of the implementation to get all properties of.null
, if no such implementation is found
or if the first matching implementation does not have any properties.NullPointerException
- if implementation
is null
.Modules.getModule()
,
getImplementation( java.lang.String )
,
Implementation.getImplementations()
,
Implementations.getReference()
,
clear()
public Properties getSpecifiedProperties(String implementation)
This method queries an internal cache for a result object to return for the given argument values. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear()
must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getSpecifiedProperties
in class Modules
implementation
- The identifier of the implementation to return specified properties of.null
, if no such implementation
is found or if the first matching implementation does not have any specified properties.NullPointerException
- if implementation
is null
.Modules.getModule()
,
getSpecifications( java.lang.String )
,
Specification.getProperties()
,
clear()
public Messages getMessages(String implementation)
This method queries an internal cache for a result object to return for the given argument values. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear()
must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getMessages
in class Modules
implementation
- The identifier of the implementation to get all messages of.null
, if no such implementation is found
or if the first matching implementation does not have any messages.NullPointerException
- if implementation
is null
.Modules.getModule()
,
getImplementation( java.lang.String )
,
Implementation.getImplementations()
,
Implementations.getReference()
,
clear()
public Implementations getImplementations(String specification)
This method queries an internal cache for a result object to return for the given argument values. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear()
must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getImplementations
in class Modules
specification
- The identifier of the specification to return all implementations of.null
, if no such
specification is found or if the first matching specification does not have any implementations.NullPointerException
- if specification
is null
.Modules.getModule()
,
getSpecifications( java.lang.String )
,
clear()
public List<Object> getAnyObjects(String implementation)
This method queries an internal cache for a result object to return for the given argument values. If no cached result object is available, this method queries the super-class for a result object to return and caches the outcome of that query for use on successive calls.
Note:
Method clear()
must be used to synchronize the state of the internal cache with the
state of the instance, should the state of the instance change.
getAnyObjects
in class Modules
implementation
- The identifier of the implementation to get any objects of.null
, if no such implementation is found.NullPointerException
- if implementation
is null
.Modules.getModule()
,
getImplementation( java.lang.String )
,
Implementation.getImplementations()
,
Implementations.getReference()
,
clear()
public Instance getInstance(String implementation)
getInstance
in class Modules
implementation
- The identifier of the implementation to get an instance for.null
, if no such implementation is found.NullPointerException
- if implementation
is null
.Modules.getModule()
,
getImplementation( java.lang.String )
,
getDependencies(java.lang.String)
,
getProperties(java.lang.String)
,
getMessages(java.lang.String)
,
getSpecifications(java.lang.String)
,
getAnyObjects(java.lang.String)
public Instance getInstance(String implementation, Dependency dependency)
getInstance
in class Modules
implementation
- The identifier of the implementation to get an instance for.dependency
- The dependency to use for overriding model objects of the instance.dependency
or null
, if no such implementation is found.NullPointerException
- if implementation
or dependency
is null
.Modules.getModule()
,
getInstance( java.lang.String )
public void gc()
RuntimeModelObject
gc
in interface RuntimeModelObject
public void clear()
RuntimeModelObject
clear
in interface RuntimeModelObject
Copyright © 2005-2013 The JOMC Project. All Rights Reserved.