Package org.lightadmin.core.config.domain.unit

Examples of org.lightadmin.core.config.domain.unit.ConfigurationUnit


            return configurationUnit;
        }

        HierarchicalConfigurationUnit hierarchicalUnit = (HierarchicalConfigurationUnit) configurationUnit;
        if (hierarchicalUnit.getParentUnitType() != null) {
            ConfigurationUnit parentUnit = allUnits.forDomainUnitType(hierarchicalUnit.getParentUnitType());

            hierarchicalConfigurationUnitVisitor(parentUnit).visit(hierarchicalUnit);
        }
        return configurationUnit;
    }
View Full Code Here


    }

    private ConfigurationUnits preprocessConfigurationUnits(final ConfigurationUnits configurationUnits) {
        final Set<ConfigurationUnit> processedConfigurationUnits = newLinkedHashSet();
        for (ConfigurationUnit configurationUnit : configurationUnits) {
            ConfigurationUnit processedConfigurationUnit = configurationUnit;
            for (ConfigurationUnitPostProcessor configurationUnitPostProcessor : configurationUnitPostProcessors) {
                processedConfigurationUnit = configurationUnitPostProcessor.postProcess(processedConfigurationUnit, configurationUnits);
            }
            processedConfigurationUnits.add(processedConfigurationUnit);
        }
View Full Code Here

        }
        return configurationUnits.toArray(new ConfigurationUnit[configurationUnits.size()]);
    }

    public static ConfigurationUnit configurationUnitFor(DomainConfigurationUnitType unitType, Class<? extends ConfigurationUnit> configurationUnitInterface) {
        ConfigurationUnit configurationUnit = EasyMock.createMock(configurationUnitInterface);
        EasyMock.expect(configurationUnit.getDomainConfigurationUnitType()).andReturn(unitType).anyTimes();
        EasyMock.replay(configurationUnit);
        return configurationUnit;
    }
View Full Code Here

TOP

Related Classes of org.lightadmin.core.config.domain.unit.ConfigurationUnit

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.