next up previous
Next: Instrumentation of components Up: Implementation of development architecture Previous: Implementation of development architecture

Extension of the Java BeanBox  

The instrumentation of two classes of components does not require any extensions of the BeanBox. The configuration of these components can transparently take place during component customization. Only for the insertion of startSTA- and stopSTA-calls into the generated adapters some minor extensions are necessary.

The BeanBox generates adapters by writing into a file using calls to the print-method. Thus, the extension could easily be achieved by adding further calls. An example for an instrumented adapter automatically generated by the extended BeanBox can be found in figure [*]. To distinguish the additionally generated code, the "normal" code is depicted in grey. Details about the performed extensions can be found in [#!hauc01!#].


 
Figure: Adapter generated by extended BeanBox 
7#7

As can be seen from the figure, a call to startSTA has been inserted just before the method startSort of the target component is called. The call to the target component is now done within a try/catch-environment to catch possible exceptions thrown by the target. Depending on the success of the call, a stopSTA-call is done with the appropriate status parameter.


next up previous
Next: Instrumentation of components Up: Implementation of development architecture Previous: Implementation of development architecture
Copyright Munich Network Management Team