commit | 65bf2d8d120a486900c8c5efdb372ce7c4144833 | [log] [tgz] |
---|---|---|
author | Matthew Jason Benson <mbenson@apache.org> | Thu Sep 16 15:57:30 2010 +0000 |
committer | Matthew Jason Benson <mbenson@apache.org> | Thu Sep 16 15:57:30 2010 +0000 |
tree | b4067c31a0052eb30e27413d02cd837182519e0f | |
parent | d7b521a7afb1c2d5486ecec906177309da727c73 [diff] |
factory method git-svn-id: https://svn.apache.org/repos/asf/commons/proper/proxy/branches/version-2.0-work@997807 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/stub/src/main/java/org/apache/commons/proxy2/stub/AnnotationStubConfigurer.java b/stub/src/main/java/org/apache/commons/proxy2/stub/AnnotationStubConfigurer.java index 7c51971..663dbe5 100644 --- a/stub/src/main/java/org/apache/commons/proxy2/stub/AnnotationStubConfigurer.java +++ b/stub/src/main/java/org/apache/commons/proxy2/stub/AnnotationStubConfigurer.java
@@ -53,4 +53,14 @@ */ protected void configureAnnotation(T stub) { } + + /** + * Factory method. + * @param <T> + * @param type + * @return {@link AnnotationStubConfigurer} for type + */ + public static <T extends Annotation> AnnotationStubConfigurer<T> forType(Class<T> type) { + return new AnnotationStubConfigurer<T>(type); + } }