|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.ClassLoader
fr.umlv.corosol.repository.JImplementationRepository
public abstract class JImplementationRepository
This class represents an implementation repository. All Corosol objects will be created via this repository.
It constains all associations between an abstract type and its implementation. A JImplementationRepository object is also used as a class loader.
| Nested Class Summary | |
|---|---|
static interface |
JImplementationRepository.Singleton
This interface represents a singleton. |
| Constructor Summary | |
|---|---|
JImplementationRepository()
|
|
| Method Summary | |
|---|---|
abstract java.lang.Object |
create(java.lang.Class abstractType)
Creates the object which is the implementation of the specified abstract type. |
abstract java.lang.Object |
create(int item)
Creates the object which implementation is associated with the specified integer. |
abstract java.lang.Object |
create(java.lang.String item)
Creates the object which implementation is associated with the specified String. |
abstract JInstruction |
createInstruction(int opcode)
Creates the instruction object which the opcode is specified. |
abstract JClass |
createPrimitiveClass(java.lang.String descriptor)
Creates a primitive class which descriptor is specified. |
abstract java.lang.String |
getCorosolProperty(java.lang.String key)
Gets the Corosol property indicated by the specified key. |
static JImplementationRepository |
getInstance()
Returns the unique instance of this class initialized by reading the file defined by the corosol.properties environment variable value. |
java.lang.Object |
getNativeObject()
Returns the object equivalent to this object but which belong to the underlaying Virtual Machine. |
abstract void |
loadProperties(java.util.Properties properties)
Loads a set of properties (key and element pairs) from the specified property set. |
| Methods inherited from class java.lang.ClassLoader |
|---|
clearAssertionStatus, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface fr.umlv.corosol.component.proxy.JProxyFactory |
|---|
createProxy, createProxy |
| Constructor Detail |
|---|
public JImplementationRepository()
| Method Detail |
|---|
public java.lang.Object getNativeObject()
public abstract void loadProperties(java.util.Properties properties)
properties - a set of properties
public abstract java.lang.Object create(java.lang.Class abstractType)
throws java.lang.IllegalArgumentException
abstractType - an abstract type
java.lang.IllegalArgumentException - if the specified type
is unknown by this repository
public abstract java.lang.Object create(java.lang.String item)
throws java.lang.IllegalArgumentException
item - a String item associated with a concrete implementation
java.lang.IllegalArgumentException - if the specified String item
is unknown by this repository
public abstract java.lang.Object create(int item)
throws java.lang.IllegalArgumentException
item - a int item associated with a concrete implementation
java.lang.IllegalArgumentException - if the specified int
item is unknown by this repository
public abstract JClass createPrimitiveClass(java.lang.String descriptor)
throws java.lang.IllegalArgumentException
descriptor - a primitive class descriptor
java.lang.IllegalArgumentException - if the specified descriptor
is not a descriptor for a primitive class or unknown by this repository
public abstract JInstruction createInstruction(int opcode)
throws java.lang.IllegalArgumentException
opcode - the opcode of the instruction to be created
java.lang.IllegalArgumentException - if the specified opcode
is not a valid opcodea or unknown by this repositorypublic abstract java.lang.String getCorosolProperty(java.lang.String key)
key - the name of the Corosol property
public static JImplementationRepository getInstance()
java.lang.InternalError - if an error occurs when attempting
to create the repository
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||