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);
+    }
 }