Save This Page
Home » Spring-Framework-090522 » org.springframework » stereotype » [javadoc | source]
org.springframework.stereotype
public class: Repository [javadoc | source]
org.springframework.stereotype.Repository
Indicates that an annotated class is a "Repository" (or "DAO").

A class thus annotated is eligible for Spring org.springframework.dao.DataAccessException translation. The annotated class is also clarified as to its role in the overall application architecture for the purpose of tools, aspects, etc.

As of Spring 2.5, this annotation also serves as a specialization of @Component , allowing for implementation classes to be autodetected through classpath scanning.

Method from org.springframework.stereotype.Repository Summary:
value
Method from org.springframework.stereotype.Repository Detail:
 String value() 
    The value may indicate a suggestion for a logical component name, to be turned into a Spring bean in case of an autodetected component.