|
1 | 1 | /**
|
2 |
| - * Copyright 2009-2015 the original author or authors. |
| 2 | + * Copyright 2009-2016 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
29 | 29 | * arbitrary conditions. The two most common conditions are that a class implements/extends
|
30 | 30 | * another class, or that is it annotated with a specific annotation. However, through the use
|
31 | 31 | * of the {@link Test} class it is possible to search using arbitrary conditions.</p>
|
32 |
| - * <p/> |
| 32 | + * |
33 | 33 | * <p>A ClassLoader is used to locate all locations (directories and jar files) in the class
|
34 | 34 | * path that contain classes within certain packages, and then to load those classes and
|
35 | 35 | * check them. By default the ClassLoader returned by
|
36 | 36 | * {@code Thread.currentThread().getContextClassLoader()} is used, but this can be overridden
|
37 | 37 | * by calling {@link #setClassLoader(ClassLoader)} prior to invoking any of the {@code find()}
|
38 | 38 | * methods.</p>
|
39 |
| - * <p/> |
| 39 | + * |
40 | 40 | * <p>General searches are initiated by calling the
|
41 | 41 | * {@link #find(org.apache.ibatis.io.ResolverUtil.Test, String)} ()} method and supplying
|
42 | 42 | * a package name and a Test instance. This will cause the named package <b>and all sub-packages</b>
|
43 | 43 | * to be scanned for classes that meet the test. There are also utility methods for the common
|
44 | 44 | * use cases of scanning multiple packages for extensions of particular classes, or classes
|
45 | 45 | * annotated with a specific annotation.</p>
|
46 |
| - * <p/> |
| 46 | + * |
47 | 47 | * <p>The standard usage pattern for the ResolverUtil class is as follows:</p>
|
48 |
| - * <p/> |
| 48 | + * |
49 | 49 | * <pre>
|
50 | 50 | * ResolverUtil<ActionBean> resolver = new ResolverUtil<ActionBean>();
|
51 | 51 | * resolver.findImplementation(ActionBean.class, pkg1, pkg2);
|
|
0 commit comments