Package org.codehaus.loom.components.util.info

Examples of org.codehaus.loom.components.util.info.ServiceDescriptor


        Configuration[] elements = info.getChild( "services" ).getChildren(
            "service" );
        for( int i = 0; i < elements.length; i++ )
        {
            final ServiceDescriptor service = buildService( elements[ i ],
                                                            false );
            services.add( service );
        }
        elements =
        info.getChild( "management-access-points" ).getChildren( "service" );
        for( int i = 0; i < elements.length; i++ )
        {
            final ServiceDescriptor service = buildService( elements[ i ],
                                                            true );
            services.add( service );
        }

        return (ServiceDescriptor[]) services.toArray(
View Full Code Here


                                            final boolean isManagement )
        throws ConfigurationException
    {
        //TODO need to do something if its a management service. Ideally this is what gets looked at later on
        //when plugging everything back in
        return new ServiceDescriptor( service.getAttribute( "name" ) );
    }
View Full Code Here

          Attributes.getAttributes( type, "dna.service" );
        for( int i = 0; i < attributes.length; i++ )
        {
            final Attribute attribute = attributes[i];
            final String serviceType = attribute.getParameter( "type" );
            services.add( new ServiceDescriptor( serviceType ) );
        }

        return (ServiceDescriptor[])services.toArray( ServiceDescriptor.EMPTY_SET );
    }
View Full Code Here

                                       false )},
                               null );
        final ComponentInfo c2Info =
            new ComponentInfo( Component2.class,
                               new ServiceDescriptor[]{
                                   new ServiceDescriptor(
                                       Service1.class.getName() )},
                               DependencyDescriptor.EMPTY_SET,
                               null );
        final ComponentProfile c1Profile =
            new ComponentProfile( c1Info, c1MetaData );
View Full Code Here

                                       false )},
                               null );
        final ComponentInfo c2Info =
            new ComponentInfo( Component2.class,
                               new ServiceDescriptor[]{
                                   new ServiceDescriptor(
                                       Service1.class.getName() )},
                               DependencyDescriptor.EMPTY_SET,
                               null );
        final ComponentProfile c3Profile =
            new ComponentProfile( c3Info, c3MetaData );
View Full Code Here

TOP

Related Classes of org.codehaus.loom.components.util.info.ServiceDescriptor

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.