Examples of PropertyResolver


Examples of org.jberet.job.model.PropertyResolver

        if (originalToRestart != null) {
            this.originalToRestart = originalToRestart;
            this.jobExecution.setRestartPosition(originalToRestart.getRestartPosition());
        }

        final PropertyResolver resolver = new PropertyResolver();
        resolver.setJobParameters(jobExecution.getJobParameters());
        resolver.resolve(jobExecution.getSubstitutedJob());
        batchArtifacts = ArchiveXmlLoader.loadBatchXml(classLoader);
        createJobListeners();
    }
View Full Code Here

Examples of org.jberet.job.model.PropertyResolver

            final AbstractRunner<StepContextImpl> runner1;
            final StepContextImpl stepContext1 = batchContext.clone();
            final Step step1 = stepContext1.getStep();

            final PropertyResolver resolver = new PropertyResolver();
            if (partitionIndex >= 0 && partitionIndex < partitionProperties.length) {
                resolver.setPartitionPlanProperties(partitionProperties[partitionIndex]);

                //associate this partition represented by this StepExecutionImpl with this partition properties index.  If this
                //partition fails or is stopped, the restart process can select this partition properties.
                stepContext1.getStepExecution().setPartitionId(partitionIndex);
            } else {
                //some partitioned steps may not have any partition properties
                stepContext1.getStepExecution().setPartitionId(i);
            }
            resolver.setResolvePartitionPlanProperties(true);
            resolver.resolve(step1);

            if (isRestartNotOverride) {
                stepContext1.setPersistentUserData(partitionExecution.getPersistentUserData());
                stepContext1.getStepExecution().setReaderCheckpointInfo(partitionExecution.getReaderCheckpointInfo());
                stepContext1.getStepExecution().setWriterCheckpointInfo(partitionExecution.getWriterCheckpointInfo());
View Full Code Here

Examples of org.jberet.util.PropertyResolver

        if (originalToRestart != null) {
            this.originalToRestart = originalToRestart;
            this.jobExecution.setRestartPoint(originalToRestart.getRestartPoint());
        }

        PropertyResolver resolver = new PropertyResolver();
        resolver.setJobParameters(jobExecution.getJobParameters());
        resolver.resolve(jobExecution.getSubstitutedJob());
        createJobListeners();
    }
View Full Code Here

Examples of org.jboss.metadata.property.PropertyResolver

     */
    @Override
    public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
        final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
        boolean resolveProperties = Util.shouldResolveJBoss(deploymentUnit);
        final PropertyResolver propertyResolver = deploymentUnit.getAttachment(org.jboss.as.ee.metadata.property.Attachments.FINAL_PROPERTY_RESOLVER);

        final Set<VirtualFile> files = dataSources(deploymentUnit);

        for (VirtualFile f : files) {
            InputStream xmlStream = null;
View Full Code Here

Examples of org.jdesktop.wonderland.utils.PropertyUtil.PropertyResolver

        // list of resolvers to use
        List<PropertyResolver> resolvers = new ArrayList<PropertyResolver>();
    
        for (Properties p : props) {
            final Properties pFinal = p;
            resolvers.add(new PropertyResolver() {
                public String getValue(String key) {
                    return pFinal.getProperty(key);
               
            });
        }
View Full Code Here

Examples of org.jdesktop.wonderland.utils.PropertyUtil.PropertyResolver

    {
        // list of resolvers to use
        List<PropertyResolver> resolvers = new ArrayList<PropertyResolver>();
       
        // first, try the system properties
        resolvers.add(new PropertyResolver() {
            public String getValue(String key) {
                return System.getProperty(prop);
            }          
        });
       
        // next try the servlet context
        resolvers.add(new PropertyResolver() {
           public String getValue(String key) {
               return context.getInitParameter(prop);
           }
        });
       
View Full Code Here

Examples of org.ops4j.util.property.PropertyResolver

        PropertiesPropertyResolver resolver = new PropertiesPropertyResolver(System.getProperties());
        return new ConfigurationImpl(resolver);
    }

    public static ConfigurationImpl newInstance(ConfigurationAdmin admin, BundleContext context) {
        PropertyResolver resolver =
                new DictionaryPropertyResolver(getProperties(admin, ServiceConstants.PID),
                        new DictionaryPropertyResolver(getProperties(admin, "org.ops4j.pax.url.mvn"),
                                new BundleContextPropertyResolver(context)));

        return new ConfigurationImpl(resolver);
View Full Code Here

Examples of org.springframework.core.env.PropertyResolver

        final String id = "test";
        final String realm = "realm";
        final String consumerKey = "consumerKey";
        final String secretKey = "secretKey";

        PropertyResolver resolver = mock(PropertyResolver.class);
        when(resolver.getProperty(eq("org.jasig.rest.interceptor.oauth." + id + ".realm"))).thenReturn(realm);
        when(resolver.getProperty(eq("org.jasig.rest.interceptor.oauth." + id + ".consumerKey"))).thenReturn(consumerKey);
        when(resolver.getProperty(eq("org.jasig.rest.interceptor.oauth." + id + ".secretKey"))).thenReturn(secretKey);

        // holder for the headers...
        HttpHeaders headers = new HttpHeaders();

        // Mock guts of RestTemplate so no need to actually hit the web...
View Full Code Here

Examples of org.switchyard.common.property.PropertyResolver

    /**
     * Constructs an expression mapping from a mapping model.
     * @param mappingModel the mapping model
     */
    public ExpressionMapping(MappingModel mappingModel) {
        PropertyResolver propertyResolver = mappingModel.getModelConfiguration().getPropertyResolver();
        _propertyResolver = propertyResolver != null ? propertyResolver : SystemAndTestPropertyResolver.INSTANCE;
        _from = Strings.trimToNull(mappingModel.getFrom());
        _to = Strings.trimToNull(mappingModel.getTo());
        _output = mappingModel instanceof InputModel ? Strings.trimToNull(((InputModel)mappingModel).getOutput()) : null;
    }
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.