Package com.google.inject.servlet
Interface ServletModuleTargetVisitor<T,V>
- All Superinterfaces:
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
-
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 javax.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 javax.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 javax.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 javax.servlet.http.HttpServlet>)
, is called with a Class or Key.
-
Method Details
-
visit
Visits a filter binding created byServletModule.filter(java.lang.String, java.lang.String...)
, whereServletModule.FilterKeyBindingBuilder.through(java.lang.Class<? extends javax.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 javax.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 javax.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 javax.servlet.http.HttpServlet>)
, is called with anHttpServlet
.If multiple patterns were specified, this will be called multiple times.
-