|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jomc.model.ModelObject
org.jomc.model.Implementation
org.jomc.ri.model.RuntimeImplementation
@Generated(value="org.jomc.tools.SourceFileProcessor 1.2.2", comments="See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2") public class RuntimeImplementation
Runtime Implementation
.
Field Summary |
---|
Fields inherited from class org.jomc.model.Implementation |
---|
_abstract, _final, any, classDeclaration, clazz, dependencies, identifier, implementations, location, messages, name, properties, specifications, stateless, vendor, version |
Fields inherited from class org.jomc.model.ModelObject |
---|
authors, createDate, deprecated, documentation, MODEL_PUBLIC_ID, modelVersion |
Constructor Summary | |
---|---|
RuntimeImplementation()
Creates a new RuntimeImplementation instance. |
|
RuntimeImplementation(Implementation implementation)
Creates a new RuntimeImplementation instance by deeply copying a given Implementation instance. |
Method Summary | |
---|---|
void |
clear()
Clears shared runtime state. |
void |
gc()
Handles shared runtime state. |
Class<?> |
getJavaClass(ClassLoader classLoader)
Gets the Java class of the implementation for a given class loader. |
URI |
getLocationUri()
Gets the location URI used for locating instances of this implementation. |
Methods inherited from class org.jomc.model.Implementation |
---|
clone, getAny, getAnyElement, getAnyElement, getAnyElements, getAnyElements, getAnyObject, getAnyObjects, getClazz, getDependencies, getIdentifier, getImplementations, getLocation, getMessages, getName, getProperties, getSpecifications, getVendor, getVersion, isAbstract, isClassDeclaration, isFinal, isStateless, setAbstract, setClassDeclaration, setClazz, setDependencies, setFinal, setIdentifier, setImplementations, setLocation, setMessages, setName, setProperties, setSpecifications, setStateless, setVendor, setVersion |
Methods inherited from class org.jomc.model.ModelObject |
---|
getAnyElement, getAnyElement, getAnyElements, getAnyElements, getAnyObject, getAnyObjects, getAuthors, getCreateDate, getDocumentation, getModelVersion, isDeprecated, setAuthors, setCreateDate, setDeprecated, setDocumentation, setModelVersion |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuntimeImplementation(Implementation implementation)
RuntimeImplementation
instance by deeply copying a given Implementation
instance.
implementation
- The instance to copy.
NullPointerException
- if implementation
is null
.@Generated(value="org.jomc.tools.SourceFileProcessor 1.2.2", comments="See http://jomc.sourceforge.net/jomc/1.2/jomc-tools-1.2.2") public RuntimeImplementation()
RuntimeImplementation
instance.
Method Detail |
---|
public URI getLocationUri()
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.
getLocationUri
in class Implementation
null
, if instances of this
implementation do not need to be located.Implementation.getLocation()
,
clear()
public Class<?> getJavaClass(ClassLoader classLoader) throws ClassNotFoundException
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 RuntimeModelObjects.clear()
must be used to synchronize the state of the
internal cache with the state of the class loader, should the state of the class loader change.
getJavaClass
in class Implementation
classLoader
- The class loader to get the Java class from or null
, to get the Java class from the
platform's bootstrap class loader.
null
, if the implementation does not declare a class.
ClassNotFoundException
- if the Java class is not found.Implementation.getClazz()
,
RuntimeModelObjects.clear()
public void gc()
RuntimeModelObject
gc
in interface RuntimeModelObject
public void clear()
RuntimeModelObject
clear
in interface RuntimeModelObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2005-2012 The JOMC Project. All Rights Reserved. |