Examples of SystemManager


Examples of org.apache.avalon.phoenix.interfaces.SystemManager

     *  TODO: context should probably be passed in by reference from the kernel
     */
    private SystemManager getManagementContext()
        throws ManagerException
    {
        final SystemManager appContext =
            m_systemManager.getSubContext( null, "application" );
        return appContext.getSubContext( m_metaData.getName(), "block" );
    }
View Full Code Here

Examples of org.apache.avalon.phoenix.interfaces.SystemManager

     * Register embeddor and it's components to <code>SystemManager</code>.
     */
    private void registerComponents()
        throws Exception
    {
        final SystemManager systemManager =
            (SystemManager)getServiceManager().lookup( SystemManager.ROLE );

        final SystemManager componentManager =
            systemManager.getSubContext( null, "component" );

        componentManager.register( ManagementRegistration.EMBEDDOR.getName(),
                                   this,
                                   ManagementRegistration.EMBEDDOR.getInterfaces() );

        for( int i = 0; i < m_entries.length; i++ )
        {
            final ManagementRegistration registration =
                ManagementRegistration.getManagementInfoForRole( m_entries[ i ].getRole() );
            if( null != registration )
            {
                componentManager.register( registration.getName(),
                                           m_entries[ i ].getObject(),
                                           registration.getInterfaces() );
            }
        }
    }
View Full Code Here

Examples of org.apache.avalon.phoenix.interfaces.SystemManager

     * {@link SystemManager}.
     */
    private void unregisterComponents()
        throws Exception
    {
        final SystemManager systemManager =
            (SystemManager)getServiceManager().lookup( SystemManager.ROLE );

        final SystemManager componentManager = systemManager.getSubContext( null, "component" );

        componentManager.unregister( ManagementRegistration.EMBEDDOR.getName() );

        for( int i = 0; i < m_entries.length; i++ )
        {
            final ManagementRegistration registration =
                ManagementRegistration.getManagementInfoForRole( m_entries[ i ].getRole() );
            if( null != registration )
            {
                componentManager.unregister( registration.getName() );
            }
        }
    }
View Full Code Here

Examples of org.codehaus.loom.interfaces.SystemManager

     * TODO: context should probably be passed in by reference from the kernel
     */
    private SystemManager getManagementContext()
        throws LoomException
    {
        final SystemManager appContext =
            m_systemManager.getSubContext( null, "application" );
        return appContext.getSubContext( getName(), "block" );
    }
View Full Code Here

Examples of org.codehaus.loom.interfaces.SystemManager

     * Register embeddor and it's components to <code>SystemManager</code>.
     */
    private void registerComponents()
        throws Exception
    {
        final SystemManager systemManager =
            (SystemManager)getResourceLocator().lookup(
                SystemManager.class.getName() );

        final SystemManager mxExporter =
            systemManager.getSubContext( null, "component" );

        mxExporter.register( "Embeddor", this );
        for( int i = 0; i < m_entries.length; i++ )
        {
            final EmbeddorEntry entry = m_entries[ i ];
            mxExporter.register( entry.getLoggerName(),
                                 entry.getObject() );
        }
    }
View Full Code Here

Examples of org.codehaus.loom.interfaces.SystemManager

     * Unregister embeddor and it's components from {@link SystemManager}.
     */
    private void unregisterComponents()
        throws Exception
    {
        final SystemManager systemManager =
            (SystemManager)getResourceLocator().lookup(
                SystemManager.class.getName() );

        final SystemManager mxExporter =
            systemManager.getSubContext( null, "component" );

        mxExporter.unregister( "Embeddor" );

        for( int i = 0; i < m_entries.length; i++ )
        {
            final EmbeddorEntry entry = m_entries[ i ];
            mxExporter.unregister( entry.getLoggerName() );
        }
    }
View Full Code Here

Examples of org.codehaus.loom.interfaces.SystemManager

            throw new LoomException( message );
        }

        // get from list if possible
        final String key = contextKey( name, type );
        SystemManager subcontext =
            (SystemManager)m_subcontexts.get( key );

        // otherwise create and add to list
        if( subcontext == null )
        {
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.