public class RepositoryExtension extends Object implements javax.enterprise.inject.spi.Extension
@Observes BeforeBeanDiscovery:
Scans the classpath for persistence.xml and extracts relevant information out of it.
This includes mainly entity definitions (type, primary keys) which are not declared with annotations.@Observes ProcessAnnotatedType<X>:
Looks for types annotated with Repository. Repositories are validated and preprocessed -
all the methods on the repository are checked and analyzed for better runtime performance.@Observes AfterBeanDiscovery<X>:
Raises any definition errors discovered before.Copyright © 2011-2013 The Apache Software Foundation. All Rights Reserved.