Package com.cognifide.slice.api.context

Examples of com.cognifide.slice.api.context.ContextProvider


  private <T> T get(Class<T> type, ExecutionContextImpl executionItem) {
    return get(Key.get(type), executionItem);
  }

  private <T> T get(Key<T> key, ExecutionContextImpl executionItem) {
    final ContextProvider oldContextProvider = contextScope.getContextProvider();
    contextScope.setContextProvider(contextProvider);

    if ((executionItem.getResource() == null) && (executionItem.getPath() != null)) {
      executionItem.setPath(currentExecutionContext.getAbsolutePath(executionItem.getPath()));
    }
View Full Code Here


   *
   * @return current ContextProvider
   */
  @Override
  public ContextProvider popContextProvider() {
    final ContextProvider result = contextScope.getContextProvider();
    contextScope.setContextProvider(contextProviders.pop());
    return result;
  }
View Full Code Here

TOP

Related Classes of com.cognifide.slice.api.context.ContextProvider

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.