Package org.apache.tapestry.spec

Examples of org.apache.tapestry.spec.IApplicationSpecification


        __CLOVER_225_0.S[5094]++;expectElement("application");

        __CLOVER_225_0.S[5095]++;String name = getAttribute("name");
        __CLOVER_225_0.S[5096]++;String engineClassName = getAttribute("engine-class");

        __CLOVER_225_0.S[5097]++;IApplicationSpecification as = _factory.createApplicationSpecification();

        __CLOVER_225_0.S[5098]++;as.setName(name);

        __CLOVER_225_0.S[5099]++;if ((((Tapestry.isNonBlank(engineClassName)) && (++__CLOVER_225_0.CT[908] != 0)) || (++__CLOVER_225_0.CF[908] == 0))){
            __CLOVER_225_0.S[5100]++;as.setEngineClassName(engineClassName);}

        __CLOVER_225_0.S[5101]++;_rootObject = as;

        __CLOVER_225_0.S[5102]++;push(_elementName, as, STATE_LIBRARY_SPECIFICATION);
    } finally { }}
View Full Code Here


    public IMonitor getMonitor(RequestContext context)
    {try { __CLOVER_71_0.M[2972]++;
        __CLOVER_71_0.S[12198]++;if ((((_monitorFactory == null) && (++__CLOVER_71_0.CT[2094] != 0)) || (++__CLOVER_71_0.CF[2094] == 0))){
        {
            __CLOVER_71_0.S[12199]++;IApplicationSpecification spec = getSpecification();

            __CLOVER_71_0.S[12200]++;if ((((spec.checkExtension(Tapestry.MONITOR_FACTORY_EXTENSION_NAME)) && (++__CLOVER_71_0.CT[2095] != 0)) || (++__CLOVER_71_0.CF[2095] == 0))){
                __CLOVER_71_0.S[12201]++;_monitorFactory = (IMonitorFactory) spec.getExtension(
                        Tapestry.MONITOR_FACTORY_EXTENSION_NAME,
                        IMonitorFactory.class);}
            else{
                __CLOVER_71_0.S[12202]++;_monitorFactory = DefaultMonitorFactory.SHARED;}
        }}
View Full Code Here

    public IMonitor getMonitor(RequestContext context)
    {try { __CLOVER_71_0.M[377]++;
        __CLOVER_71_0.S[1555]++;if ((((_monitorFactory == null) && (++__CLOVER_71_0.CT[297] != 0)) || (++__CLOVER_71_0.CF[297] == 0))){
        {
            __CLOVER_71_0.S[1556]++;IApplicationSpecification spec = getSpecification();

            __CLOVER_71_0.S[1557]++;if ((((spec.checkExtension(Tapestry.MONITOR_FACTORY_EXTENSION_NAME)) && (++__CLOVER_71_0.CT[298] != 0)) || (++__CLOVER_71_0.CF[298] == 0))){
                __CLOVER_71_0.S[1558]++;_monitorFactory = (IMonitorFactory) spec.getExtension(
                        Tapestry.MONITOR_FACTORY_EXTENSION_NAME,
                        IMonitorFactory.class);}
            else{
                __CLOVER_71_0.S[1559]++;_monitorFactory = DefaultMonitorFactory.SHARED;}
        }}
View Full Code Here

        __CLOVER_52_0.S[1215]++;if ((((_root.getPage() != null) && (++__CLOVER_52_0.CT[237] != 0)) || (++__CLOVER_52_0.CF[237] == 0))){
        {
            __CLOVER_52_0.S[1216]++;if ((((_root.getPage().getEngine() != null) && (++__CLOVER_52_0.CT[238] != 0)) || (++__CLOVER_52_0.CF[238] == 0))){
            {
                __CLOVER_52_0.S[1217]++;IApplicationSpecification appSpec = _root.getPage().getEngine().getSpecification();

                __CLOVER_52_0.S[1218]++;if ((((appSpec != null && appSpec.checkExtension(Tapestry.OGNL_TYPE_CONVERTER)) && (++__CLOVER_52_0.CT[239] != 0)) || (++__CLOVER_52_0.CF[239] == 0))){
                {
                    __CLOVER_52_0.S[1219]++;TypeConverter typeConverter =
                        (TypeConverter) appSpec.getExtension(
                            Tapestry.OGNL_TYPE_CONVERTER,
                            TypeConverter.class);

                    __CLOVER_52_0.S[1220]++;Ognl.setTypeConverter(_context, typeConverter);
                }}
View Full Code Here

    public DefaultPropertySource(RequestContext context)
    {try { __CLOVER_78_0.M[454]++;
        __CLOVER_78_0.S[1972]++;DelegatingPropertySource result = new DelegatingPropertySource();

        __CLOVER_78_0.S[1973]++;HttpServlet servlet = context.getServlet();
        __CLOVER_78_0.S[1974]++;IApplicationSpecification spec = context.getApplicationSpecification();

        __CLOVER_78_0.S[1975]++;result.addSource(new PropertyHolderPropertySource(spec));
        __CLOVER_78_0.S[1976]++;result.addSource(new ServletPropertySource(servlet.getServletConfig()));
        __CLOVER_78_0.S[1977]++;result.addSource(new ServletContextPropertySource(servlet.getServletContext()));

        __CLOVER_78_0.S[1978]++;if ((((spec.checkExtension(EXTENSION_PROPERTY_SOURCE_NAME)) && (++__CLOVER_78_0.CT[373] != 0)) || (++__CLOVER_78_0.CF[373] == 0))){
        {
            __CLOVER_78_0.S[1979]++;IPropertySource source =
                (IPropertySource) spec.getExtension(
                    EXTENSION_PROPERTY_SOURCE_NAME,
                    IPropertySource.class);

            __CLOVER_78_0.S[1980]++;result.addSource(source);
        }}
View Full Code Here

        __CLOVER_225_0.S[12987]++;expectElement("application");

        __CLOVER_225_0.S[12988]++;String name = getAttribute("name");
        __CLOVER_225_0.S[12989]++;String engineClassName = getAttribute("engine-class");

        __CLOVER_225_0.S[12990]++;IApplicationSpecification as = _factory.createApplicationSpecification();

        __CLOVER_225_0.S[12991]++;as.setName(name);

        __CLOVER_225_0.S[12992]++;if ((((Tapestry.isNonBlank(engineClassName)) && (++__CLOVER_225_0.CT[2201] != 0)) || (++__CLOVER_225_0.CF[2201] == 0))){
            __CLOVER_225_0.S[12993]++;as.setEngineClassName(engineClassName);}

        __CLOVER_225_0.S[12994]++;_rootObject = as;

        __CLOVER_225_0.S[12995]++;push(_elementName, as, STATE_LIBRARY_SPECIFICATION);
    } finally { }}
View Full Code Here

        expectElement("application");

        String name = getAttribute("name");
        String engineClassName = getAttribute("engine-class");

        IApplicationSpecification as = _factory.createApplicationSpecification();

        as.setName(name);

        if (HiveMind.isNonBlank(engineClassName))
            as.setEngineClassName(engineClassName);

        _rootObject = as;

        push(_elementName, as, STATE_LIBRARY_SPECIFICATION);
    }
View Full Code Here

        expectElement("application");

        String name = getAttribute("name");
        String engineClassName = getAttribute("engine-class");

        IApplicationSpecification as = _factory.createApplicationSpecification();

        as.setName(name);

        if (HiveMind.isNonBlank(engineClassName))
            as.setEngineClassName(engineClassName);

        _rootObject = as;

        push(_elementName, as, STATE_LIBRARY_SPECIFICATION);
    }
View Full Code Here

    {

        // Use a one-shot digester, because you only parse the app spec
        // once.

        IApplicationSpecification result =
            (IApplicationSpecification) parse(constructApplicationDigester(), resourceLocation);

        result.setResourceResolver(_resolver);
        result.setSpecificationLocation(resourceLocation);
        result.instantiateImmediateExtensions();

        return result;
    }
View Full Code Here

    protected IPropertySource createPropertySource(RequestContext context)
    {
        DelegatingPropertySource result = new DelegatingPropertySource();

        ApplicationServlet servlet = context.getServlet();
        IApplicationSpecification spec = servlet.getApplicationSpecification();

        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);

            result.addSource(source);
        }
View Full Code Here

TOP

Related Classes of org.apache.tapestry.spec.IApplicationSpecification

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.