Author: dan.j.allen
Date: 2010-11-24 14:16:41 -0500 (Wed, 24 Nov 2010)
New Revision: 7094
Modified:
archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/data/MemberRepositoryProducer.java
Log:
add example to javadoc
Modified:
archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/data/MemberRepositoryProducer.java
===================================================================
---
archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/data/MemberRepositoryProducer.java 2010-11-24
19:16:25 UTC (rev 7093)
+++
archetypes/javaee6-webapp/trunk/src/main/java/com/mycompany/data/MemberRepositoryProducer.java 2010-11-24
19:16:41 UTC (rev 7094)
@@ -6,8 +6,13 @@
/**
* This class uses CDI to produce EntityManager instances qualified that are
- * qualified as @MemberRepository. Therefore, to inject an instance, @Inject
- * must be followed by @MemberRepository.
+ * qualified as @MemberRepository.
+ *
+ * <p>Example injection on a managed bean field:</p>
+ * <pre>
+ * @Inject @MemberRepository
+ * private EntityManager memberRepository;
+ * </pre>
*/
public class MemberRepositoryProducer
{
Show replies by date