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!#].
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.