Package org.apache.torque.generator.configuration.outlet

Examples of org.apache.torque.generator.configuration.outlet.OutletConfiguration


        {
            if (log.isDebugEnabled())
            {
                log.debug("Start reading outlet configuration");
            }
            OutletConfiguration outletConfiguration
                    = new OutletConfigurationXmlParser()
                        .readOutletConfiguration(
                                configurationProvider,
                                configurationHandlers,
                                unitDescriptor);
            unitConfiguration.setOutletConfiguration(outletConfiguration);
        }

        if (log.isDebugEnabled())
        {
            log.debug("Sucessfully read unitConfiguration for unit "
                    + getUnitDisplayName(unitDescriptor));
        }


        if (unitDescriptor.getInheritsFrom() == null)
        {
            OutletConfiguration outletConfiguration
                    = unitConfiguration.getOutletConfiguration();
            outletConfiguration.resolveMergepointMappings();
            return unitConfiguration;
        }
        UnitConfiguration inherited = read(
                unitDescriptor.getInheritsFrom(),
                configurationHandlers);
View Full Code Here


                UnitDescriptor unitDescriptor,
                UnitConfiguration unitConfiguration,
                UnitConfiguration inheritedConfiguration)
            throws ConfigurationException
    {
        OutletConfiguration outletConfiguration
            = unitConfiguration.getOutletConfiguration();

        OutletConfiguration inheritedOutletConfiguration
            = inheritedConfiguration.getOutletConfiguration();
        Map<QualifiedName, Outlet> inheritedOutlets
            = inheritedOutletConfiguration.getOutlets();

        for (Map.Entry<QualifiedName, Outlet> entry
                : inheritedOutlets.entrySet())
        {
            if (!outletConfiguration.outletExists(entry.getKey()))
View Full Code Here

        controllerState.setOutletNamespace(
                contentOutletConfiguration.getNamespace());
        controllerState.setRootOutletReference(
                contentOutletConfiguration);

        OutletConfiguration outletConfiguration
                = unitConfiguration.getOutletConfiguration();

        Outlet outlet = outletConfiguration.getOutlet(
                contentOutletConfiguration.getName());
        if (outlet == null)
        {
            throw new ControllerException(
                    "No outlet configured for outlet name \""
View Full Code Here

    {
        TokenReplacer tokenReplacer = new TokenReplacer(controllerState);

        Outlet outlet;
        {
            OutletConfiguration outletConfiguration
                    = controllerState.getUnitConfiguration()
                        .getOutletConfiguration();
            String detokenizedOutletName
                    = tokenReplacer.process(outletName);
            QualifiedName outletQName = new QualifiedName(
                    detokenizedOutletName,
                    Namespace.ROOT_NAMESPACE);

            outlet = outletConfiguration.getOutlet(outletQName);
            if (outlet == null)
            {
                throw new GeneratorException("TraverseAllAction : The outlet "
                        + outletName
                        + " does not exist");
View Full Code Here

                        output.getSourceProcessConfiguration());
            }
        }

        {
            OutletConfiguration outletConfiguration
                    = unitConfiguration.getOutletConfiguration();
            Map<QualifiedName, Outlet> outletMap
                    = outletConfiguration.getOutlets();
            assertEquals(2, outletMap.size());
            {
                JavaOutlet outlet
                        = (JavaOutlet) outletMap.get(new QualifiedName(
                                "org.apache.torque.generator.test.readConfiguration.javaOutlet"));
View Full Code Here

            assertEquals("fromClasspath", option.getValue());
        }

        // check that the outlets are read
        {
            OutletConfiguration outletConfiguration
                    = unitConfiguration.getOutletConfiguration();
            Map<QualifiedName, Outlet> outletMap
                    = outletConfiguration.getOutlets();
            assertEquals(2, outletMap.size());
        }
    }
View Full Code Here

                        output.getSourceProcessConfiguration());
            }
        }

        {
            OutletConfiguration outletConfiguration
                    = unitConfiguration.getOutletConfiguration();
            Map<QualifiedName, Outlet> outletMap
                    = outletConfiguration.getOutlets();
            assertEquals(3, outletMap.size());
            {
                JavaOutlet outlet
                        = (JavaOutlet) outletMap.get(new QualifiedName(
                                "org.apache.torque.generator.test.readConfiguration.javaOutlet"));
View Full Code Here

TOP

Related Classes of org.apache.torque.generator.configuration.outlet.OutletConfiguration

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.