public class ServletDefinition extends Object implements ProviderWithExtensionVisitor<ServletDefinition>
| Constructor and Description |
|---|
ServletDefinition(String pattern,
Key<? extends javax.servlet.http.HttpServlet> servletKey,
UriPatternMatcher patternMatcher,
Map<String,String> initParams,
javax.servlet.http.HttpServlet servletInstance) |
| Modifier and Type | Method and Description |
|---|---|
<B,V> V |
acceptExtensionVisitor(BindingTargetVisitor<B,V> visitor,
ProviderInstanceBinding<? extends B> binding)
Instructs the extension determine if the visitor is an instance of a custom
extension visitor, and if so, visit it using that method.
|
ServletDefinition |
get()
Provides an instance of
T. |
String |
toPaddedString(int padding) |
public ServletDefinition get()
ProviderT. Must never return null.get in interface javax.inject.Provider<ServletDefinition>public <B,V> V acceptExtensionVisitor(BindingTargetVisitor<B,V> visitor, ProviderInstanceBinding<? extends B> binding)
ProviderWithExtensionVisitorDue to issues with generics, the type parameters of this method do not relate to the type of the provider. In practice, the 'B' type will always be a supertype of 'T'.
acceptExtensionVisitor in interface ProviderWithExtensionVisitor<ServletDefinition>public String toPaddedString(int padding)
Copyright © 2006-2016 Google, Inc.. All Rights Reserved.