Package org.apache.avalon.meta.info

Examples of org.apache.avalon.meta.info.Service


        for( int i = 0; i < size; i++ )
        {
            final JavaClass javaClass = (JavaClass)allClasses.get( i );
            if( javaClass.isInterface() )
            {
                Service service = new ServiceTag( javaClass ).getService();
                if( service == null )
                {
                    continue;
                }
View Full Code Here


        super( name );
    }

    protected Descriptor getDescriptor()
    {
        return new Service(m_reference, m_entries, getProperties());
    }
View Full Code Here

    public void testConstructor()
    {
        try
        {
            new Service(null);
            fail("Did not throw the expected NullPointerException");
        }
        catch(NullPointerException npe)
        {
            // Sucess!
View Full Code Here

    }

    protected void checkDescriptor(Descriptor desc)
    {
        super.checkDescriptor(desc);
        Service service = (Service)desc;

        assertEquals( m_reference, service.getReference());
        assertEquals( m_reference.getClassname(), service.getClassname());
        assertEquals( m_reference.getVersion(), service.getVersion());

        assertEquals( m_entries.length, service.getEntries().length );
        assertTrue( service.matches(m_reference));

        EntryDescriptor[] serviceEntries = service.getEntries();
        for (int i = 0; i < m_entries.length; i++)
        {
            assertEquals( m_entries[i], serviceEntries[i]);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.avalon.meta.info.Service

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.