Package org.apache.tapestry.resolver

Examples of org.apache.tapestry.resolver.ComponentSpecificationResolver

@author Howard Lewis Ship @version $Id: ComponentSpecificationResolver.java 243791 2004-02-19 17:38:13Z hlship $ @since 3.0

        IEngine engine = cycle.getEngine();

        _specificationSource = engine.getSpecificationSource();
        _resolver = engine.getResourceResolver();
        _enhancer = engine.getComponentClassEnhancer();
        _componentResolver = new ComponentSpecificationResolver(cycle);

        RequestContext context = cycle.getRequestContext();

        // Need the location of the servlet within the context as the basis
        // for building relative context asset paths.
View Full Code Here


        IEngine engine = cycle.getEngine();

        _specificationSource = engine.getSpecificationSource();
        _resolver = engine.getResourceResolver();
        _enhancer = engine.getComponentClassEnhancer();
        _componentResolver = new ComponentSpecificationResolver(cycle);

        RequestContext context = cycle.getRequestContext();

        // Need the location of the servlet within the context as the basis
        // for building relative context asset paths.
View Full Code Here

        private IRequestCycle _cycle;

        ParserDelegate(IComponent component, IRequestCycle cycle)
        {
            _component = component;
            _resolver = new ComponentSpecificationResolver(cycle);
            _cycle = cycle;
        }
View Full Code Here

        private IRequestCycle _cycle;

        ParserDelegate(IComponent component, IRequestCycle cycle)
        {
            _component = component;
            _resolver = new ComponentSpecificationResolver(cycle);
            _cycle = cycle;
        }
View Full Code Here

        private IRequestCycle _cycle;

        ParserDelegate(IComponent component, IRequestCycle cycle)
        {
            _component = component;
            _resolver = new ComponentSpecificationResolver(cycle);
            _cycle = cycle;
        }
View Full Code Here

        IEngine engine = cycle.getEngine();

        _specificationSource = engine.getSpecificationSource();
        _resolver = engine.getResourceResolver();
        _enhancer = engine.getComponentClassEnhancer();
        _componentResolver = new ComponentSpecificationResolver(cycle);

        RequestContext context = cycle.getRequestContext();

        // Need the location of the servlet within the context as the basis
        // for building relative context asset paths.
View Full Code Here

     *
     */
    @Test(dataProvider="FlowAwareTemplateSourceDelegate")
    public void testSimple2Flow(FlowAwareTemplateSourceDelegate delegate) {
        String componentName = "comp#0";
        ComponentSpecificationResolver csr = createMock(ComponentSpecificationResolver.class);
        delegate.setComponentSpecificationResolver(csr);
        IComponentSpecification compSpec = createSimpleCompSpec(componentName, FullFlowComponent.class);

        trainUsingMemoryLocation(compSpec);

        IComponent component = createMock(IComponent.class);
        expect(component.getSpecification()).andReturn(compSpec);
        expect(component.getNamespace()).andReturn(null).anyTimes();
        expect(component.getLocation()).andReturn(null);
        FlowImplementor flow = createFlow2(componentName, 1);
        trainGetFlowForComponent(componentName, flow, delegate);
        trainParser(delegate);
        IRequestCycle cycle = createMock(IRequestCycle.class);
        csr.resolve(cycle, null, componentName, null);
        expect(csr.getSpecification()).andReturn(compSpec);
        expect(compSpec.getComponentClassName()).andReturn(FakeComponent.class.getName());

        programFlowBorder(csr, cycle);

        replay(component, csr, compSpec);
View Full Code Here

     *
     */
    @Test(dataProvider="FlowAwareTemplateSourceDelegate")
    public void testFlowWithProperties(FlowAwareTemplateSourceDelegate delegate) {
        String componentName = "comp#0";
        ComponentSpecificationResolver csr = createMock(ComponentSpecificationResolver.class);
        delegate.setComponentSpecificationResolver(csr);
        IComponentSpecification compSpec = createSimpleCompSpec(componentName, FullFlowComponent.class);

        trainUsingMemoryLocation(compSpec);

        IComponent component = createMock(IComponent.class);
        expect(component.getSpecification()).andReturn(compSpec);
        expect(component.getNamespace()).andReturn(null).anyTimes();
        expect(component.getLocation()).andReturn(null);
        FlowImplementor flow = createFlowWithProperties(componentName);
        trainGetFlowForComponent(componentName, flow, delegate);
        trainParser(delegate);
        IRequestCycle cycle = createMock(IRequestCycle.class);
        csr.resolve(cycle, null, componentName, null);
        expect(csr.getSpecification()).andReturn(compSpec);
        expect(compSpec.getComponentClassName()).andReturn(FakeComponent.class.getName()).anyTimes();

        programFlowBorder(csr, cycle);

        replay(component, csr, compSpec, cycle);
View Full Code Here

        IEngine engine = cycle.getEngine();

        _specificationSource = engine.getSpecificationSource();
        _resolver = engine.getResourceResolver();
        _enhancer = engine.getComponentClassEnhancer();
        _componentResolver = new ComponentSpecificationResolver(cycle);

        RequestContext context = cycle.getRequestContext();

        // Need the location of the servlet within the context as the basis
        // for building relative context asset paths.
View Full Code Here

        IEngine engine = cycle.getEngine();

        _specificationSource = engine.getSpecificationSource();
        _resolver = engine.getResourceResolver();
        _enhancer = engine.getComponentClassEnhancer();
        _componentResolver = new ComponentSpecificationResolver(cycle);

        RequestContext context = cycle.getRequestContext();

        // Need the location of the servlet within the context as the basis
        // for building relative context asset paths.
View Full Code Here

TOP

Related Classes of org.apache.tapestry.resolver.ComponentSpecificationResolver

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.