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 using ServletModule will be visited through this interface.

Since:
3.0
Author:
sameb@google.com (Sam Berlin)

Method Summary
 V visit(InstanceFilterBinding binding)
          Visits a filter binding created by ServletModule.filter(java.lang.String, java.lang.String...) where ServletModule.FilterKeyBindingBuilder.through(java.lang.Class) is called with a Filter.
 V visit(InstanceServletBinding binding)
          Visits a servlet binding created by ServletModule.serve(java.lang.String, java.lang.String...) where ServletModule.ServletKeyBindingBuilder.with(java.lang.Class), is called with an HttpServlet.
 V visit(LinkedFilterBinding binding)
          Visits a filter binding created by ServletModule.filter(java.lang.String, java.lang.String...), where ServletModule.FilterKeyBindingBuilder.through(java.lang.Class) is called with a Class or Key.
 V visit(LinkedServletBinding binding)
          Visits a servlet binding created by ServletModule.serve(java.lang.String, java.lang.String...) where ServletModule.ServletKeyBindingBuilder.with(java.lang.Class), 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 Detail

visit

V visit(LinkedFilterBinding binding)
Visits a filter binding created by ServletModule.filter(java.lang.String, java.lang.String...), where ServletModule.FilterKeyBindingBuilder.through(java.lang.Class) 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 by ServletModule.filter(java.lang.String, java.lang.String...) where ServletModule.FilterKeyBindingBuilder.through(java.lang.Class) is called with a Filter. If multiple patterns were specified, this will be called multiple times.


visit

V visit(LinkedServletBinding binding)
Visits a servlet binding created by ServletModule.serve(java.lang.String, java.lang.String...) where ServletModule.ServletKeyBindingBuilder.with(java.lang.Class), 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 by ServletModule.serve(java.lang.String, java.lang.String...) where ServletModule.ServletKeyBindingBuilder.with(java.lang.Class), is called with an HttpServlet. If multiple patterns were specified, this will be called multiple times.



Copyright © 2006-2011 Google, Inc.. All Rights Reserved.