org.eobjects.analyzer.beans.api
Annotation Type Provided


@Retention(value=RUNTIME)
@Target(value=FIELD)
@Documented
@Inherited
@Qualifier
public @interface Provided

Methods and fields with the @Provided annotation are used to let AnalyzerBeans, TransformerBeans and FilterBeans retrieve service-objects such as persistent collections, the current SchemaNavigator or DataContext. This features ensures separation of concerns: The AnalyzerBeans framework will make sure that persistence is handled and the bean-developer will not have to worry about memory problems related to his/her collection(s). Additionally Analyzerbeans can use the @Provided annotation to inject a SchemaNavigator in order to perform metadata-based analysis. AnalyzerBeans can also inject a DataContext, but this is generally discouraged for normal use-cases since it will either be provided with the run(...)-method if the AnalyzerBean is an ExploringAnalyzer or be out of scope if the AnalyzerBean is a RowProcessingAnalyzer. For some use-cases it is helpful though, for example initialization that requires some simple querying. Valid types for @Provided annotated fields and method arguments are:

Generic/parameterized types for the List, Set or Map can be any of:



Copyright © 2012 eobjects.org. All Rights Reserved.