Package com.cognifide.slice.core.internal.context

Examples of com.cognifide.slice.core.internal.context.MapContext


   * Returned Context will contain entry for ResourceResolver.class. No ServletRequest.class or
   * ServletResponse.class will be available for injector.
   */
  @Override
  public Context getResourceResolverContext(final ResourceResolver resourceResolver) {
    final MapContext mapContex = new MapContext();
    mapContex.put(Key.get(ResourceResolver.class), resourceResolver);

    return mapContex;
  }
View Full Code Here


   * Returned Context will contain entry for ResourceResolver.class. No ServletRequest.class or
   * ServletResponse.class will be available for injector.
   */
  @Override
  public Context getResourceResolverContext(final ResourceResolver resourceResolver) {
    final MapContext mapContex = new MapContext();
    mapContex.put(Key.get(ResourceResolver.class), resourceResolver);

    return mapContex;
  }
View Full Code Here

TOP

Related Classes of com.cognifide.slice.core.internal.context.MapContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.