Package org.glassfish.hk2.utilities
Annotation Type GreedyDefaultImplementation
-
@Documented @Retention(RUNTIME) @Target(TYPE) public @interface GreedyDefaultImplementationThis annotation can be put on interfaces in order to provide theGreedyResolverthe default implementation that should be bound when this interface is injected and there are no other implementations
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<?>valueA class that implements this interface that should be used as a default if there are no other implementations of this class.
-
-
-
Element Detail
-
value
java.lang.Class<?> value
A class that implements this interface that should be used as a default if there are no other implementations of this class. This is only used when theGreedyResolveris being used- Returns:
- the default implementation of this class
-
-