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

Examples of org.apache.avalon.fortress.impl.role.ConfigurableRoleManager.configure()


    rm.enableLogging(rmLogger);

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


    rm.enableLogging(rmLogger);

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

            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

            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

        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
Copyright © 2018 www.massapi.com. 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.