Examples of checkExtension()


Examples of org.apache.tapestry.spec.IApplicationSpecification.checkExtension()

    private IApplicationSpecification newAppSpec()
    {
        IApplicationSpecification spec = newMock(IApplicationSpecification.class);

        expect(spec.checkExtension(Tapestry.OGNL_TYPE_CONVERTER)).andReturn(false);

        return spec;
    }

    public void test_Is_Constant_Fail()
View Full Code Here

Examples of org.apache.tapestry.spec.IApplicationSpecification.checkExtension()

    {
        ExpressionEvaluatorImpl impl = (ExpressionEvaluatorImpl)evaluator;
       
        IApplicationSpecification as = newMock(IApplicationSpecification.class);

        expect(as.checkExtension(Tapestry.OGNL_TYPE_CONVERTER)).andReturn(false);

        impl.setApplicationSpecification(as);
        impl.setContributions(Collections.EMPTY_LIST);
        impl.setNullHandlerContributions(Collections.EMPTY_LIST);
        impl.setClassFactory(new ClassFactoryImpl());
View Full Code Here

Examples of org.apache.tapestry.spec.IApplicationSpecification.checkExtension()

       
        TypeConverter tc = newMock(TypeConverter.class);

        // Training

        expect(as.checkExtension(Tapestry.OGNL_TYPE_CONVERTER)).andReturn(true);

        expect(as.getExtension(Tapestry.OGNL_TYPE_CONVERTER, TypeConverter.class)).andReturn(tc);

        replay();
View Full Code Here

Examples of org.apache.tapestry.spec.IApplicationSpecification.checkExtension()

        result.addSource(new PropertyHolderPropertySource(spec));
        result.addSource(new ServletPropertySource(servlet.getServletConfig()));
        result.addSource(new ServletContextPropertySource(servlet.getServletContext()));

        if (spec.checkExtension(EXTENSION_PROPERTY_SOURCE_NAME))
        {
            IPropertySource source =
                (IPropertySource) spec.getExtension(
                    EXTENSION_PROPERTY_SOURCE_NAME,
                    IPropertySource.class);
View Full Code Here

Examples of org.apache.tapestry.spec.IApplicationSpecification.checkExtension()

        result.addSource(new PropertyHolderPropertySource(spec));
        result.addSource(new ServletPropertySource(servlet.getServletConfig()));
        result.addSource(new ServletContextPropertySource(servlet.getServletContext()));

        if (spec.checkExtension(EXTENSION_PROPERTY_SOURCE_NAME))
        {
            IPropertySource source =
                (IPropertySource) spec.getExtension(
                    EXTENSION_PROPERTY_SOURCE_NAME,
                    IPropertySource.class);
View Full Code Here

Examples of org.apache.tapestry.spec.IApplicationSpecification.checkExtension()

        if (_root.getPage() != null) {
            if (_root.getPage().getEngine() != null) {
                IApplicationSpecification appSpec =
                        _root.getPage().getEngine().getSpecification();
                if (appSpec != null && appSpec.checkExtension(Tapestry.OGNL_TYPE_CONVERTER)) {
                    TypeConverter typeConverter =
                            (TypeConverter) appSpec.getExtension(
                                    Tapestry.OGNL_TYPE_CONVERTER,
                                    TypeConverter.class);
View Full Code Here

Examples of org.apache.tapestry.spec.IApplicationSpecification.checkExtension()

        _webInfAppLocation = _webInfLocation.getRelativeLocation(servletName + "/");

        IApplicationSpecification specification = engine.getSpecification();

        if (specification.checkExtension(Tapestry.SPECIFICATION_RESOLVER_DELEGATE_EXTENSION_NAME))
            _delegate =
                (ISpecificationResolverDelegate) engine.getSpecification().getExtension(
                    Tapestry.SPECIFICATION_RESOLVER_DELEGATE_EXTENSION_NAME,
                    ISpecificationResolverDelegate.class);
        else
View Full Code Here

Examples of org.apache.tapestry.spec.IApplicationSpecification.checkExtension()

        if (_delegate == null)
        {
            IEngine engine = cycle.getEngine();
            IApplicationSpecification spec = engine.getSpecification();

            if (spec.checkExtension(Tapestry.TEMPLATE_SOURCE_DELEGATE_EXTENSION_NAME))
                _delegate =
                    (ITemplateSourceDelegate) spec.getExtension(
                        Tapestry.TEMPLATE_SOURCE_DELEGATE_EXTENSION_NAME,
                        ITemplateSourceDelegate.class);
            else
View Full Code Here

Examples of org.apache.tapestry.spec.IApplicationSpecification.checkExtension()

        HttpServletRequest request)
        throws IOException
    {
        IApplicationSpecification spec = servlet.getApplicationSpecification();

        if (spec.checkExtension(Tapestry.MULTIPART_DECODER_EXTENSION_NAME))
            return (IMultipartDecoder) spec.getExtension(
                Tapestry.MULTIPART_DECODER_EXTENSION_NAME,
                IMultipartDecoder.class);

        return DefaultMultipartDecoder.getSharedInstance();
View Full Code Here

Examples of org.apache.tapestry.spec.IApplicationSpecification.checkExtension()

            return _decodedRequest;

        IApplicationSpecification spec = _servlet.getApplicationSpecification();
        IRequestDecoder decoder = null;

        if (!spec.checkExtension(Tapestry.REQUEST_DECODER_EXTENSION_NAME))
            decoder = new DefaultRequestDecoder();
        else
            decoder =
                (IRequestDecoder) spec.getExtension(
                    Tapestry.REQUEST_DECODER_EXTENSION_NAME,
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.