|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Kilim architecture enforces a clear separation between the mechanims implementing the generic Kilim model semantics (mechanisms controlling the execution of providers and transformers in accordance with dependancy rules, trigger rules, etc....) and the mechanisms implementing the effective tasks described by the providers and the transformers (mechanisms to execute constructors, methods, ....). This architecture allows thus different implementations for the action of providers and transformers : effective instantiation of the system through method and constructor calls,simulation (without effective instantiation) of the system, code generation of launchers, .... A Mapper implements the effective task associated to providers (through getValue()). Mappers should be written in order to be used as interceptors and to be combined in pipe fashion. and transformers (through execute()).
Method Summary | |
void |
enterContext(MappingContext aContext)
Method enterContext. |
void |
executeConstructor(java.lang.Class aClass,
java.lang.Object[] paramObjects,
java.lang.String[] typeNames,
MappingContext aContext)
Method executeConstructor. |
void |
executeMethod(java.lang.Object aSupport,
boolean isStatic,
java.lang.String aMethodName,
java.lang.Object[] paramObjects,
java.lang.String[] typeNames,
MappingContext aContext)
Method executeMethod. |
void |
executeNullElement(MappingContext aContext)
Method executeNullElement. |
void |
executeSetter(java.lang.Object aSupport,
boolean isStatic,
java.lang.String fieldName,
java.lang.Object toBeSet,
MappingContext aContext)
Method executeSetter. |
java.lang.Object |
getClassValue(java.lang.String aClassName,
MappingContext aContext)
Method getClassSourceValue. |
java.lang.Object |
getConstructorValue(java.lang.Class aClass,
java.lang.Object[] paramObjects,
java.lang.String[] typeNames,
MappingContext aContext)
Method getConstructorValue. |
java.lang.Object |
getEventSourceValue(MappingContext aContext)
Method getEventSourceValue..... |
java.lang.Object |
getExternalValue(java.lang.Object value,
MappingContext aContext)
Method getExternalValue. |
java.lang.Object |
getGetterValue(java.lang.Object aSupport,
boolean isStatic,
java.lang.String fieldName,
MappingContext aContext)
Method getGetterValue. |
java.lang.Object |
getMethodValue(java.lang.Object aSupport,
boolean isStatic,
java.lang.String aMethodName,
java.lang.Object[] paramObjects,
java.lang.String[] typeNames,
MappingContext aContext)
Method getMethodValue. |
java.lang.Object |
getNullElementValue(MappingContext aContext)
Method getNullElementValue. |
java.lang.Object |
getPropertyValue(java.lang.Object aValue,
MappingContext aContext)
Method getPropertyValue. |
void |
leaveContext(MappingContext aContext)
Method leaveContext. |
Method Detail |
public void enterContext(MappingContext aContext) throws KilimException
aContext
- : the mapping context
KilimException
- : generated by a specific mapper to indicate a (specific problem).public void leaveContext(MappingContext aContext) throws KilimException
aContext
- : the mapping context.
KilimException
- : generated by a specific mapper to indicate a (specific problem).public java.lang.Object getGetterValue(java.lang.Object aSupport, boolean isStatic, java.lang.String fieldName, MappingContext aContext) throws KilimException
aSupport
- : the support of the getterisStatic
- : true if the getter is staticfieldName
- : the name of the field to be accessedaContext
- : the mapping context
KilimException
- : generated if aSupport is null, if fieldName is null or if no getter corresponding to the signature exists.
Also generated by a specific mapper to indicate a (specific problem).public void executeSetter(java.lang.Object aSupport, boolean isStatic, java.lang.String fieldName, java.lang.Object toBeSet, MappingContext aContext) throws KilimException
aSupport
- : the support of the getterisStatic
- : true if the getter is staticfieldName
- : the name of the field to be accessedtoBeSet
- : the value to be set.aContext
- : the mapping context
KilimException
- : generated if aSupport is null, if fieldName is null or if no getter corresponding to the signature exists.
Also generated by a specific mapper to indicate a (specific problem).public java.lang.Object getMethodValue(java.lang.Object aSupport, boolean isStatic, java.lang.String aMethodName, java.lang.Object[] paramObjects, java.lang.String[] typeNames, MappingContext aContext) throws KilimException
aSupport
- : the support of the methodisStatic
- : true if the method is staticaMethodName
- : the name of the methodparamObjects
- : the ordered values of the method parameterstypeNames
- : the ordered types of the method parameters.aContext
- : the mapping context.
KilimException
- :generated if aSupport is null, if methodName is null or if no method corresponding to the signature exists.
Also generated by a specific mapper to indicate a (specific problem).public void executeMethod(java.lang.Object aSupport, boolean isStatic, java.lang.String aMethodName, java.lang.Object[] paramObjects, java.lang.String[] typeNames, MappingContext aContext) throws KilimException
aSupport
- : the support of the methodisStatic
- : true if the method is staticaMethodName
- : the name of the methodparamObjects
- : the ordered values of the method parameterstypeNames
- : the ordered types of the method parameters.aContext
- : the mapping context.
KilimException
- :generated if aSupport is null, if methodName is null or if no method corresponding to the signature exists.
Also generated by a specific mapper to indicate a (specific problem).public java.lang.Object getConstructorValue(java.lang.Class aClass, java.lang.Object[] paramObjects, java.lang.String[] typeNames, MappingContext aContext) throws KilimException
aClass
- : the class for the constructorparamObjects
- : the ordered values of the method parameterstypeNames
- : the ordered types of the method parameters.aContext
- : the mapping context.
KilimException
- :generated if aSupport is null, if methodName is null or if no method corresponding to the signature exists.
Also generated by a specific mapper to indicate a (specific problem).public void executeConstructor(java.lang.Class aClass, java.lang.Object[] paramObjects, java.lang.String[] typeNames, MappingContext aContext) throws KilimException
aClass
- : the class for the constructorparamObjects
- : the ordered values of the method parameterstypeNames
- : the ordered types of the method parameters.aContext
- : the mapping context.
KilimException
- :generated if aSupport is null, if methodName is null or if no method corresponding to the signature exists.
Also generated by a specific mapper to indicate a (specific problem).public java.lang.Object getPropertyValue(java.lang.Object aValue, MappingContext aContext) throws KilimException
aValue
- : the property identifier.aContext
- : the mapping context.
KilimException
- : generated if aValue is null. Also generated by a specific mapper to indicate a (specific problem).public java.lang.Object getClassValue(java.lang.String aClassName, MappingContext aContext) throws KilimException
aClassName
- : the name of the classaContext
- : the mapping context
KilimException
- : generated if aClassName is null or if no Class object can be found.
Also generated by a specific mapper to indicate a (specific problem).public java.lang.Object getExternalValue(java.lang.Object value, MappingContext aContext) throws KilimException
value
- : the external reference identifier.aContext
- : the mapping context.
KilimException
- : generated if value is null. Also generated by a specific mapper to indicate a (specific problem).public java.lang.Object getNullElementValue(MappingContext aContext) throws KilimException
aContext
- : the mapping context.
KilimException
- : generated by a specific mapper to indicate a (specific problem).public void executeNullElement(MappingContext aContext) throws KilimException
aContext
- : the mapping context
KilimException
- : generated by a specific mapper to indicate a (specific problem).public java.lang.Object getEventSourceValue(MappingContext aContext) throws KilimException
aContext
- : the mapping context.
KilimException
- : generated by a specific mapper to indicate a (specific problem).
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |