Examples of ExtensionDescriptor


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

        if( config.getAttribute( "type", null ) != null ) // legacy
        {
            String urn = config.getAttribute( "type", null );
            final Properties attributes =
              buildAttributes( config.getChild( "attributes" ) );
            return new ExtensionDescriptor( urn, attributes );
        }
        else
        {
            String id = config.getAttribute( "urn", null ); // legacy
            if( id == null )
            {
               try
               {
                   id = config.getAttribute( "id" );
               }
               catch( ConfigurationException e )
               {
                   final String error =
                     "Missing extensions identifier 'id' attribute."
                     + ConfigurationUtil.list( config );
                   throw new BuildException( error, e );
               }
            }
            final Properties attributes =
              buildAttributes( config.getChild( "attributes" ) );
            return new ExtensionDescriptor( id, attributes );
        }
    }
View Full Code Here

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

        m_key = ExtensionDescriptorTestCase.class.getName();
    }

    protected Descriptor getDescriptor()
    {
        return new ExtensionDescriptor( m_key, getProperties());
    }
View Full Code Here

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

    }

    protected void checkDescriptor(Descriptor desc)
    {
        super.checkDescriptor(desc);
        ExtensionDescriptor ext = (ExtensionDescriptor) desc;

        assertEquals( m_key, ext.getKey() );
    }
View Full Code Here

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

    public void testConstructor()
    {
        try
        {
            new ExtensionDescriptor(null, getProperties());
            fail("Did not throw the expected NullPointerException");
        }
        catch(NullPointerException npe)
        {
            // Success!!
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.