Package org.apache.avalon.framework

Examples of org.apache.avalon.framework.Version


        final DocletTag tag = getJavaClass().getTagByName( getNS() + Tags.DELIMITER + KEY );
        if( null == tag )
        {
            return null;
        }
        final Version version = Version.getVersion( getNamedParameter( tag, VERSION_PARAM, "" ) );
        final String type = getJavaClass().getFullyQualifiedName();
        final Properties properties = new AttributeTag( getJavaClass() ).getProperties();
        final ReferenceDescriptor ref = new ReferenceDescriptor( type, version );
        return new Service( ref, properties );
    }
View Full Code Here


        {
            return null;
        }

        final String name = getName( tag );
        final Version version = getVersion( tag );
        final String lifestyle = getLifestyle( tag );
        final String collection = getLifestyleCollectionPolicy( tag );
        final String type = getJavaClass().getFullyQualifiedName();
        final Properties properties = new AttributeTag( getJavaClass() ).getProperties();
        final String schema = new SchemaTag( getJavaClass() ).getConfigurationSchema();
View Full Code Here

        if( type.indexOf( ":" ) > -1 )
        {
            return createReference( type );
        }
        final String versionString = service.getAttribute( "version", "1.0" );
        final Version version = buildVersion( versionString );
        return new ReferenceDescriptor( type, version );
    }
View Full Code Here

      final String classname, final Configuration info )
      throws BuildException
    {
        final String name =
          info.getChild( "name" ).getValue( null );
        final Version version =
          buildVersion( info.getChild( "version" ).getValue( "1.0" ) );
        final String schema =
          info.getChild( "schema" ).getValue( null );
        final Properties attributes =
            buildAttributes( info.getChild( "attributes" ) );
View Full Code Here

    */
    public ReferenceDescriptor createReference( String path )
      throws BuildException
    {
        final String type;
        final Version version;
        int index = path.indexOf(":");
        if( index > -1 )
        {
            type = path.substring( 0, index );
            version = buildVersion( path.substring( index + 1 ) );
View Full Code Here

        final Properties attributes =
            buildAttributes( info.getChild( "attributes" ) );
        final EntryDescriptor[] entries =
            buildEntries( info.getChild( "entries" ).getChildren("entry") );
        final String versionString = info.getChild( "version" ).getValue( "1.0" );
        final Version version = buildVersion( versionString );

        return new Service( new ReferenceDescriptor( classname, version ), entries, attributes );
    }
View Full Code Here

    {
        final String name =
          info.getChild( "name" ).getValue( null );
        final String schema =
          info.getChild( "schema-type" ).getValue( null );
        final Version version =
          buildVersion( info.getChild( "version" ).getValue( "1.0" ) );
        final Properties attributes =
            buildAttributes( info.getChild( "attributes" ) );
        final String lifestyle = InfoDescriptor.SINGLETON;
        return new InfoDescriptor(
View Full Code Here

    {
        try
        {
            final String type = service.getAttribute( "name" );
            final String versionString = service.getAttribute( "version", "1.0" );
            final Version version = buildVersion( versionString );
            return new ReferenceDescriptor( type, version );
        }
        catch( Throwable e )
        {
            final String error =
View Full Code Here

    private ServiceDescriptor buildService( final Configuration service )
        throws ConfigurationException
    {
        final String name = service.getAttribute( "name" );
        final String versionString = service.getAttribute( "version", "1.0" );
        final Version version = buildVersion( versionString );
        return new ServiceDescriptor( name, version );
    }
View Full Code Here

            System.err.println( message );
            return null;
        }

        final String name = block.getChild( "name" ).getValue( null );
        final Version version = buildVersion( block.getChild( "version" ).getValue() );
        final String schemaType = block.getChild( "schema-type" ).getValue( null );

        return new BlockDescriptor( name, classname, schemaType, version );
    }
View Full Code Here

TOP

Related Classes of org.apache.avalon.framework.Version

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.