Package org.apache.fulcrum.yaafi.framework.configuration

Examples of org.apache.fulcrum.yaafi.framework.configuration.ComponentConfigurationPropertiesResolver


     */
    private Properties loadComponentConfigurationProperties()
      throws ConfigurationException
    {
        Properties result = new Properties();
        ComponentConfigurationPropertiesResolver resolver = null;

        String className = this.componentConfigurationPropertiesResolverConfig.getChild("resolver").getValue(
            ComponentConfigurationPropertiesResolverImpl.class.getName()
            );

        try
        {
            Class resolverClass = this.getClassLoader().loadClass( className );
            resolver = (ComponentConfigurationPropertiesResolver) resolverClass.newInstance();
            ContainerUtil.enableLogging(resolver, this.getLogger());
            ContainerUtil.contextualize(resolver, this.getContext());
            ContainerUtil.configure(resolver, this.componentConfigurationPropertiesResolverConfig);

            result = resolver.resolve(null);

            this.getLogger().debug("Using the following componentConfigurationProperties: " + result);
        }
        catch (Exception e)
        {
View Full Code Here


     */
    private Properties loadComponentConfigurationProperties()
      throws ConfigurationException
    {
        Properties result = new Properties();
        ComponentConfigurationPropertiesResolver resolver = null;

        String className = this.componentConfigurationPropertiesResolverConfig.getChild("resolver").getValue(
            ComponentConfigurationPropertiesResolverImpl.class.getName()
            );

        try
        {
            Class resolverClass = this.getClassLoader().loadClass( className );
            resolver = (ComponentConfigurationPropertiesResolver) resolverClass.newInstance();
            ContainerUtil.enableLogging(resolver, this.getLogger());
            ContainerUtil.contextualize(resolver, this.getContext());
            ContainerUtil.configure(resolver, this.componentConfigurationPropertiesResolverConfig);

            result = resolver.resolve(null);

            this.getLogger().debug("Using the following componentConfigurationProperties: " + result);
        }
        catch (Exception e)
        {
View Full Code Here

TOP

Related Classes of org.apache.fulcrum.yaafi.framework.configuration.ComponentConfigurationPropertiesResolver

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.