Package org.codehaus.loom.classman.metadata

Examples of org.codehaus.loom.classman.metadata.JoinMetaData


        //Make sure no joins have same name as our join
        final JoinMetaData[] joins = set.getJoins();
        for( int j = 0; j < joins.length; j++ )
        {
            final JoinMetaData other = joins[ j ];
            if( other == entity )
            {
                continue;
            }
            if( other.getName().equals( name ) )
            {
                final String message =
                    REZ.format( "duplicate-name.error",
                                type,
                                "join",
                                name );
                throw new Exception( message );
            }
        }

        final ClassLoaderMetaData[] classLoaders = set.getClassLoaders();
        for( int j = 0; j < classLoaders.length; j++ )
        {
            final ClassLoaderMetaData other = classLoaders[ j ];
            if( other == entity )
            {
                continue;
            }
            if( other.getName().equals( name ) )
            {
                final String message =
                    REZ.format( "duplicate-name.error",
                                type,
                                "classloader",
View Full Code Here


        throws Exception
    {
        final JoinMetaData[] joins = set.getJoins();
        for( int i = 0; i < joins.length; i++ )
        {
            final JoinMetaData join = joins[ i ];
            verifyUniqueName( set,
                              join.getName(),
                              "join",
                              join );
        }
    }
View Full Code Here

                buildRegularClassLoader( regular, resolver, classLoaders );
            classLoaders.put( name, classLoader );
        }
        else
        {
            final JoinMetaData join = set.getJoin( name );
            if( null == join )
            {
                final String message = "Unknown classloader " + name;
                throw new Exception( message );
            }
            //Make sure all our dependencies are processed
            final String[] names = join.getClassloaders();
            for( int i = 0; i < names.length; i++ )
            {
                processClassLoader( names[ i ], set, resolver, classLoaders );
            }
            final ClassLoader classLoader =
View Full Code Here

        final int length = configs.getLength();
        for( int i = 0; i < length; i++ )
        {
            final Element config = (Element)configs.item( i );
            final JoinMetaData join = buildJoin( config );
            joins.add( join );
        }

        return (JoinMetaData[])joins.toArray( new JoinMetaData[ joins.size() ] );
    }
View Full Code Here

        final String name = config.getAttribute( "name" );
        final NodeList children =
            config.getElementsByTagName( "classloader-ref" );
        final String[] classloaders =
            buildClassLoaderRefs( children );
        return new JoinMetaData( name, classloaders );
    }
View Full Code Here

TOP

Related Classes of org.codehaus.loom.classman.metadata.JoinMetaData

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.