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

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


  public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain)
      throws IOException, ServletException {
    final Context previous = contexts.get();

    try {
      final Context context = (new SliceContextFactory()).getServletRequestContext(request, response);
      contexts.set(context);
      chain.doFilter(request, response);
    } finally {
      contexts.set(previous);
    }
View Full Code Here


  public void doFilter(final ServletRequest request, final ServletResponse response, final FilterChain chain)
      throws IOException, ServletException {
    final Context previous = contexts.get();

    try {
      final Context context = (new SliceContextFactory()).getServletRequestContext(request, response);
      contexts.set(context);
      chain.doFilter(request, response);
    } finally {
      contexts.set(previous);
    }
View Full Code Here

      }
    };
  }

  private Context createContext(String injectorName, ServletRequest request, ServletResponse response) {
    return (new SliceContextFactory()).getServletRequestContext(injectorName, request, response);
  }
View Full Code Here

    }
    return new ConstantContextProvider(context);
  }

  private Context createContext(String injectorName, ServletRequest request, ServletResponse response) {
    return (new SliceContextFactory()).getServletRequestContext(injectorName, request, response);
  }
View Full Code Here

TOP

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

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.