Package org.glassfish.hk2.utilities
Annotation Type GreedyDefaultImplementation
-
@Documented @Retention(RUNTIME) @Target(TYPE) public @interface GreedyDefaultImplementation
This annotation can be put on interfaces in order to provide theGreedyResolver
the 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<?>
value
A 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 theGreedyResolver
is being used- Returns:
- the default implementation of this class
-
-