Commit 2bc186d
committed
Add an ol' classic: ReflectedUniverse, aka CurtisJ
Sure, there is BeanShell. But that would add another dependency to
the project! The ReflectedUniverse is simple, tried and true.
Sure, you almost never want to actually use it, since compile-time
safety is much preferred. But when you _do_ need to do some big
reflection thing, it is quite handy.
For example: suppose you want to remove a dependency from a project,
and deprecate the methods that used it. You can leave the methods as
is, so that they behave exactly the same way, but wrap the offending
code in a ReflectedUniverse to avoid the compile-time dependency. That
way, the deprecated methods will continue to work at least in the case
where the removed dependency is still present on the classpath.1 parent dc938f1 commit 2bc186d
File tree
2 files changed
+568
-0
lines changed- src/main/java/org/scijava/util
2 files changed
+568
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
0 commit comments