Package com.google.inject.servlet
Interface ServletModuleTargetVisitor<T,V>
- All Superinterfaces:
com.google.inject.spi.BindingTargetVisitor<T,V>
public interface ServletModuleTargetVisitor<T,V>
extends com.google.inject.spi.BindingTargetVisitor<T,V>
A visitor for the servlet extension.
If your BindingTargetVisitor implements this interface, bindings created by using
ServletModule will be visited through this interface.
- Since:
- 3.0
- Author:
- sameb@google.com (Sam Berlin)
-
Method Summary
Modifier and TypeMethodDescriptionvisit(InstanceFilterBinding binding) Visits a filter binding created byServletModule.filter(java.lang.String, java.lang.String...)whereServletModule.FilterKeyBindingBuilder.through(java.lang.Class<? extends jakarta.servlet.Filter>)is called with aFilter.visit(InstanceServletBinding binding) Visits a servlet binding created byServletModule.serve(java.lang.String, java.lang.String...)whereServletModule.ServletKeyBindingBuilder.with(java.lang.Class<? extends jakarta.servlet.http.HttpServlet>), is called with anHttpServlet.visit(LinkedFilterBinding binding) Visits a filter binding created byServletModule.filter(java.lang.String, java.lang.String...), whereServletModule.FilterKeyBindingBuilder.through(java.lang.Class<? extends jakarta.servlet.Filter>)is called with a Class or Key.visit(LinkedServletBinding binding) Visits a servlet binding created byServletModule.serve(java.lang.String, java.lang.String...)whereServletModule.ServletKeyBindingBuilder.with(java.lang.Class<? extends jakarta.servlet.http.HttpServlet>), is called with a Class or Key.Methods inherited from interface com.google.inject.spi.BindingTargetVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit
-
Method Details
-
visit
Visits a filter binding created byServletModule.filter(java.lang.String, java.lang.String...), whereServletModule.FilterKeyBindingBuilder.through(java.lang.Class<? extends jakarta.servlet.Filter>)is called with a Class or Key.If multiple patterns were specified, this will be called multiple times.
-
visit
Visits a filter binding created byServletModule.filter(java.lang.String, java.lang.String...)whereServletModule.FilterKeyBindingBuilder.through(java.lang.Class<? extends jakarta.servlet.Filter>)is called with aFilter.If multiple patterns were specified, this will be called multiple times.
-
visit
Visits a servlet binding created byServletModule.serve(java.lang.String, java.lang.String...)whereServletModule.ServletKeyBindingBuilder.with(java.lang.Class<? extends jakarta.servlet.http.HttpServlet>), is called with a Class or Key.If multiple patterns were specified, this will be called multiple times.
-
visit
Visits a servlet binding created byServletModule.serve(java.lang.String, java.lang.String...)whereServletModule.ServletKeyBindingBuilder.with(java.lang.Class<? extends jakarta.servlet.http.HttpServlet>), is called with anHttpServlet.If multiple patterns were specified, this will be called multiple times.
-