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

Examples of org.apache.avalon.fortress.impl.role.FortressRoleManager.initialize()


    // Create a parent role manager with all the default roles
    final FortressRoleManager frm = new FortressRoleManager(null, loader);

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

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

    rm.enableLogging(rmLogger);
View Full Code Here


    // Create a parent role manager with all the default roles
    final FortressRoleManager frm = new FortressRoleManager(null, loader);

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

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

    rm.enableLogging(rmLogger);
View Full Code Here

    public void DONTtestShorthandReturnValues()
        throws Exception
    {
        FortressRoleManager roles = new FortressRoleManager( null, this.getClass().getClassLoader() );
        roles.enableLogging( new ConsoleLogger( ConsoleLogger.LEVEL_INFO ) );
        roles.initialize();

        checkRole( roles,
            "jdbc-datasource",
            "org.apache.avalon.excalibur.datasource.DataSourceComponent",
            "org.apache.avalon.excalibur.datasource.JdbcDataSource",
View Full Code Here

    public void setUp() throws Exception
    {
        FortressRoleManager roles = new FortressRoleManager( null, this.getClass().getClassLoader() );
        roles.enableLogging( new ConsoleLogger( ConsoleLogger.LEVEL_INFO ) );
        roles.initialize();
        m_manager = new Role2MetaInfoManager( roles );
    }

    /**
     * Temporarily skip this step--we will be removing FortressRoleManager soon.
View Full Code Here

                roleConfig.getAttribute( "logger", "system.roles" ) );

        // Create a parent role manager with all the default roles
        final FortressRoleManager frm = new FortressRoleManager( null, classLoader );
        frm.enableLogging( rmLogger.getChildLogger( "defaults" ) );
        frm.initialize();

        RoleManager rm;
        if ( entryPresent( m_rootContext, ROLE_MANAGER_CLASS ) )
        {
            Class clazz = (Class)m_rootContext.get( ROLE_MANAGER_CLASS );
View Full Code Here

            {
                final FortressRoleManager newRoleManager =
                        new FortressRoleManager( null, classLoader );
                newRoleManager.enableLogging(
                        m_loggerManager.getLoggerForCategory( "system.roles.defaults" ) );
                newRoleManager.initialize();

                roleManager = newRoleManager;
            }

            final MetaInfoManager mim;
View Full Code Here

                roleConfig.getAttribute( "logger", "system.roles" ) );

        // Create a parent role manager with all the default roles
        final FortressRoleManager frm = new FortressRoleManager( null, classLoader );
        frm.enableLogging( rmLogger.getChildLogger( "defaults" ) );
        frm.initialize();

        RoleManager rm;
        if ( entryPresent( m_rootContext, ROLE_MANAGER_CLASS ) )
        {
            Class clazz = (Class)m_rootContext.get( ROLE_MANAGER_CLASS );
View Full Code Here

            {
                final FortressRoleManager newRoleManager =
                        new FortressRoleManager( null, classLoader );
                newRoleManager.enableLogging(
                        m_loggerManager.getLoggerForCategory( "system.roles.defaults" ) );
                newRoleManager.initialize();

                roleManager = newRoleManager;
            }

            final MetaInfoManager mim;
View Full Code Here

    public void setUp() throws Exception
    {
        FortressRoleManager roles = new FortressRoleManager( null, this.getClass().getClassLoader() );
        roles.enableLogging( new ConsoleLogger( ConsoleLogger.LEVEL_INFO ) );
        roles.initialize();
        m_manager = new Role2MetaInfoManager( roles );
    }

    /**
     * Temporarily skip this step--we will be removing FortressRoleManager soon.
View Full Code Here

    public void DONTtestShorthandReturnValues()
        throws Exception
    {
        FortressRoleManager roles = new FortressRoleManager( null, this.getClass().getClassLoader() );
        roles.enableLogging( new ConsoleLogger( ConsoleLogger.LEVEL_INFO ) );
        roles.initialize();

        checkRole( roles,
            "jdbc-datasource",
            "org.apache.avalon.excalibur.datasource.DataSourceComponent",
            "org.apache.avalon.excalibur.datasource.JdbcDataSource",
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.