Package org.codehaus.loom.components.util.metadata

Examples of org.codehaus.loom.components.util.metadata.ComponentTemplate


        try
        {
            final String name = listener.getAttribute( "name" );
            final String classname = listener.getAttribute( "class" );
            final Configuration configuration = config.getChild( name );
            return new ComponentTemplate( name, classname,
                                          DependencyDirective.EMPTY_SET,
                                          null,
                                          configuration,
                                          false );
        }
View Full Code Here


    }

    public Configuration createConfiguration( final Object entry )
        throws Exception
    {
        final ComponentTemplate template = getBlockEntry( entry ).getTemplate();
        return ConfigurationAlchemist.toAvalonConfiguration(
            template.getConfiguration() );
    }
View Full Code Here

    {
        final DependencyDirective dependency =
            new DependencyDirective( Service1.class.getName(),
                                     "c2",
                                     Service1.class.getName() );
        final ComponentTemplate c1MetaData =
            new ComponentTemplate( "c1",
                                   Component1.class.getName(),
                                   new DependencyDirective[]{dependency},
                                   null,
                                   null,
                                   false );
        final ComponentTemplate c2MetaData =
            new ComponentTemplate( "c2",
                                   Component2.class.getName(),
                                   DependencyDirective.EMPTY_SET,
                                   null,
                                   null,
                                   false );
View Full Code Here

        final DependencyDirective dependency3 =
            new DependencyDirective(
                Service1.class.getName() + DependencyDescriptor.ARRAY_POSTFIX,
                "c2c",
                Service1.class.getName() );
        final ComponentTemplate c3MetaData =
            new ComponentTemplate( "c3",
                                   Component3.class.getName(),
                                   new DependencyDirective[]{dependency1,
                                                             dependency2,
                                                             dependency3},
                                   null,
                                   null,
                                   false );
        final ComponentTemplate c2aMetaData =
            new ComponentTemplate( "c2a",
                                   Component2.class.getName(),
                                   DependencyDirective.EMPTY_SET,
                                   null,
                                   null,
                                   false );
        final ComponentTemplate c2bMetaData =
            new ComponentTemplate( "c2b",
                                   Component2.class.getName(),
                                   DependencyDirective.EMPTY_SET,
                                   null,
                                   null,
                                   false );
        final ComponentTemplate c2cMetaData =
            new ComponentTemplate( "c2c",
                                   Component2.class.getName(),
                                   DependencyDirective.EMPTY_SET,
                                   null,
                                   null,
                                   false );
View Full Code Here

                           null );

    public void testBasic()
        throws Exception
    {
        final ComponentTemplate md1 =
            new ComponentTemplate( "c1",
                                   C1_NAME,
                                   new DependencyDirective[]{
                                       new DependencyDirective( S1_NAME,
                                                                "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 );
View Full Code Here

                                                               "c2b",
                                                               "c2b" ),
                                      new DependencyDirective( S1_ARRAY_NAME,
                                                               "c2c",
                                                               "c2c" )};
        final ComponentTemplate md3 =
            new ComponentTemplate( "c3",
                                   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 );
View Full Code Here

                                                               "c2b",
                                                               "c2b" ),
                                      new DependencyDirective( S1_MAP_NAME,
                                                               "c2c",
                                                               "anAlias" )};
        final ComponentTemplate md4 =
            new ComponentTemplate( "c4",
                                   C4_NAME,
                                   c4Deps,
                                   null,
                                   null,
                                   false );
        final ComponentProfile cp4 = new ComponentProfile( C4, md4 );
        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 );
View Full Code Here

TOP

Related Classes of org.codehaus.loom.components.util.metadata.ComponentTemplate

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.