Package org.apache.avalon.phoenix.metainfo

Examples of org.apache.avalon.phoenix.metainfo.DependencyDescriptor


    private static DependencyDescriptor toPhoenixDependency(
        final org.codehaus.loom.components.util.info.DependencyDescriptor dependency )
    {
        final ServiceDescriptor service =
            new ServiceDescriptor( dependency.getType(), VERSION );
        return new DependencyDescriptor( dependency.getKey(), service );
    }
View Full Code Here


        final Configuration[] elements = configuration.getChildren( "dependency" );
        final ArrayList dependencies = new ArrayList();

        for( int i = 0; i < elements.length; i++ )
        {
            final DependencyDescriptor dependency =
                buildDependency( classname, elements[ i ] );
            dependencies.add( dependency );
        }

        return (DependencyDescriptor[])dependencies.toArray( new DependencyDescriptor[ 0 ] );
View Full Code Here

                final String message = REZ.getString( "redundent-role", classname, role );
                getLogger().warn( message );
            }
        }

        return new DependencyDescriptor( role, service );
    }
View Full Code Here

        //Make sure all role entries specified in config file are valid
        final DependencyMetaData[] roles = block.getDependencies();
        for( int i = 0; i < roles.length; i++ )
        {
            final String roleName = roles[ i ].getRole();
            final DependencyDescriptor descriptor = block.getBlockInfo().getDependency( roleName );

            //If there is no dependency descriptor in BlockInfo then
            //user has specified an uneeded dependency.
            if( null == descriptor )
            {
View Full Code Here

        final Configuration[] elements = configuration.getChildren( "dependency" );
        final ArrayList dependencies = new ArrayList();

        for( int i = 0; i < elements.length; i++ )
        {
            final DependencyDescriptor dependency =
                buildDependency( classname, elements[ i ] );
            dependencies.add( dependency );
        }

        return (DependencyDescriptor[])dependencies.toArray( new DependencyDescriptor[ 0 ] );
View Full Code Here

                final String message = REZ.getString( "redundent-role", classname, role );
                getLogger().warn( message );
            }
        }

        return new DependencyDescriptor( role, service );
    }
View Full Code Here

        //Make sure all role entries specified in config file are valid
        final DependencyMetaData[] roles = block.getDependencies();
        for( int i = 0; i < roles.length; i++ )
        {
            final String roleName = roles[ i ].getRole();
            final DependencyDescriptor descriptor = block.getBlockInfo().getDependency( roleName );

            //If there is no dependency descriptor in BlockInfo then
            //user has specified an uneeded dependency.
            if( null == descriptor )
            {
View Full Code Here

        //Make sure all role entries specified in config file are valid
        final DependencyMetaData[] roles = block.getDependencies();
        for( int i = 0; i < roles.length; i++ )
        {
            final String roleName = roles[ i ].getRole();
            final DependencyDescriptor descriptor = block.getBlockInfo().getDependency( roleName );

            //If there is no dependency descriptor in BlockInfo then
            //user has specified an uneeded dependency.
            if( null == descriptor )
            {
View Full Code Here

        final Configuration[] elements = configuration.getChildren( "dependency" );
        final ArrayList dependencies = new ArrayList();

        for( int i = 0; i < elements.length; i++ )
        {
            final DependencyDescriptor dependency =
                buildDependency( classname, elements[ i ] );
            dependencies.add( dependency );
        }

        return (DependencyDescriptor[])dependencies.toArray( new DependencyDescriptor[ 0 ] );
View Full Code Here

                final String message = REZ.getString( "redundent-role", classname, role );
                getLogger().warn( message );
            }
        }

        return new DependencyDescriptor( role, service );
    }
View Full Code Here

TOP

Related Classes of org.apache.avalon.phoenix.metainfo.DependencyDescriptor

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.