Class PrimaryHandler
java.lang.Object
com.thewinterframework.service.decorator.injection.PrimaryHandler
- All Implemented Interfaces:
ServiceDecoratorHandler<Primary>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the type of annotation this handler processes.voidonConfigure(com.google.inject.Binder binder) Called when the plugin is configured.voidonDiscoverOnType(Class<?> service, Primary annotation) Called when a method with the decorator annotation is discovered.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.thewinterframework.service.decorator.ServiceDecoratorHandler
onDiscover, onPluginDisable, onPluginEnable, onPluginLoad
-
Constructor Details
-
PrimaryHandler
public PrimaryHandler()
-
-
Method Details
-
getAnnotationType
Description copied from interface:ServiceDecoratorHandlerGets the type of annotation this handler processes.- Specified by:
getAnnotationTypein interfaceServiceDecoratorHandler<Primary>- Returns:
- The annotation type.
-
onDiscoverOnType
Description copied from interface:ServiceDecoratorHandlerCalled when a method with the decorator annotation is discovered.- Specified by:
onDiscoverOnTypein interfaceServiceDecoratorHandler<Primary>- Parameters:
service- The class containing the annotated method.annotation- The annotation.
-
onConfigure
public void onConfigure(com.google.inject.Binder binder) Description copied from interface:ServiceDecoratorHandlerCalled when the plugin is configured.- Specified by:
onConfigurein interfaceServiceDecoratorHandler<Primary>- Parameters:
binder- The Guice binder.
-