Examples of resolve()


Examples of com.asakusafw.runtime.util.cache.FileCacheRepository.resolve()

                        latch.countDown();
                        if (latch.await(5, TimeUnit.SECONDS) == false) {
                            throw new TimeoutException();
                        }
                        LOG.info("Start: resolve @" + label);
                        Path result = cache.resolve(path);

                        LOG.info("Finish: resolve @" + label);
                        return result;
                    }
                }));
View Full Code Here

Examples of com.asakusafw.runtime.util.cache.HadoopFileCacheRepository.resolve()

        LockProvider<Path> locks = new LocalFileLockProvider<Path>(folder.newFolder());
        RetryStrategy retrier = new ConstantRetryStrategy();
        HadoopFileCacheRepository cache = new HadoopFileCacheRepository(configuration, path(cacheRepo), locks, retrier);

        File source = put(folder.newFile(), "Hello, world!");
        Path resolved = cache.resolve(path(source));

        assertThat(get(file(resolved)), is("Hello, world!"));
        assertThat(resolved, is(not(path(source))));
        assertThat(containsFile(cacheRepo, file(resolved)), is(true));
    }
View Full Code Here

Examples of com.asakusafw.utils.java.model.util.ImportBuilder.resolve()

            ImportBuilder ib = context.importer;
            Jsr269 conv = new Jsr269(f);
            List<Expression> parameterTypeLiterals = Lists.create();
            for (VariableElement parameter : helperMethod.getParameters()) {
                TypeMirror type = context.environment.getErasure(parameter.asType());
                parameterTypeLiterals.add(new TypeBuilder(f, ib.resolve(conv.convert(type)))
                    .dotClass()
                    .toExpression());
            }
            Expression attribute = new TypeBuilder(f, ib.toType(OperatorHelper.class))
                .newObject(new Expression[] {
View Full Code Here

Examples of com.asakusafw.yaess.core.CommandScript.resolve()

                            context.getPhase().getSymbol(),
                            exec.getModuleName(),
                            exec.getId(),
                            profileName));
                }
                results.add(new ScriptJob<CommandScript>(exec.resolve(context, handler), handler));
                break;
            }
            case HADOOP: {
                HadoopScript exec = (HadoopScript) execution;
                results.add(new ScriptJob<HadoopScript>(exec.resolve(context, hadoopHandler), hadoopHandler));
View Full Code Here

Examples of com.asakusafw.yaess.core.HadoopScript.resolve()

                results.add(new ScriptJob<CommandScript>(exec.resolve(context, handler), handler));
                break;
            }
            case HADOOP: {
                HadoopScript exec = (HadoopScript) execution;
                results.add(new ScriptJob<HadoopScript>(exec.resolve(context, hadoopHandler), hadoopHandler));
                break;
            }
            default:
                throw new AssertionError(MessageFormat.format(
                        "Unknown execution script: {0}",
View Full Code Here

Examples of com.bbn.openmap.proj.coords.MGRSPoint.resolve()

                llp1);
        llpoints[6] = llp1.getLatitude();
        llpoints[7] = llp1.getLongitude();

        MGRSPoint mgrs = new MGRSPoint(northing, easting, zone_number, zone_letter);
        mgrs.resolve(mgrsBasePoint.getAccuracy());
        // MGRSPoint.MGRStoLL(mgrs, ellipsoid, llp1);
        String mgrsString = mgrs.getMGRS();

        if (Debug.debugging("utmgriddetail"))
            Debug.output(" - assigning " + mgrsString + " to poly with "
View Full Code Here

Examples of com.buschmais.jqassistant.plugin.java.impl.store.resolver.PackageDescriptorResolver.resolve()

  @Override
  public PackageDescriptor scanDirectory(Store store, String name) throws IOException {
    String packageName = name.replaceAll("/", ".");
    PackageDescriptorResolver packageDescriptorResolver = new PackageDescriptorResolver(store);
    return packageDescriptorResolver.resolve(packageName);
  }
}
View Full Code Here

Examples of com.caucho.config.inject.InjectManager.resolve()

        beanSet = webBeans.getBeans(destinationType);

      Object destComp = null;

      if (beanSet.size() > 0) {
        Bean destBean = webBeans.resolve(beanSet);
        CreationalContext env = webBeans.createCreationalContext(destBean);

        destComp
          = webBeans.getReference(destBean, destBean.getBeanClass(), env);
      }
View Full Code Here

Examples of com.cloudbees.sdk.maven.ResolvedDependenciesCache.resolve()

            protected File resolveArtifact(Artifact a) throws ArtifactResolutionException {
                return getRepositoryService().resolveArtifact(a).getArtifact().getFile();
            }
        };

        List<File> jars= cache.resolve(new GAV("com.cloudbees.sdk", "bees-driver", "LATEST"));

        File tools = findToolsJar();
        if (tools != nulljars.add(tools);

        // we don't let this classloader delegate to the 2nd stage boot classloader
View Full Code Here

Examples of com.codingcrayons.aspectfaces.variableResolver.TagVariableResolver.resolve()

  private StringBuilder initUIFragment(String tagName, StringBuilder uiFragment, List<Variable> localVars)
    throws TemplateFileAccessException, EvaluatorException, TagParserException {

    TagVariableResolver vr = new TagVariableResolver();
    try {
      uiFragment = vr.resolve(tagName, uiFragment, AFWeaver.getOpenVariableBoundaryIdentifier(),
        AFWeaver.getCloseVariableBoundaryIdentifier(), localVars);
    } catch (TagParserException e) {
      throw new EvaluatorException(e.getMessage(), e);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.