Revision: 1569
Author: sberlin
Date: Wed Jun 29 15:04:31 2011
Log:
Restore usernames
Revision created by MOE tool push_codebase.
MOE_MIGRATION=2449
http://code.google.com/p/google-guice/source/detail?r=1569
Modified:
/trunk/core/src/com/google/inject/internal/AbstractBindingProcessor.java
/trunk/core/src/com/google/inject/internal/InternalFactoryToProviderAdapter.java
/trunk/core/src/com/google/inject/internal/ProvisionListenerStackCallback.java
/trunk/core/test/com/google/inject/TypeLiteralTypeResolutionTest.java
/trunk/core/test/com/googlecode/guice/BytecodeGenTest.java
/trunk/extensions/grapher/src/com/google/inject/grapher/GraphingVisitor.java
/trunk/extensions/grapher/src/com/google/inject/grapher/TransitiveDependencyVisitor.java
/trunk/extensions/grapher/src/com/google/inject/grapher/graphviz/InterfaceNodeFactory.java
/trunk/extensions/grapher/test/com/google/inject/grapher/demo/InjectorGrapherDemo.java
/trunk/extensions/persist/src/com/google/inject/persist/PersistService.java
/trunk/extensions/persist/src/com/google/inject/persist/jpa/JpaFinderProxy.java
/trunk/extensions/persist/src/com/google/inject/persist/jpa/JpaLocalTxnInterceptor.java
/trunk/extensions/persist/src/com/google/inject/persist/jpa/JpaPersistModule.java
/trunk/extensions/servlet/src/com/google/inject/servlet/ContinuingHttpServletRequest.java
/trunk/extensions/servlet/src/com/google/inject/servlet/GuiceServletContextListener.java
/trunk/extensions/servlet/src/com/google/inject/servlet/InternalServletModule.java
/trunk/extensions/servlet/src/com/google/inject/servlet/ManagedServletPipeline.java
/trunk/extensions/servlet/src/com/google/inject/servlet/ServletDefinition.java
/trunk/extensions/servlet/src/com/google/inject/servlet/ServletScopes.java
/trunk/extensions/servlet/src/com/google/inject/servlet/UriPatternMatcher.java
=======================================
---
/trunk/core/src/com/google/inject/internal/AbstractBindingProcessor.java
Wed Jun 29 15:02:50 2011
+++
/trunk/core/src/com/google/inject/internal/AbstractBindingProcessor.java
Wed Jun 29 15:04:31 2011
@@ -33,7 +33,7 @@
/**
* Guarantees that processing of Binding elements happens in a sane way.
- *
+ *
* @author sa...@google.com (Sam Berlin)
*/
abstract class AbstractBindingProcessor extends AbstractProcessor {
@@ -52,10 +52,10 @@
Provider.class,
Scope.class,
TypeLiteral.class);
- // TODO(user): fix BuiltInModule, then add Stage
-
+ // TODO(jessewilson): fix BuiltInModule, then add Stage
+
protected final ProcessedBindingData bindingData;
-
+
AbstractBindingProcessor(Errors errors, ProcessedBindingData
bindingData) {
super(errors);
this.bindingData = bindingData;
@@ -65,7 +65,7 @@
InjectorImpl injector, Key<T> key, Object source) {
return new UntargettedBindingImpl<T>(injector, key, source);
}
-
+
protected void putBinding(BindingImpl<?> binding) {
Key<?> key = binding.getKey();
@@ -124,13 +124,13 @@
}
}
}
-
+
private <T> void validateKey(Object source, Key<T> key) {
Annotations.checkForMisplacedScopeAnnotations(
key.getTypeLiteral().getRawType(), source, errors);
}
-
- /**
+
+ /**
* Processor for visiting bindings. Each overriden method that wants to
* actually process the binding should call prepareBinding first.
*/
@@ -139,15 +139,15 @@
final Key<T> key;
final Class<? super T> rawType;
Scoping scoping;
-
+
Processor(BindingImpl<T> binding) {
source = binding.getSource();
key = binding.getKey();
rawType = key.getTypeLiteral().getRawType();
scoping = binding.getScoping();
}
-
- protected void prepareBinding() {
+
+ protected void prepareBinding() {
validateKey(source, key);
scoping = Scoping.makeInjectable(scoping, injector, errors);
}
=======================================
---
/trunk/core/src/com/google/inject/internal/InternalFactoryToProviderAdapter.java
Wed Jun 29 15:02:50 2011
+++
/trunk/core/src/com/google/inject/internal/InternalFactoryToProviderAdapter.java
Wed Jun 29 15:04:31 2011
@@ -35,7 +35,7 @@
public T get(Errors errors, InternalContext context, Dependency<?>
dependency, boolean linked)
throws ErrorsException {
- // TODO(user): Does this need to push state into the context?
+ // TODO(sameb): Does this need to push state into the context?
try {
return errors.checkForNull(provider.get(), source, dependency);
} catch (RuntimeException userException) {
=======================================
---
/trunk/core/src/com/google/inject/internal/ProvisionListenerStackCallback.java
Wed Jun 29 15:02:50 2011
+++
/trunk/core/src/com/google/inject/internal/ProvisionListenerStackCallback.java
Wed Jun 29 15:04:31 2011
@@ -30,7 +30,7 @@
*/
final class ProvisionListenerStackCallback<T> {
- private static final ProvisionListener EMPTY_LISTENER[] = new
ProvisionListener[0];
+ private static final ProvisionListener EMPTY_LISTENER[] = new
ProvisionListener[0];
private final ProvisionListener[] listeners;
private final Key<T> key;
@@ -42,7 +42,7 @@
this.listeners = listeners.toArray(new
ProvisionListener[listeners.size()]);
}
}
-
+
public boolean hasListeners() {
return listeners.length > 0;
}
@@ -56,7 +56,7 @@
} catch(RuntimeException t) {
caught = t;
}
-
+
if (provision.exceptionDuringProvision != null) {
throw provision.exceptionDuringProvision;
} else if (caught != null) {
@@ -71,7 +71,7 @@
}
}
- // TODO(user): Can this be more InternalFactory-like?
+ // TODO(sameb): Can this be more InternalFactory-like?
public interface ProvisionCallback<T> {
public T call() throws ErrorsException;
}
@@ -119,12 +119,12 @@
}
return result;
}
-
+
@Override
public Key<T> getKey() {
return key;
}
-
+
@Override
public List<DependencyAndSource> getDependencyChain() {
return context.getDependencyChain();
=======================================
--- /trunk/core/test/com/google/inject/TypeLiteralTypeResolutionTest.java
Wed Jun 29 15:02:50 2011
+++ /trunk/core/test/com/google/inject/TypeLiteralTypeResolutionTest.java
Wed Jun 29 15:04:31 2011
@@ -98,7 +98,7 @@
assertEquals(ImmutableList.<TypeLiteral<?>>of(TypeLiteral.get(String.class)),
resolver.getParameterTypes(Collection.class.getMethod("add",
Object.class)));
}
-
+
public void testGenericSupertype() {
TypeLiteral<?> resolver = TypeLiteral.get(arrayListOfString);
assertEquals(newParameterizedType(Collection.class, String.class),
@@ -123,7 +123,7 @@
return value - o.value;
}
}
-
+
public void testFields() {
TypeLiteral<?> resolver = TypeLiteral.get(hasGenericFieldsOfShort);
assertEquals(listOf(Short.class),
resolver.getFieldType(list).getType());
@@ -315,7 +315,7 @@
public List<? super T> superT;
}
- // TODO(user): tests for tricky bounded types like <T extends
Collection, Serializable>
+ // TODO(jessewilson): tests for tricky bounded types like <T extends
Collection, Serializable>
public void testEqualsAndHashCode() throws IOException {
TypeLiteral<?> a1 = TypeLiteral.get(arrayListOfString);
=======================================
--- /trunk/core/test/com/googlecode/guice/BytecodeGenTest.java Wed Jun 29
15:02:50 2011
+++ /trunk/core/test/com/googlecode/guice/BytecodeGenTest.java Wed Jun 29
15:04:31 2011
@@ -76,15 +76,15 @@
Injector injector = Guice.createInjector(interceptorModule, new
PackageVisibilityTestModule());
injector.getInstance(PublicUserOfPackagePrivate.class); // This must
pass.
}
-
+
public void testEnhancerNaming() {
Injector injector = Guice.createInjector(interceptorModule, new
PackageVisibilityTestModule());
PublicUserOfPackagePrivate pupp =
injector.getInstance(PublicUserOfPackagePrivate.class);
assertTrue(pupp.getClass().getName().startsWith(
PublicUserOfPackagePrivate.class.getName()
+ "$$EnhancerByGuice$$"));
}
-
- // TODO(user): Figure out how to test FastClass naming tests.
+
+ // TODO(sameb): Figure out how to test FastClass naming tests.
/**
* Custom URL classloader with basic visibility rules
@@ -188,7 +188,7 @@
* Note: this class must be marked as public or protected so that the
Guice
* custom classloader will intercept it. Private and implementation
classes
* are not intercepted by the custom classloader.
- *
+ *
* @see com.google.inject.internal.BytecodeGen.Visibility
*/
public static class ProxyTestImpl implements ProxyTest {
@@ -224,7 +224,7 @@
assertNotSame(testProxy.getClass().getClassLoader(),
systemClassLoader);
}
}
-
+
public void testProxyClassUnloading() {
Object testObject = Guice.createInjector(interceptorModule, testModule)
.getInstance(proxyTestClass);
=======================================
---
/trunk/extensions/grapher/src/com/google/inject/grapher/GraphingVisitor.java
Wed Jun 29 15:02:50 2011
+++
/trunk/extensions/grapher/src/com/google/inject/grapher/GraphingVisitor.java
Wed Jun 29 15:04:31 2011
@@ -46,7 +46,7 @@
* ({@link InterfaceNode}, {@link ImplementationNode}, {@link
BindingEdge}, and
* {@link DependencyEdge}) so that you can extend those interfaces and also
* extend this class, and the helper methods will all return your new
types.
- *
+ *
* @author phopk...@gmail.com (Pete Hopkins)
*
* @param <K> The type for node IDs.
@@ -60,7 +60,7 @@
implements BindingTargetVisitor<Object, Void> {
private final NodeIdFactory<K> idFactory;
-
+
private final InterfaceNode.Factory<K, N> interfaceNodeFactory;
private final ImplementationNode.Factory<K, M> implementationNodeFactory;
private final BindingEdge.Factory<K, B> bindingEdgeFactory;
@@ -85,7 +85,7 @@
/**
* Helper method to return the standard node ID for the {@link Binding}'s
* {@link Key}.
- *
+ *
* @see NodeIdFactory#getClassNodeId(Key)
*/
protected final K getClassNodeId(Binding<?> binding) {
@@ -95,7 +95,7 @@
/**
* Helper method to return the instance node ID for the {@link Binding}'s
* {@link Key}.
- *
+ *
* @see NodeIdFactory#getInstanceNodeId(Key)
*/
protected final K getInstanceNodeId(Binding<?> binding) {
@@ -173,7 +173,7 @@
* will start at the {@link Member}.
*
* @see #newDependencyEdge(Object, InjectionPoint, Dependency)
- *
+ *
* @param nodeId ID of the node that should be the tail of the
* {@link DependencyEdge}s.
* @param node An {@link ImplementationNode} to add {@link Member}s to.
@@ -248,7 +248,7 @@
* {@link BindingEdge} to the source {@link Key}. That will then be
rendered
* by {@link #visit(InstanceBinding)} as an {@link InterfaceNode}
* with a {@link BindingEdge} to the {@link String} instance.
- *
+ *
* @see #newInterfaceNode(Binding)
* @see #newBindingEdge(Object, Object,
com.google.inject.grapher.BindingEdge.Type)
*/
@@ -264,7 +264,7 @@
* Currently not displayed on the graph.
*/
public Void visit(ExposedBinding<?> binding) {
- // TODO(user): Decide if this is needed for graphing.
+ // TODO(phopkins): Decide if this is needed for graphing.
return null;
}
@@ -278,7 +278,7 @@
* which come either from {@link InjectionPoint}s (method and field) on
the
* instance, or on {@link Dependency}s the instance declares through the
* {@link HasDependencies} interface.
- *
+ *
* @see #newInterfaceNode(Binding)
* @see #newBindingEdge(Object, Object,
com.google.inject.grapher.BindingEdge.Type)
* @see #newInstanceImplementationNode(Binding, Object)
@@ -300,13 +300,13 @@
* you get from binding an interface class to an implementation class. We
* create an {@link InterfaceNode}, then draw a {@link BindingEdge} to
the
* node of the implementing class.
- *
+ *
* @see #newInterfaceNode(Binding)
* @see #newBindingEdge(Object, Object,
com.google.inject.grapher.BindingEdge.Type)
*/
public Void visit(LinkedKeyBinding<?> binding) {
newInterfaceNode(binding);
- newBindingEdge(getClassNodeId(binding),
idFactory.getClassNodeId(binding.getLinkedKey()),
+ newBindingEdge(getClassNodeId(binding),
idFactory.getClassNodeId(binding.getLinkedKey()),
BindingEdge.Type.NORMAL);
return null;
@@ -319,7 +319,7 @@
* on the graph, and instead let the {@link DependencyEdge} go straight
from
* the {@link InjectionPoint} to the node specified by
* {@link ProviderBinding#getProvidedKey()}.
- *
+ *
* @see NodeAliasFactory#newAlias(Object, Object)
*/
public Void visit(ProviderBinding<?> binding) {
@@ -332,7 +332,7 @@
/**
* Same as {@link #visit(InstanceBinding)}, but the
* {@link BindingEdge} is {@link BindingEdge.Type#PROVIDER}.
- *
+ *
* @see #newInterfaceNode(Binding)
* @see #newBindingEdge(Object, Object,
com.google.inject.grapher.BindingEdge.Type)
* @see #newInstanceImplementationNode(Binding, Object)
@@ -351,7 +351,7 @@
/**
* Same as {@link #visit(LinkedKeyBinding)}, but the
* {@link BindingEdge} is {@link BindingEdge.Type#PROVIDER}.
- *
+ *
* @see #newInterfaceNode(Binding)
* @see #newBindingEdge(Object, Object,
com.google.inject.grapher.BindingEdge.Type)
*/
@@ -367,7 +367,7 @@
* Currently not displayed on the graph.
*/
public Void visit(UntargettedBinding<?> binding) {
- // TODO(user): Decide if this is needed for graphing.
+ // TODO(phopkins): Decide if this is needed for graphing.
return null;
}
}
=======================================
---
/trunk/extensions/grapher/src/com/google/inject/grapher/TransitiveDependencyVisitor.java
Wed Jun 29 15:02:50 2011
+++
/trunk/extensions/grapher/src/com/google/inject/grapher/TransitiveDependencyVisitor.java
Wed Jun 29 15:04:31 2011
@@ -47,14 +47,14 @@
private Collection<Key<?>> visitHasDependencies(HasDependencies
hasDependencies) {
Set<Key<?>> dependencies = Sets.newHashSet();
-
+
for (Dependency<?> dependency : hasDependencies.getDependencies()) {
dependencies.add(dependency.getKey());
}
return dependencies;
}
-
+
public Collection<Key<?>> visit(ConstructorBinding<?> binding) {
return visitHasDependencies(binding);
}
@@ -64,7 +64,7 @@
}
public Collection<Key<?>> visit(ExposedBinding<?> binding) {
- // TODO(user): Figure out if this is needed for graphing.
+ // TODO(phopkins): Figure out if this is needed for graphing.
return ImmutableSet.of();
}
@@ -89,7 +89,7 @@
}
public Collection<Key<?>> visit(UntargettedBinding<?> binding) {
- // TODO(user): Figure out if this is needed for graphing.
+ // TODO(phopkins): Figure out if this is needed for graphing.
return null;
}
}
=======================================
---
/trunk/extensions/grapher/src/com/google/inject/grapher/graphviz/InterfaceNodeFactory.java
Wed Jun 29 15:02:50 2011
+++
/trunk/extensions/grapher/src/com/google/inject/grapher/graphviz/InterfaceNodeFactory.java
Wed Jun 29 15:04:31 2011
@@ -68,7 +68,7 @@
}
public void setSource(Object source) {
- // TODO(user): Show the Module on the graph, which comes from the
+ // TODO(phopkins): Show the Module on the graph, which comes from the
// class name when source is a StackTraceElement.
}
}
=======================================
---
/trunk/extensions/grapher/test/com/google/inject/grapher/demo/InjectorGrapherDemo.java
Wed Jun 29 15:02:50 2011
+++
/trunk/extensions/grapher/test/com/google/inject/grapher/demo/InjectorGrapherDemo.java
Wed Jun 29 15:04:31 2011
@@ -36,7 +36,7 @@
*/
public class InjectorGrapherDemo {
public static void main(String[] args) throws Exception {
- // TODO(user): Switch to Stage.TOOL when issue 297 is fixed.
+ // TODO(phopkins): Switch to Stage.TOOL when issue 297 is fixed.
Injector demoInjector = Guice.createInjector(Stage.DEVELOPMENT,
new BackToTheFutureModule(), new MultibinderModule());
PrintWriter out = new PrintWriter(new File(args[0]), "UTF-8");
=======================================
---
/trunk/extensions/persist/src/com/google/inject/persist/PersistService.java
Wed Jun 29 15:02:50 2011
+++
/trunk/extensions/persist/src/com/google/inject/persist/PersistService.java
Wed Jun 29 15:04:31 2011
@@ -19,7 +19,7 @@
* Persistence provider service. Use this to manage the overall
* startup and stop of the persistence module(s).
*
- * TODO(user): Integrate with Service API when appropriate.
+ * TODO(dhanji): Integrate with Service API when appropriate.
*
* @author dha...@gmail.com (Dhanji R. Prasanna)
*/
=======================================
---
/trunk/extensions/persist/src/com/google/inject/persist/jpa/JpaFinderProxy.java
Wed Jun 29 15:02:50 2011
+++
/trunk/extensions/persist/src/com/google/inject/persist/jpa/JpaFinderProxy.java
Wed Jun 29 15:04:31 2011
@@ -37,7 +37,7 @@
import org.aopalliance.intercept.MethodInvocation;
/**
- * TODO(user): Make this work!!
+ * TODO(dhanji): Make this work!!
*
* @author Dhanji R. Prasanna (dha...@gmail.com)
*/
=======================================
---
/trunk/extensions/persist/src/com/google/inject/persist/jpa/JpaLocalTxnInterceptor.java
Wed Jun 29 15:02:50 2011
+++
/trunk/extensions/persist/src/com/google/inject/persist/jpa/JpaLocalTxnInterceptor.java
Wed Jun 29 15:04:31 2011
@@ -97,7 +97,7 @@
return result;
}
- // TODO(user): Cache this method's results.
+ // TODO(dhanji): Cache this method's results.
private Transactional readTransactionMetadata(MethodInvocation
methodInvocation) {
Transactional transactional;
Method method = methodInvocation.getMethod();
=======================================
---
/trunk/extensions/persist/src/com/google/inject/persist/jpa/JpaPersistModule.java
Wed Jun 29 15:02:50 2011
+++
/trunk/extensions/persist/src/com/google/inject/persist/jpa/JpaPersistModule.java
Wed Jun 29 15:04:31 2011
@@ -87,7 +87,7 @@
/**
* Configures the JPA persistence provider with a set of properties.
- *
+ *
* @param properties A set of name value pairs that configure a JPA
persistence
* provider as per the specification.
*/
@@ -121,8 +121,8 @@
// Don't intercept non-finder methods like equals and hashcode.
if (!method.isAnnotationPresent(Finder.class)) {
- // NOTE(user): This is not ideal, we are using the invocation
handler's equals
- // and hashcode as a proxy (!) for the proxy's equals and
hashcode.
+ // NOTE(dhanji): This is not ideal, we are using the invocation
handler's equals
+ // and hashcode as a proxy (!) for the proxy's equals and
hashcode.
return method.invoke(this, args);
}
@@ -132,7 +132,7 @@
}
public Object[] getArguments() {
- return null == args ? new Object[0] : args;
+ return null == args ? new Object[0] : args;
}
public Object proceed() throws Throwable {
=======================================
---
/trunk/extensions/servlet/src/com/google/inject/servlet/ContinuingHttpServletRequest.java
Wed Jun 29 15:02:50 2011
+++
/trunk/extensions/servlet/src/com/google/inject/servlet/ContinuingHttpServletRequest.java
Wed Jun 29 15:04:31 2011
@@ -66,7 +66,7 @@
}
@Override public Cookie[] getCookies() {
- // TODO(user): Cookies themselves are mutable. Is this a problem?
+ // TODO(dhanji): Cookies themselves are mutable. Is this a problem?
return super.getCookies().clone();
}
}
=======================================
---
/trunk/extensions/servlet/src/com/google/inject/servlet/GuiceServletContextListener.java
Wed Jun 29 15:02:50 2011
+++
/trunk/extensions/servlet/src/com/google/inject/servlet/GuiceServletContextListener.java
Wed Jun 29 15:04:31 2011
@@ -26,7 +26,7 @@
* As of Guice 2.0 you can still use (your subclasses of) {@code
GuiceServletContextListener}
* class as a logical place to create and configure your injector. This
will ensure the injector
* is created when the web application is deployed.
- *
+ *
* @author Kevin Bourrillion (kev...@google.com)
* @since 2.0
*/
@@ -39,7 +39,7 @@
final ServletContext servletContext =
servletContextEvent.getServletContext();
// Set the Servletcontext early for those people who are using this
class.
- // NOTE(user): This use of the servletContext is deprecated.
+ // NOTE(dhanji): This use of the servletContext is deprecated.
GuiceFilter.servletContext = new
WeakReference<ServletContext>(servletContext);
Injector injector = getInjector();
=======================================
---
/trunk/extensions/servlet/src/com/google/inject/servlet/InternalServletModule.java
Wed Jun 29 15:02:50 2011
+++
/trunk/extensions/servlet/src/com/google/inject/servlet/InternalServletModule.java
Wed Jun 29 15:04:31 2011
@@ -83,7 +83,7 @@
// inject the pipeline into GuiceFilter so it can route requests
correctly
// Unfortunate staticness... =(
- // NOTE(user): This is maintained for legacy purposes.
+ // NOTE(dhanji): This is maintained for legacy purposes.
requestStaticInjection(GuiceFilter.class);
bind(ManagedFilterPipeline.class);
=======================================
---
/trunk/extensions/servlet/src/com/google/inject/servlet/ManagedServletPipeline.java
Wed Jun 29 15:02:50 2011
+++
/trunk/extensions/servlet/src/com/google/inject/servlet/ManagedServletPipeline.java
Wed Jun 29 15:04:31 2011
@@ -112,7 +112,7 @@
RequestDispatcher getRequestDispatcher(String path) {
final String newRequestUri = path;
- // TODO(user): check servlet spec to see if the following is legal or
not.
+ // TODO(dhanji): check servlet spec to see if the following is legal
or not.
// Need to strip query string if requested...
for (final ServletDefinition servletDefinition : servletDefinitions) {
=======================================
---
/trunk/extensions/servlet/src/com/google/inject/servlet/ServletDefinition.java
Wed Jun 29 15:02:50 2011
+++
/trunk/extensions/servlet/src/com/google/inject/servlet/ServletDefinition.java
Wed Jun 29 15:04:31 2011
@@ -66,11 +66,11 @@
this.initParams = Collections.unmodifiableMap(new HashMap<String,
String>(initParams));
this.servletInstance = servletInstance;
}
-
+
public ServletDefinition get() {
return this;
}
-
+
public <B, V> V acceptExtensionVisitor(BindingTargetVisitor<B, V>
visitor,
ProviderInstanceBinding<? extends B> binding) {
if(visitor instanceof ServletModuleTargetVisitor) {
@@ -79,7 +79,7 @@
new InstanceServletBindingImpl(initParams,
pattern,
servletInstance,
- patternMatcher));
+ patternMatcher));
} else {
return ((ServletModuleTargetVisitor<B, V>)visitor).visit(
new LinkedServletBindingImpl(initParams,
@@ -161,7 +161,7 @@
*
* @return Returns true if this servlet triggered for the given request.
Or false if
* guice-servlet should continue dispatching down the servlet
pipeline.
- *
+ *
* @throws IOException If thrown by underlying servlet
* @throws ServletException If thrown by underlying servlet
*/
@@ -220,7 +220,7 @@
return pathInfo;
}
- // NOTE(user): These two are a bit of a hack to help ensure that
request dipatcher-sent
+ // NOTE(dhanji): These two are a bit of a hack to help ensure that
request dipatcher-sent
// requests don't use the same path info that was memoized for the
original request.
private boolean isPathInfoComputed() {
return pathInfoComputed
=======================================
---
/trunk/extensions/servlet/src/com/google/inject/servlet/ServletScopes.java
Wed Jun 29 15:02:50 2011
+++
/trunk/extensions/servlet/src/com/google/inject/servlet/ServletScopes.java
Wed Jun 29 15:04:31 2011
@@ -51,7 +51,7 @@
// request is in progress.
if (null == GuiceFilter.localContext.get()) {
- // NOTE(user): We don't need to synchronize on the scope map
+ // NOTE(dhanji): We don't need to synchronize on the scope map
// unlike the HTTP request because we're the only ones who have
// a reference to it, and it is only available via a
threadlocal.
Map<String, Object> scopeMap = requestScopeContext.get();
@@ -163,14 +163,14 @@
* context available to it.
* @throws OutOfScopeException if this method is called from a
non-request
* thread, or if the request has completed.
- *
+ *
* @since 3.0
*/
public static <T> Callable<T> continueRequest(final Callable<T> callable,
final Map<Key<?>, Object> seedMap) {
Preconditions.checkArgument(null != seedMap,
"Seed map cannot be null, try passing in Collections.emptyMap()
instead.");
-
+
// Snapshot the seed map and add all the instances to our continuing
HTTP request.
final ContinuingHttpServletRequest continuingRequest =
new ContinuingHttpServletRequest(GuiceFilter.getRequest());
=======================================
---
/trunk/extensions/servlet/src/com/google/inject/servlet/UriPatternMatcher.java
Wed Jun 29 15:02:50 2011
+++
/trunk/extensions/servlet/src/com/google/inject/servlet/UriPatternMatcher.java
Wed Jun 29 15:04:31 2011
@@ -35,10 +35,10 @@
* {@code /home/*} then the path extracted will be {@code
/home}. Each pattern matcher
* implementation must decide and publish what a canonical path
represents.
*
- * NOTE(user): This method returns null for the regex pattern
matcher.
+ * NOTE(dhanji): This method returns null for the regex pattern
matcher.
*/
String extractPath(String pattern);
-
+
/** Returns the type of pattern this is. */
UriPatternType getPatternType();
}
--
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to google-guice-dev@googlegroups.com.
To unsubscribe from this group, send email to
google-guice-dev+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en.