Package org.apache.avalon.phoenix.metainfo

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


    {
        final boolean disableProxy = component.isDisableProxy();
        final DependencyMetaData[] dependencies =
            toPhoenixDependencys( component.getDependencies() );

        final BlockInfo blockInfo = ComponentInfoConverter.toBlockInfo( info );
        return new BlockMetaData( component.getName(),
                                  dependencies,
                                  disableProxy,
                                  blockInfo );
    }
View Full Code Here


            component.getServices() );
        final ServiceDescriptor[] mxServices = new ServiceDescriptor[ 0 ];
        final DependencyDescriptor[] dependencys =
            toPhoenixDependencys( component.getDependencies() );

        return new BlockInfo( descriptor,
                              services,
                              mxServices,
                              dependencys );
    }
View Full Code Here

     * @param entry the entry
     * @return the new event
     */
    private BlockEvent createEvent( final BlockEntry entry )
    {
        final BlockInfo blockInfo =
            ComponentInfoConverter.toBlockInfo( entry.getInfo() );
        return new BlockEvent( entry.getName(),
                               entry.getProxy(),
                               blockInfo );
    }
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

     */
    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

            final Configuration proxy = block.getChild( "proxy" );
            final boolean disableProxy =
                proxy.getAttributeAsBoolean( "disable", false );

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


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

    {
        invalidate();

        if( null != object && ! getMetaData().isDisableProxy() )
        {
            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

            final Configuration proxy = block.getChild( "proxy" );
            final boolean disableProxy =
                proxy.getAttributeAsBoolean( "disable", false );

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


            return new BlockMetaData( name, roles, disableProxy, info );
        }
        catch( final ConfigurationException ce )
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

     */
    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

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.