Package org.codehaus.loom.components.util.profile

Examples of org.codehaus.loom.components.util.profile.ComponentProfile


    protected ComponentProfile getComponentProfile( final String name,
                                                    final ComponentProfile[] components )
    {
        for( int i = 0; i < components.length; i++ )
        {
            ComponentProfile ComponentProfile = components[ i ];
            if( ComponentProfile.getTemplate().getName().equals( name ) )
            {
                return components[ i ];
            }
        }
View Full Code Here


    protected void verifyValidNames( final ComponentProfile[] components )
        throws Exception
    {
        for( int i = 0; i < components.length; i++ )
        {
            ComponentProfile ComponentProfile = components[ i ];
            final String name = ComponentProfile.getTemplate().getName();
            if( !isValidName( name ) )
            {
                final String message =
                    REZ.format( "assembly.bad-name.error", name );
                throw new Exception( message );
View Full Code Here

    protected void checkNamesUnique( final ComponentProfile[] components )
        throws Exception
    {
        for( int i = 0; i < components.length; i++ )
        {
            ComponentProfile ComponentProfile = components[ i ];
            final String name = ComponentProfile.getTemplate().getName();
            verifyUniqueName( components, name, i );
        }
    }
View Full Code Here

                                   final int index )
        throws Exception
    {
        for( int i = 0; i < components.length; i++ )
        {
            ComponentProfile ComponentProfile = components[ i ];
            final String other =
                ComponentProfile.getTemplate().getName();
            if( index != i && other.equals( name ) )
            {
                final String message =
                    REZ.format( "assembly.duplicate-name.error", name );
                throw new Exception( message );
View Full Code Here

            final DependencyDirective[] dependencySet = block.getTemplate()
                .getDependencies( key );
            for( int j = 0; j < dependencySet.length; j++ )
            {
                final DependencyDirective dependency = dependencySet[ j ];
                final ComponentProfile other = getBlock(
                    dependency.getProviderName(), blocks );
                visitBlock( other, blocks, true, done, order );
            }
        }
    }
View Full Code Here

    {
        final String name = block.getTemplate().getName();

        for( int i = 0; i < blocks.length; i++ )
        {
            final ComponentProfile other = blocks[ i ];
            final DependencyDirective[] roles = other.getTemplate()
                .getDependencies();

            for( int j = 0; j < roles.length; j++ )
            {
                final String depends = roles[ j ].getProviderName();
View Full Code Here

                               new ServiceDescriptor[]{
                                   new ServiceDescriptor(
                                       Service1.class.getName() )},
                               DependencyDescriptor.EMPTY_SET,
                               null );
        final ComponentProfile c1Profile =
            new ComponentProfile( c1Info, c1MetaData );
        final ComponentProfile c2Profile =
            new ComponentProfile( c2Info, c2MetaData );
        final PartitionProfile blockProfile =
            new PartitionProfile( blockMetaData,
                                  PartitionProfile.EMPTY_SET,
                                  new ComponentProfile[]{c1Profile, c2Profile} );
        final PartitionProfile listenerProfile =
View Full Code Here

                               new ServiceDescriptor[]{
                                   new ServiceDescriptor(
                                       Service1.class.getName() )},
                               DependencyDescriptor.EMPTY_SET,
                               null );
        final ComponentProfile c3Profile =
            new ComponentProfile( c3Info, c3MetaData );
        final ComponentProfile c2aProfile =
            new ComponentProfile( c2Info, c2aMetaData );
        final ComponentProfile c2bProfile =
            new ComponentProfile( c2Info, c2bMetaData );
        final ComponentProfile c2cProfile =
            new ComponentProfile( c2Info, c2cMetaData );
        final PartitionProfile blockProfile =
            new PartitionProfile( blockMetaData,
                                  PartitionProfile.EMPTY_SET,
                                  new ComponentProfile[]{c3Profile,
                                                         c2aProfile,
View Full Code Here

                                                                "c2",
                                                                "c2" )},
                                   null,
                                   null,
                                   false );
        final ComponentProfile cp1 = new ComponentProfile( C1, md1 );
        final ComponentTemplate md2 =
            new ComponentTemplate( "c2",
                                   C2_NAME,
                                   DependencyDirective.EMPTY_SET,
                                   null,
                                   null,
                                   true );
        final ComponentProfile cp2 = new ComponentProfile( C2, md2 );
        final PartitionTemplate blockPartitionMD =
            new PartitionTemplate( ContainerConstants.BLOCK_PARTITION,
                                   new String[]{
                                       ContainerConstants.LISTENER_PARTITION},
                                   PartitionTemplate.EMPTY_SET,
View Full Code Here

                                   C3_NAME,
                                   c3Deps,
                                   null,
                                   null,
                                   false );
        final ComponentProfile cp3 = new ComponentProfile( C3, md3 );
        final ComponentTemplate md2a =
            new ComponentTemplate( "c2a",
                                   C2_NAME,
                                   DependencyDirective.EMPTY_SET,
                                   null,
                                   null,
                                   false );
        final ComponentProfile cp2a = new ComponentProfile( C2, md2a );
        final ComponentTemplate md2b =
            new ComponentTemplate( "c2b",
                                   C2_NAME,
                                   DependencyDirective.EMPTY_SET,
                                   null,
                                   null,
                                   false );
        final ComponentProfile cp2b = new ComponentProfile( C2, md2b );
        final ComponentTemplate md2c =
            new ComponentTemplate( "c2c",
                                   C2_NAME,
                                   DependencyDirective.EMPTY_SET,
                                   null,
                                   null,
                                   false );
        final ComponentProfile cp2c = new ComponentProfile( C2, md2c );

        final PartitionTemplate blockPartitionMD =
            new PartitionTemplate( ContainerConstants.BLOCK_PARTITION,
                                   new String[]{
                                       ContainerConstants.LISTENER_PARTITION},
View Full Code Here

TOP

Related Classes of org.codehaus.loom.components.util.profile.ComponentProfile

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.