Examples of extractDependency()


Examples of com.volantis.shared.dependency.DependencyContext.extractDependency()

            throws SAXException {

        XMLPipelineContext pipelineContext = dynamicProcess.getPipelineContext();
        DependencyContext context = pipelineContext.getDependencyContext();

        Dependency dependency = context.extractDependency();

        context.popDependencyTracker();

        XMLProcess target = getTargetProcess(dynamicProcess);
View Full Code Here

Examples of com.volantis.shared.dependency.DependencyContext.extractDependency()

            final Dependency dependency;
            if (fixedExpiryMode) {
                dependency = new FixedTTLDependency(
                    clock, cacheControl.getTimeToLive());
            } else {
                dependency = dependencyContext.extractDependency();
            }
            dependencyContext.addDependency(dependency);

            // Set the result to cachable based on the inErrorRecoveryMode
            // state.
View Full Code Here

Examples of com.volantis.shared.dependency.DependencyContext.extractDependency()

                    environmentContext.getPipelineContext();
                final DependencyContext dependencyContext =
                    pipelineContext.getDependencyContext();
                if (dependencyContext.isTrackingDependencies()) {
                    final Dependency dependency =
                        dependencyContext.extractDependency();
                    if (dependency.getCacheability() == Cacheability.CACHEABLE) {
                        cachingDirectives.setMaxAge(dependency.getTimeToLive(),
                            ResponseCachingDirectives.PRIORITY_NORMAL);
                        cachingDirectives.enable();
                    } else {
View Full Code Here

Examples of com.volantis.xml.expression.impl.DependencyTracker.extractDependency()

        DependencyTracker tracker =
                new DependencyTrackerImpl();
        tracker.addDependency(dependency1Mock);
        tracker.addDependency(dependency2Mock);

        Dependency aggregate = tracker.extractDependency();

        Cacheability cacheability = aggregate.getCacheability();
        assertEquals(Cacheability.UNCACHEABLE, cacheability);

        Period timeToLive = aggregate.getTimeToLive();
View Full Code Here

Examples of com.volantis.xml.expression.impl.DependencyTracker.extractDependency()

        //   Test Expectations
        // =====================================================================

        DependencyTracker tracker =
                new DependencyTrackerImpl();
        Dependency dependency = tracker.extractDependency();
        assertEquals(Cacheability.CACHEABLE, dependency.getCacheability());
        assertEquals(Period.INDEFINITELY, dependency.getTimeToLive());
        TestCaseAbstract.assertEquals(Freshness.FRESH, dependency.freshness(contextMock));
        try {
            dependency.revalidate(contextMock);
View Full Code Here

Examples of com.volantis.xml.expression.impl.DependencyTracker.extractDependency()

        // had a single dependency added.
        tracker = new DependencyTrackerImpl();
        tracker.addDependency(dependency);
        tracker.addDependency(dependency1Mock);

        dependency = tracker.extractDependency();
        assertSame(dependency1Mock, dependency);
    }

    /**
     * Ensure that if only a single dependency is added to the
View Full Code Here

Examples of com.volantis.xml.expression.impl.DependencyTracker.extractDependency()

        // =====================================================================

        DependencyTracker tracker =
                new DependencyTrackerImpl();
        tracker.addDependency(dependency1Mock);
        Dependency aggregate = tracker.extractDependency();
        assertSame(dependency1Mock, aggregate);
    }

    /**
     * Ensure that dependencies added to the aggregator are
View Full Code Here

Examples of com.volantis.xml.expression.impl.DependencyTrackerImpl.extractDependency()

        //   Test Expectations
        // =====================================================================

        DependencyTracker tracker =
                new DependencyTrackerImpl();
        Dependency dependency = tracker.extractDependency();
        assertEquals(Cacheability.CACHEABLE, dependency.getCacheability());
        assertEquals(Period.INDEFINITELY, dependency.getTimeToLive());
        TestCaseAbstract.assertEquals(Freshness.FRESH, dependency.freshness(contextMock));
        try {
            dependency.revalidate(contextMock);
View Full Code Here

Examples of com.volantis.xml.expression.impl.DependencyTrackerImpl.extractDependency()

        // had a single dependency added.
        tracker = new DependencyTrackerImpl();
        tracker.addDependency(dependency);
        tracker.addDependency(dependency1Mock);

        dependency = tracker.extractDependency();
        assertSame(dependency1Mock, dependency);
    }

    /**
     * Ensure that if only a single dependency is added to the
View Full Code Here

Examples of com.volantis.xml.expression.impl.DependencyTrackerImpl.extractDependency()

        // =====================================================================

        DependencyTracker tracker =
                new DependencyTrackerImpl();
        tracker.addDependency(dependency1Mock);
        Dependency aggregate = tracker.extractDependency();
        assertSame(dependency1Mock, aggregate);
    }

    /**
     * Ensure that dependencies added to the aggregator are
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.