Class GuiceInteractionControllerInstantiator
java.lang.Object
io.github.kaktushose.jdac.guice.internal.GuiceInteractionControllerInstantiator
- All Implemented Interfaces:
InteractionControllerInstantiator
@Internal
public class GuiceInteractionControllerInstantiator
extends Object
implements InteractionControllerInstantiator
-
Constructor Summary
ConstructorsConstructorDescriptionGuiceInteractionControllerInstantiator(RuntimeBoundScope scope, Injector injector) -
Method Summary
Modifier and TypeMethodDescription<T> Tinstance(Class<T> clazz, Introspection introspection) This method will be called each time an instance of a class annotated withInteractionis needed.
-
Constructor Details
-
GuiceInteractionControllerInstantiator
-
-
Method Details
-
instance
Description copied from interface:InteractionControllerInstantiatorThis method will be called each time an instance of a class annotated with
Interactionis needed.The provided
Introspectioninstance orIntrospection.accessScoped()can be used to retrieve other components/parts of this framework, e.g.MessageResolver.- Specified by:
instancein interfaceInteractionControllerInstantiator- Parameters:
clazz- theClassof needed instanceintrospection- theIntrospectioninstance of this runtime (stage =Stage.RUNTIME).
-