Package org.apache.avalon.phoenix.metainfo

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


     * @param component the ComponentInfo object
     * @return the BlockInfo object
     */
    public static BlockInfo toBlockInfo( final ComponentInfo component )
    {
        final BlockDescriptor descriptor = toBlockDescriptor( component );
        final ServiceDescriptor[] services = toPhoenixServices(
            component.getServices() );
        final ServiceDescriptor[] mxServices = new ServiceDescriptor[ 0 ];
        final DependencyDescriptor[] dependencys =
            toPhoenixDependencys( component.getDependencies() );
View Full Code Here


        if( null != schema )
        {
            schemaType = schema.getType();
        }

        return new BlockDescriptor( null,
                                    component.getType().getName(),
                                    schemaType,
                                    VERSION );
    }
View Full Code Here

        configuration = info.getChild( "dependencies" );
        final DependencyDescriptor[] dependencies = buildDependencies( classname, configuration );

        configuration = info.getChild( "block" );
        final BlockDescriptor descriptor = buildBlockDescriptor( classname, configuration );

        if( getLogger().isDebugEnabled() )
        {
            final String message = REZ.getString( "blockinfo-created",
                                                  classname,
View Full Code Here

        final String name = block.getChild( "name" ).getValue( null );
        final Version version = buildVersion( block.getChild( "version" ).getValue() );
        final String schemaType = block.getChild( "schema-type" ).getValue( null );

        return new BlockDescriptor( name, classname, schemaType, version );
    }
View Full Code Here

        try
        {
            for( i = 0; i < blocks.length; i++ )
            {
                final String name = blocks[ i ].getName();
                final BlockDescriptor descriptor = blocks[ i ].getBlockInfo().getBlockDescriptor();
                final String type = descriptor.getSchemaType();

                if( null != type )
                {
                    m_validator.addSchema( metaData.getName(),
                                           name,
                                           type,
                                           getConfigurationSchemaURL( name,
                                                                      descriptor.getImplementationKey(),
                                                                      classLoader )
                    );
                }
            }
        }
View Full Code Here

        configuration = info.getChild( "dependencies" );
        final DependencyDescriptor[] dependencies = buildDependencies( classname, configuration );

        configuration = info.getChild( "block" );
        final BlockDescriptor descriptor = buildBlockDescriptor( classname, configuration );

        if( getLogger().isDebugEnabled() )
        {
            final String message = REZ.getString( "blockinfo-created",
                                                  classname,
View Full Code Here

        final String name = block.getChild( "name" ).getValue( null );
        final Version version = buildVersion( block.getChild( "version" ).getValue() );
        final String schemaType = block.getChild( "schema-type" ).getValue( null );

        return new BlockDescriptor( name, classname, schemaType, version );
    }
View Full Code Here

        try
        {
            for( i = 0; i < blocks.length; i++ )
            {
                final String name = blocks[ i ].getName();
                final BlockDescriptor descriptor = blocks[ i ].getBlockInfo().getBlockDescriptor();
                final String type = descriptor.getSchemaType();

                if( null != type )
                {
                    m_validator.addSchema( metaData.getName(),
                                           name,
                                           type,
                                           getConfigurationSchemaURL( name,
                                                                      descriptor.getImplementationKey(),
                                                                      classLoader )
                    );
                }
            }
        }
View Full Code Here

        try
        {
            for( i = 0; i < blocks.length; i++ )
            {
                final String name = blocks[ i ].getName();
                final BlockDescriptor descriptor = blocks[ i ].getBlockInfo().getBlockDescriptor();
                final String type = descriptor.getSchemaType();

                if( null != type )
                {
                    m_validator.addSchema( metaData.getName(),
                                           name,
                                           type,
                                           getConfigurationSchemaURL( name,
                                                                      descriptor.getClassname(),
                                                                      classLoader )
                    );
                }
            }
        }
View Full Code Here

        configuration = info.getChild( "dependencies" );
        final DependencyDescriptor[] dependencies = buildDependencies( classname, configuration );

        configuration = info.getChild( "block" );
        final BlockDescriptor descriptor = buildBlockDescriptor( classname, configuration );

        if( getLogger().isDebugEnabled() )
        {
            final String message = REZ.getString( "blockinfo-created",
                                                  classname,
View Full Code Here

TOP

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

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.