Package org.apache.avalon.fortress.impl.role

Examples of org.apache.avalon.fortress.impl.role.ConfigurableRoleManager


    frm.enableLogging(rmLogger.getChildLogger("defaults"));
    frm.initialize();

    // Create a role manager with the configured roles
    final ConfigurableRoleManager rm = new ConfigurableRoleManager(frm);

    rm.enableLogging(rmLogger);

    try
    {
      rm.configure(roleConfig);
    }
    catch (ConfigurationException e)
    {
      throw new NestedException("Error configuring role manager", e);
    }
View Full Code Here


    frm.enableLogging(rmLogger.getChildLogger("defaults"));
    frm.initialize();

    // Create a role manager with the configured roles
    final ConfigurableRoleManager rm = new ConfigurableRoleManager(frm);

    rm.enableLogging(rmLogger);

    try
    {
      rm.configure(roleConfig);
    }
    catch (ConfigurationException e)
    {
      throw new NestedException("Error configuring role manager", e);
    }
View Full Code Here

    public void testShorthandReturnValues()
            throws Exception
    {
        DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();
        ConfigurableRoleManager roles = new ConfigurableRoleManager( null, this.getClass().getClassLoader() );
        roles.enableLogging( new ConsoleLogger( ConsoleLogger.LEVEL_INFO ) );
        roles.configure( builder.build( this.getClass().getClassLoader()
                .getResourceAsStream( "org/apache/avalon/fortress/impl/role/test/ConfigManager.roles" ) ) );

        checkRole( roles,
                "component1",
                "org.apache.avalon.fortress.test.data.Role1",
View Full Code Here

            }
        }
        else
        {
            // Create a role manager with the configured roles
            rm = new ConfigurableRoleManager( frm, classLoader );
        }

        ContainerUtil.enableLogging(rm, rmLogger );
        ContainerUtil.configure( rm, roleConfig );
        ContainerUtil.initialize( rm );
View Full Code Here

            }
        }
        else
        {
            // Create a role manager with the configured roles
            rm = new ConfigurableRoleManager( frm, classLoader );
        }

        ContainerUtil.enableLogging(rm, rmLogger );
        ContainerUtil.configure( rm, roleConfig );
        ContainerUtil.initialize( rm );
View Full Code Here

    public void testShorthandReturnValues()
            throws Exception
    {
        DefaultConfigurationBuilder builder = new DefaultConfigurationBuilder();
        ConfigurableRoleManager roles = new ConfigurableRoleManager( null, this.getClass().getClassLoader() );
        roles.enableLogging( new ConsoleLogger( ConsoleLogger.LEVEL_INFO ) );
        roles.configure( builder.build( this.getClass().getClassLoader()
                .getResourceAsStream( "org/apache/avalon/fortress/impl/role/test/ConfigManager.roles" ) ) );

        checkRole( roles,
                "component1",
                "org.apache.avalon.fortress.test.data.Role1",
View Full Code Here

        final FortressRoleManager frm = new FortressRoleManager( null, classLoader );
        frm.enableLogging( rmLogger.getChildLogger( "defaults" ) );
        frm.initialize();

        // Create a role manager with the configured roles
        final ConfigurableRoleManager rm = new ConfigurableRoleManager( frm );
        rm.enableLogging( rmLogger );
        rm.configure( roleConfig );

        assumeOwnership( rm );
        return rm;
    }
View Full Code Here

TOP

Related Classes of org.apache.avalon.fortress.impl.role.ConfigurableRoleManager

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.