Annotation Type InvisibleForScanner
-
@Target(TYPE) @Retention(RUNTIME) @Inherited public @interface InvisibleForScanner
Used to exclude class from classpath scanning or prevent guice binding recognition as extension.For guice bindings there is a side-effect: if annotated extension will be registered manually, binding will not be recognized and guicey will try to register default binding for extension, which most likely will fail context creation. So it is better to use this annotation only on classes which are not intended to be registered at all. As a workaround,
LazyBinding
may be used to avoid default binding creation for extension.- Since:
- 01.09.2014