|
|||||||||
| 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
fr.umlv.corosol.repository.impl.DefaultJImplementationRepository
public class DefaultJImplementationRepository
The default implementation of the fr.umlv.corosol.repository.JImplementationRepository interface.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class fr.umlv.corosol.repository.JImplementationRepository |
|---|
JImplementationRepository.Singleton |
| Constructor Summary | |
|---|---|
DefaultJImplementationRepository()
The default constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
create(java.lang.Class abstractType)
Creates the object which is the implementation of the specified abstract type. |
java.lang.Object |
create(int item)
Creates the object which implementation is associated with the specified integer. |
java.lang.Object |
create(java.lang.String item)
Creates the object which implementation is associated with the specified String. |
JInstruction |
createInstruction(int opcode)
Creates the instruction object which the opcode is specified. |
JClass |
createPrimitiveClass(java.lang.String descriptor)
Creates a primitive class which descriptor is specified. |
JProxy |
createProxy(JClassInstance instance)
Creates a proxy instance for the specified class instance. |
JProxy |
createProxy(JVMComponent component)
Creates a proxy instance for the specified component object. |
java.lang.Class |
findClass(java.lang.String name)
Finds the specified class. |
java.lang.String |
getCorosolProperty(java.lang.String key)
Gets the Corosol property indicated by the specified key. |
void |
loadProperties(java.util.Properties properties)
Loads a set of properties (key and element pairs) from the specified property set. |
java.lang.String |
toString()
Returns a string representation of this repository. |
| Methods inherited from class fr.umlv.corosol.repository.JImplementationRepository |
|---|
getInstance, getNativeObject |
| 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, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultJImplementationRepository()
| Method Detail |
|---|
public void loadProperties(java.util.Properties properties)
loadProperties in class JImplementationRepositoryproperties - a set of properties
public java.lang.Object create(java.lang.Class abstractType)
throws java.lang.IllegalArgumentException
create in class JImplementationRepositoryabstractType - an abstract type
java.lang.IllegalArgumentException - if the specified abstract
type is unknown by this repository
public java.lang.Object create(java.lang.String item)
throws java.lang.IllegalArgumentException
create in class JImplementationRepositoryitem - a String item associated with a concrete implementation
java.lang.IllegalArgumentException - if the specified String item
is unknown by this repository
public java.lang.Object create(int item)
throws java.lang.IllegalArgumentException
create in class JImplementationRepositoryitem - a int item associated with a concrete implementation
java.lang.IllegalArgumentException - if the specified int
item is unknown by this repository
public JClass createPrimitiveClass(java.lang.String descriptor)
throws java.lang.IllegalArgumentException
createPrimitiveClass in class JImplementationRepositorydescriptor - 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 JInstruction createInstruction(int opcode)
throws java.lang.IllegalArgumentException
createInstruction in class JImplementationRepositoryopcode - 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 JProxy createProxy(JVMComponent component)
component - a JVM component instance
public JProxy createProxy(JClassInstance instance)
instance - a class instance allocated in the Corosol heap.
public java.lang.Class findClass(java.lang.String name)
throws java.lang.ClassNotFoundException
findClass in class java.lang.ClassLoadername - The name of the class
java.lang.ClassNotFoundException - If the class could not be foundpublic java.lang.String getCorosolProperty(java.lang.String key)
getCorosolProperty in class JImplementationRepositorykey - the name of the Corosol property
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||