Examples of resolve()


Examples of org.terasology.module.DependencyResolver.resolve()

        ModuleManager moduleManager = CoreRegistry.get(ModuleManager.class);
        BindsConfig config = new BindsConfig();
        DependencyResolver resolver = new DependencyResolver(moduleManager.getRegistry());
        for (Name moduleId : moduleManager.getRegistry().getModuleIds()) {
            if (moduleManager.getRegistry().getLatestModuleVersion(moduleId).isCodeModule()) {
                ResolutionResult result = resolver.resolve(moduleId);
                if (result.isSuccess()) {
                    try (ModuleEnvironment environment = moduleManager.loadEnvironment(result.getModules(), false)) {
                        config.addDefaultsFor(moduleId, environment.getTypesAnnotatedWith(RegisterBindButton.class, new FromModule(environment, moduleId)));
                    }
                }
View Full Code Here

Examples of org.thechiselgroup.choosel.core.client.visualization.model.VisualItemValueResolver.resolve()

        Resource resource = createResource(1);

        VisualItemValueResolver delegatingResolver = mockDelegatingResolver(slots[1]);
        when(
                delegatingResolver.resolve(any(VisualItem.class),
                        any(VisualItemValueResolverContext.class))).thenReturn(
                "a1", "a2");

        underTest.setResolver(slots[0], delegatingResolver);
        underTest.setResolver(slots[1], mockResolverThatCanAlwaysResolve());
View Full Code Here

Examples of org.threeten.bp.temporal.TemporalField.resolve()

        int changes = 0;
        outer:
        while (changes < 100) {
            for (Map.Entry<TemporalField, Long> entry : fieldValues.entrySet()) {
                TemporalField targetField = entry.getKey();
                TemporalAccessor resolvedObject = targetField.resolve(fieldValues, this, resolverStyle);
                if (resolvedObject != null) {
                    if (resolvedObject instanceof ChronoZonedDateTime) {
                        ChronoZonedDateTime<?> czdt = (ChronoZonedDateTime<?>) resolvedObject;
                        if (zone == null) {
                            zone = czdt.getZone();
View Full Code Here

Examples of org.torquebox.core.component.ComponentResolver.resolve()

    public void startAsync(StartContext context) throws Exception {
        this.runtime = this.poolInjector.getValue().borrowRuntime( getDestinationPattern() );

        try {
            ComponentResolver componentResolver = this.componentResolverInjector.getValue();
            XAStompletComponent stomplet = (XAStompletComponent) componentResolver.resolve( runtime );

            SimpleStompletContainer container = containerInjector.getValue();
            container.addStomplet( this.destinationPattern, stomplet, this.config );
        } catch (Exception e) {
            this.poolInjector.getValue().returnRuntime( this.runtime );
View Full Code Here

Examples of org.uberfire.java.nio.file.Path.resolve()

    @Test
    public void testIndexTestScenario() throws IOException, InterruptedException {
        //Don't ask, but we need to write a single file first in order for indexing to work
        final Path basePath = getDirectoryPath().resolveSibling( "someNewOtherPath" );
        ioService().write( basePath.resolve( "dummy" ),
                           "<none>" );

        //Add test files
        final Path path1 = basePath.resolve( "scenario1.scenario" );
        final Scenario model1 = TestScenarioFactory.makeTestScenarioWithVerifyFact( "org.drools.workbench.screens.testscenario.backend.server.indexing",
View Full Code Here

Examples of org.useware.kernel.gui.behaviour.StatementContext.resolve()

                    {
                        @Override
                        public String resolve(String key)
                        {
                            // fallback strategy for values that are created at runtime, i.e. datasource={selected.entity}
                            String resolved = delegate.resolve(key);
                            if (null == resolved) { resolved = "*"; }
                            return resolved;
                        }

                        @Override
View Full Code Here

Examples of org.wso2.carbon.discovery.client.DiscoveryClient.resolve()

        String proxyURL = properties.getProperty(DISCOVERY_PROXY_URL);
        if (proxyURL == null) {
            throw new DiscoveryException("The discovery proxy URL is not specified");
        }
        DiscoveryClient client = new DiscoveryClient(cfgCtx, proxyURL);
        TargetService service = client.resolve(uuid);
        client.cleanup();
        return getEndpointFromService(service, protocol);
    }
}
View Full Code Here

Examples of org.wso2.carbon.mediation.dependency.mgt.DependencyResolver.resolve()

        List<ConfigurationObject> providers = new ArrayList<ConfigurationObject>();
        CacheMediator cacheMediator = (CacheMediator) m;
        if (cacheMediator.getOnCacheHitSequence() != null) {
            DependencyResolver resolver = DependencyResolverFactory.getInstance().
                    getResolver(cacheMediator.getOnCacheHitSequence());
            List<ConfigurationObject> sequenceProviders = resolver.resolve(
                    cacheMediator.getOnCacheHitSequence());
            for (ConfigurationObject o : sequenceProviders) {
                addProvider(o, providers);
            }
        } else if (cacheMediator.getOnCacheHitRef() != null) {
View Full Code Here

Examples of org.wso2.securevault.PasswordManager.resolve()

                            String key = eventSource.getName() + "." + propName;

                            if (passwordManager.isInitialized()
                                    && passwordManager.isTokenProtected(key)) {
                                eventSource.putConfigurationProperty(propName, propValue);
                                propValue = passwordManager.resolve(propValue);
                            }

                            manager.addProperty(propName, propValue);
                        }
                    }
View Full Code Here

Examples of org.wso2.securevault.SecretResolver.resolve()

                    }
                }
                String paramName = paramEle.getAttribute("name");
                if (secretResolver != null && secretResolver.isInitialized() &&
                        secretResolver.isTokenProtected("transports." + transportName + "." + paramName)) {
                    value = secretResolver.resolve("transports." + transportName + "." + paramName);
                }
                value = replaceSystemProperty(value);
                transportParameters.put(paramName, new TransportParameter(paramName, value));
            }
            transportImpl.setName(transportName);
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.