@Generated(value="org.jomc.tools.SourceFileProcessor 1.3", comments="See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3") public class RuntimeImplementations extends Implementations implements RuntimeModelObject
Implementations
.
implementation, reference
authors, createDate, deprecated, documentation, MODEL_PUBLIC_ID, modelVersion
Constructor and Description |
---|
RuntimeImplementations()
Creates a new
RuntimeImplementations instance. |
RuntimeImplementations(Implementations implementations)
Creates a new
RuntimeImplementations instance by deeply copying a given Implementations instance. |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears shared runtime state.
|
void |
gc()
Handles shared runtime state.
|
Implementation |
getImplementation(Class<?> implementation)
Gets an implementation for a given class from the list of implementations.
|
Implementation |
getImplementation(String implementation)
Gets an implementation for a given identifier from the list of implementations.
|
Implementation |
getImplementationByName(String name)
Gets an implementation for a given name from the list of implementations.
|
ImplementationReference |
getReference(String implementation)
Gets an implementation reference for a given identifier from the list of references.
|
clone, getImplementation, getReference
getAnyElement, getAnyElement, getAnyElements, getAnyElements, getAnyObject, getAnyObjects, getAuthors, getCreateDate, getDocumentation, getModelVersion, isDeprecated, setAuthors, setCreateDate, setDeprecated, setDocumentation, setModelVersion
public RuntimeImplementations(Implementations implementations)
RuntimeImplementations
instance by deeply copying a given Implementations
instance.implementations
- The instance to copy.NullPointerException
- if implementations
is null
.@Generated(value="org.jomc.tools.SourceFileProcessor 1.3", comments="See http://jomc.sourceforge.net/jomc/1.3/jomc-tools-1.3") public RuntimeImplementations()
RuntimeImplementations
instance.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 Implementations
implementation
- The identifier of the implementation to return.null
, if no such implementation is found.NullPointerException
- if implementation
is null
.Implementations.getImplementation()
,
Implementation.getIdentifier()
,
clear()
public Implementation getImplementation(Class<?> 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 Implementations
implementation
- The class of the implementation to return.null
, if no such implementation is found.NullPointerException
- if implementation
is null
.Implementations.getImplementation()
,
Implementation.isClassDeclaration()
,
Implementation.getClazz()
,
clear()
public Implementation getImplementationByName(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.
getImplementationByName
in class Implementations
name
- The name of the implementation to return.null
, if no such implementation is found.NullPointerException
- if name
is null
.Implementations.getImplementation()
,
Implementation.getName()
,
clear()
public ImplementationReference getReference(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.
getReference
in class Implementations
implementation
- The identifier of the reference to return.null
, if no such reference is found.NullPointerException
- if implementation
is null
.Implementations.getReference()
,
ImplementationReference.getIdentifier()
,
clear()
public void gc()
RuntimeModelObject
gc
in interface RuntimeModelObject
public void clear()
RuntimeModelObject
clear
in interface RuntimeModelObject
Copyright © 2005-2012 The JOMC Project. All Rights Reserved.