Package org.apache.avalon.phoenix.metainfo

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


     */
    private void verifyDependencyReferences( final BlockMetaData block,
                                             final BlockMetaData[] others )
        throws VerifyException
    {
        final BlockInfo info = block.getBlockInfo();
        final DependencyMetaData[] roles = block.getDependencies();

        for( int i = 0; i < roles.length; i++ )
        {
            final String blockName = roles[ i ].getName();
            final String roleName = roles[ i ].getRole();
            final ServiceDescriptor service =
                info.getDependency( roleName ).getService();

            //Get the other block that is providing service
            final BlockMetaData other = getBlock( blockName, others );
            if( null == other )
            {
View Full Code Here


    {
        invalidate();

        if( null != object )
        {
            final BlockInfo blockInfo = getMetaData().getBlockInfo();
            final Class[] interfaces = getServiceClasses( object, blockInfo.getServices() );
            m_invocationHandler = new BlockInvocationHandler( object, interfaces );
        }
        m_object = object;
    }
View Full Code Here

                                                  new Integer( services.length ),
                                                  new Integer( dependencies.length ) );
            getLogger().debug( message );
        }

        return new BlockInfo( descriptor, services, management, dependencies );
    }
View Full Code Here

            final String name = block.getAttribute( "name" );
            final String classname = block.getAttribute( "class" );
            final Configuration[] provides = block.getChildren( "provide" );

            final DependencyMetaData[] roles = buildDependencyMetaDatas( provides );
            final BlockInfo info = getBlockInfo( name, classname, classLoader );


            return new BlockMetaData( name, roles, info );
        }
        catch( final ConfigurationException ce )
View Full Code Here

TOP

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

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.