Top Description Methods
org.glassfish.hk2.utilities

public @Interface GreedyDefaultImplementation

extends Annotation
Annotations
@Documented
@Retention:RUNTIME
@Target:TYPE
Static Imports
java.lang.annotation.ElementType.TYPE, .RetentionPolicy.RUNTIME

This annotation can be put on interfaces in order to provide the GreedyResolver the default implementation that should be bound when this interface is injected and there are no other implementations
Author
jwells

Method Summary

Modifier and TypeMethod and Description
public Class<?>

Returns:

the default implementation of this class
value
()

A class that implements this interface that should be used as a default if there are no other implementations of this class.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public 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 the GreedyResolver is being used

Returns:Class<?>

the default implementation of this class