Package se.jiderhamn.classloader
Annotation Type PackagesLoadedOutsideClassLoader
-
@Retention(RUNTIME) @Target(TYPE) public @interface PackagesLoadedOutsideClassLoader
Annotation that defines what packages packages to be ignored byRedefiningClassLoader
, so that they will be loaded by the parent/systemClassLoader
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String[]
packages
Packages to be ignored byRedefiningClassLoader
, on the form "foo.bar." (note the ending dot!)
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
addToDefaults
Should the packages inpackages()
be added toRedefiningClassLoader.DEFAULT_IGNORED_PACKAGES
?false
meanspackages()
will instead replace, andRedefiningClassLoader.DEFAULT_IGNORED_PACKAGES
will be redefined byRedefiningClassLoader
unless specified bypackages()
.
-
-
-
Element Detail
-
packages
java.lang.String[] packages
Packages to be ignored byRedefiningClassLoader
, on the form "foo.bar." (note the ending dot!)
-
-
-
addToDefaults
boolean addToDefaults
Should the packages inpackages()
be added toRedefiningClassLoader.DEFAULT_IGNORED_PACKAGES
?false
meanspackages()
will instead replace, andRedefiningClassLoader.DEFAULT_IGNORED_PACKAGES
will be redefined byRedefiningClassLoader
unless specified bypackages()
.- Default:
- false
-
-