net.sf.staccatocommons.instrument.config
Interface InstrumenterConfiguration

All Known Implementing Classes:
InstrumenterImpl

public interface InstrumenterConfiguration

Instrumenter's interface for configuring it.

It is not intended to be implemented by clients. Instead, client code will have access to an implementation of InstrumenterConfiguration only when executing InstrumenterConfigurer.configureInstrumenter(InstrumenterConfiguration)

Author:
flbulgarelli
See Also:
InstrumenterConfigurer

Method Summary
 InstrumenterConfiguration addAnnotationHanlder(AnnotationHandler<?> handler)
          Register an annotation handler to this instrumenter that will be notified to process an annotation each time one of the type returned by AnnotationHandler.getSupportedAnnotationType() is found.
 InstrumenterConfiguration setInstrumentationMark(InstrumentationMark instrumentationMark)
          Sets the instrumentation mark this instrumenter will print in the instrumented classes.
 

Method Detail

setInstrumentationMark

@NonNull
InstrumenterConfiguration setInstrumentationMark(@NonNull
                                                         InstrumentationMark instrumentationMark)
Sets the instrumentation mark this instrumenter will print in the instrumented classes. This message must be sent at least once from inside InstrumenterConfigurer.configureInstrumenter(InstrumenterConfiguration) , and should be sent at most once from inside it.

Parameters:
instrumentationMark - the instrumentationMark to set
Returns:
this in order to allow method chaining

addAnnotationHanlder

@NonNull
InstrumenterConfiguration addAnnotationHanlder(@NonNull
                                                       AnnotationHandler<?> handler)
Register an annotation handler to this instrumenter that will be notified to process an annotation each time one of the type returned by AnnotationHandler.getSupportedAnnotationType() is found. If more than one AnnotationHandler that supports a certain annotation type is registered, the instrumenter will notify all those handlers when an annotation of such type is found, in the order they have being registered. This message must be sent at least once from inside InstrumenterConfigurer.configureInstrumenter(InstrumenterConfiguration)

Parameters:
handler - the handler to register
Returns:
this in order to allow method chaining


Copyright © 2010-2012 StaccatoCommons. All Rights Reserved.