Top Description Methods
org.springframework.context.annotation

public Interface AnnotationConfigRegistry

Known Direct Implementers
org.springframework.context.annotation.AnnotationConfigApplicationContext

Common interface for annotation config application contexts, defining register and scan methods.
Author
Juergen Hoeller
Since
4.1

Method Summary

Modifier and TypeMethod and Description
public void
register(Class<?>...
one or more component classes, e.g. @Configuration classes
componentClasses
)

Register one or more component classes to be processed.

public void
scan(String...
the packages to scan for component classes
basePackages
)

Perform a scan within the specified base packages.

Method Detail

registerback to summary
public void register(Class<?>... componentClasses)

Register one or more component classes to be processed.

Calls to register are idempotent; adding the same component class more than once has no additional effect.

Parameters
componentClasses:Class<?>[]

one or more component classes, e.g. @Configuration classes

scanback to summary
public void scan(String... basePackages)

Perform a scan within the specified base packages.

Parameters
basePackages:String[]

the packages to scan for component classes