Package com.google.inject.servlet
Interface ServletModuleTargetVisitor<T,V>
-
- All Superinterfaces:
BindingTargetVisitor<T,V>
public interface ServletModuleTargetVisitor<T,V> extends BindingTargetVisitor<T,V>
A visitor for the servlet extension.If your
BindingTargetVisitor
implements this interface, bindings created by usingServletModule
will be visited through this interface.- Since:
- 3.0
-
-
Method Summary
-
-
-
Method Detail
-
visit
V 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.If multiple patterns were specified, this will be called multiple times.
-
visit
V visit(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
.If multiple patterns were specified, this will be called multiple times.
-
visit
V 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.If multiple patterns were specified, this will be called multiple times.
-
visit
V 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
.If multiple patterns were specified, this will be called multiple times.
-
-