You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by zo...@apache.org on 2011/02/27 21:02:56 UTC

svn commit: r1075127 [1/7] - in /aries/tags/application-0.2.1: ./ application-api/ application-api/src/ application-api/src/main/ application-api/src/main/java/ application-api/src/main/java/org/ application-api/src/main/java/org/apache/ application-ap...

Author: zoe
Date: Sun Feb 27 20:02:48 2011
New Revision: 1075127

URL: http://svn.apache.org/viewvc?rev=1075127&view=rev
Log:
Restore application 0.2.1

Added:
    aries/tags/application-0.2.1/
    aries/tags/application-0.2.1/LICENSE
    aries/tags/application-0.2.1/NOTICE
    aries/tags/application-0.2.1/application-api/
    aries/tags/application-0.2.1/application-api/pom.xml
    aries/tags/application-0.2.1/application-api/src/
    aries/tags/application-0.2.1/application-api/src/main/
    aries/tags/application-0.2.1/application-api/src/main/java/
    aries/tags/application-0.2.1/application-api/src/main/java/org/
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/ApplicationMetadata.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/ApplicationMetadataFactory.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/Content.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/DeploymentContent.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/DeploymentMetadata.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/DeploymentMetadataFactory.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/ServiceDeclaration.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/VersionRange.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/filesystem/
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/filesystem/IDirectory.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/filesystem/IFile.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplication.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationContext.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationContextManager.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationEvent.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationListener.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationManager.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationResolver.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/BundleConversion.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/BundleConverter.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/BundleInfo.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/ConversionException.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/LocalPlatform.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/ManagementException.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/ResolveConstraint.java
    aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/ResolverException.java
    aries/tags/application-0.2.1/application-bundle/
    aries/tags/application-0.2.1/application-bundle/pom.xml
    aries/tags/application-0.2.1/application-converters/
    aries/tags/application-0.2.1/application-converters/pom.xml
    aries/tags/application-0.2.1/application-converters/src/
    aries/tags/application-0.2.1/application-converters/src/main/
    aries/tags/application-0.2.1/application-converters/src/main/java/
    aries/tags/application-0.2.1/application-converters/src/main/java/org/
    aries/tags/application-0.2.1/application-converters/src/main/java/org/apache/
    aries/tags/application-0.2.1/application-converters/src/main/java/org/apache/aries/
    aries/tags/application-0.2.1/application-converters/src/main/java/org/apache/aries/application/
    aries/tags/application-0.2.1/application-converters/src/main/java/org/apache/aries/application/converters/
    aries/tags/application-0.2.1/application-converters/src/main/java/org/apache/aries/application/converters/WabConverterService.java
    aries/tags/application-0.2.1/application-converters/src/main/resources/
    aries/tags/application-0.2.1/application-converters/src/main/resources/OSGI-INF/
    aries/tags/application-0.2.1/application-converters/src/main/resources/OSGI-INF/blueprint/
    aries/tags/application-0.2.1/application-converters/src/main/resources/OSGI-INF/blueprint/aries.xml
    aries/tags/application-0.2.1/application-converters/src/test/
    aries/tags/application-0.2.1/application-converters/src/test/java/
    aries/tags/application-0.2.1/application-converters/src/test/resources/
    aries/tags/application-0.2.1/application-install/
    aries/tags/application-0.2.1/application-install/pom.xml
    aries/tags/application-0.2.1/application-install/src/
    aries/tags/application-0.2.1/application-install/src/main/
    aries/tags/application-0.2.1/application-install/src/main/java/
    aries/tags/application-0.2.1/application-install/src/main/java/org/
    aries/tags/application-0.2.1/application-install/src/main/java/org/apache/
    aries/tags/application-0.2.1/application-install/src/main/java/org/apache/aries/
    aries/tags/application-0.2.1/application-install/src/main/java/org/apache/aries/application/
    aries/tags/application-0.2.1/application-install/src/main/java/org/apache/aries/application/install/
    aries/tags/application-0.2.1/application-install/src/main/java/org/apache/aries/application/install/EBAInstaller.java
    aries/tags/application-0.2.1/application-install/src/main/resources/
    aries/tags/application-0.2.1/application-install/src/main/resources/OSGI-INF/
    aries/tags/application-0.2.1/application-install/src/main/resources/OSGI-INF/blueprint/
    aries/tags/application-0.2.1/application-install/src/main/resources/OSGI-INF/blueprint/app-install.xml
    aries/tags/application-0.2.1/application-itest-interface/
    aries/tags/application-0.2.1/application-itest-interface/pom.xml
    aries/tags/application-0.2.1/application-itest-interface/src/
    aries/tags/application-0.2.1/application-itest-interface/src/main/
    aries/tags/application-0.2.1/application-itest-interface/src/main/java/
    aries/tags/application-0.2.1/application-itest-interface/src/main/java/org/
    aries/tags/application-0.2.1/application-itest-interface/src/main/java/org/apache/
    aries/tags/application-0.2.1/application-itest-interface/src/main/java/org/apache/aries/
    aries/tags/application-0.2.1/application-itest-interface/src/main/java/org/apache/aries/sample/
    aries/tags/application-0.2.1/application-itest-interface/src/main/java/org/apache/aries/sample/HelloWorld.java
    aries/tags/application-0.2.1/application-itests/
    aries/tags/application-0.2.1/application-itests/pom.xml
    aries/tags/application-0.2.1/application-itests/src/
    aries/tags/application-0.2.1/application-itests/src/main/
    aries/tags/application-0.2.1/application-itests/src/test/
    aries/tags/application-0.2.1/application-itests/src/test/java/
    aries/tags/application-0.2.1/application-itests/src/test/java/org/
    aries/tags/application-0.2.1/application-itests/src/test/java/org/apache/
    aries/tags/application-0.2.1/application-itests/src/test/java/org/apache/aries/
    aries/tags/application-0.2.1/application-itests/src/test/java/org/apache/aries/application/
    aries/tags/application-0.2.1/application-itests/src/test/java/org/apache/aries/application/runtime/
    aries/tags/application-0.2.1/application-itests/src/test/java/org/apache/aries/application/runtime/itests/
    aries/tags/application-0.2.1/application-itests/src/test/java/org/apache/aries/application/runtime/itests/AbstractIntegrationTest.java
    aries/tags/application-0.2.1/application-itests/src/test/java/org/apache/aries/application/runtime/itests/BasicAppManagerTest.java
    aries/tags/application-0.2.1/application-itests/src/test/java/org/apache/aries/application/runtime/itests/MinimumImportsTest.java
    aries/tags/application-0.2.1/application-itests/src/test/java/org/apache/aries/application/runtime/itests/OBRAppManagerTest.java
    aries/tags/application-0.2.1/application-itests/src/test/java/org/apache/aries/application/runtime/itests/OBRResolverTest.java
    aries/tags/application-0.2.1/application-itests/src/test/java/org/apache/aries/application/sample/
    aries/tags/application-0.2.1/application-itests/src/test/java/org/apache/aries/application/sample/appmgrclient/
    aries/tags/application-0.2.1/application-itests/src/test/java/org/apache/aries/application/sample/appmgrclient/AppMgrClient.java
    aries/tags/application-0.2.1/application-itests/src/test/java/org/apache/aries/sample/
    aries/tags/application-0.2.1/application-itests/src/test/java/org/apache/aries/sample/impl/
    aries/tags/application-0.2.1/application-itests/src/test/java/org/apache/aries/sample/impl/HelloWorldImpl.java
    aries/tags/application-0.2.1/application-itests/src/test/resources/
    aries/tags/application-0.2.1/application-itests/src/test/resources/app-mgr-client.xml
    aries/tags/application-0.2.1/application-itests/src/test/resources/basic/
    aries/tags/application-0.2.1/application-itests/src/test/resources/basic/APPLICATION.MF
    aries/tags/application-0.2.1/application-itests/src/test/resources/basic/sample-blueprint.xml
    aries/tags/application-0.2.1/application-itests/src/test/resources/obr/
    aries/tags/application-0.2.1/application-itests/src/test/resources/obr/APPLICATION.MF
    aries/tags/application-0.2.1/application-itests/src/test/resources/obr/APPLICATION2.MF
    aries/tags/application-0.2.1/application-itests/src/test/resources/obr/repository.xml
    aries/tags/application-0.2.1/application-management/
    aries/tags/application-0.2.1/application-management/pom.xml
    aries/tags/application-0.2.1/application-management/src/
    aries/tags/application-0.2.1/application-management/src/main/
    aries/tags/application-0.2.1/application-management/src/main/java/
    aries/tags/application-0.2.1/application-management/src/main/java/org/
    aries/tags/application-0.2.1/application-management/src/main/java/org/apache/
    aries/tags/application-0.2.1/application-management/src/main/java/org/apache/aries/
    aries/tags/application-0.2.1/application-management/src/main/java/org/apache/aries/application/
    aries/tags/application-0.2.1/application-management/src/main/java/org/apache/aries/application/management/
    aries/tags/application-0.2.1/application-management/src/main/java/org/apache/aries/application/management/impl/
    aries/tags/application-0.2.1/application-management/src/main/java/org/apache/aries/application/management/impl/AriesApplicationImpl.java
    aries/tags/application-0.2.1/application-management/src/main/java/org/apache/aries/application/management/impl/AriesApplicationManagerImpl.java
    aries/tags/application-0.2.1/application-management/src/main/java/org/apache/aries/application/management/internal/
    aries/tags/application-0.2.1/application-management/src/main/java/org/apache/aries/application/management/internal/MessageUtil.java
    aries/tags/application-0.2.1/application-management/src/main/java/org/apache/aries/application/management/messages/
    aries/tags/application-0.2.1/application-management/src/main/resources/
    aries/tags/application-0.2.1/application-management/src/main/resources/OSGI-INF/
    aries/tags/application-0.2.1/application-management/src/main/resources/OSGI-INF/blueprint/
    aries/tags/application-0.2.1/application-management/src/main/resources/OSGI-INF/blueprint/app-management.xml
    aries/tags/application-0.2.1/application-management/src/main/resources/org/
    aries/tags/application-0.2.1/application-management/src/main/resources/org/apache/
    aries/tags/application-0.2.1/application-management/src/main/resources/org/apache/aries/
    aries/tags/application-0.2.1/application-management/src/main/resources/org/apache/aries/application/
    aries/tags/application-0.2.1/application-management/src/main/resources/org/apache/aries/application/messages/
    aries/tags/application-0.2.1/application-management/src/main/resources/org/apache/aries/application/messages/AppManagementMessages.properties
    aries/tags/application-0.2.1/application-management/src/test/
    aries/tags/application-0.2.1/application-management/src/test/java/
    aries/tags/application-0.2.1/application-management/src/test/java/org/
    aries/tags/application-0.2.1/application-management/src/test/java/org/apache/
    aries/tags/application-0.2.1/application-management/src/test/java/org/apache/aries/
    aries/tags/application-0.2.1/application-management/src/test/java/org/apache/aries/application/
    aries/tags/application-0.2.1/application-management/src/test/java/org/apache/aries/application/management/
    aries/tags/application-0.2.1/application-management/src/test/java/org/apache/aries/application/management/impl/
    aries/tags/application-0.2.1/application-management/src/test/java/org/apache/aries/application/management/impl/AriesApplicationManagerImplTest.java
    aries/tags/application-0.2.1/application-management/src/test/java/org/apache/aries/unittest/
    aries/tags/application-0.2.1/application-management/src/test/java/org/apache/aries/unittest/utils/
    aries/tags/application-0.2.1/application-management/src/test/java/org/apache/aries/unittest/utils/EbaUnitTestUtils.java
    aries/tags/application-0.2.1/application-management/src/test/resources/
    aries/tags/application-0.2.1/application-management/src/test/resources/bundles/
    aries/tags/application-0.2.1/application-management/src/test/resources/bundles/repository/
    aries/tags/application-0.2.1/application-management/src/test/resources/bundles/repository/a.handy.persistence.library.jar/
    aries/tags/application-0.2.1/application-management/src/test/resources/bundles/repository/a.handy.persistence.library.jar/META-INF/
    aries/tags/application-0.2.1/application-management/src/test/resources/bundles/repository/a.handy.persistence.library.jar/META-INF/MANIFEST.MF
    aries/tags/application-0.2.1/application-management/src/test/resources/bundles/test.eba/
    aries/tags/application-0.2.1/application-management/src/test/resources/bundles/test.eba/META-INF/
    aries/tags/application-0.2.1/application-management/src/test/resources/bundles/test.eba/META-INF/APPLICATION.MF
    aries/tags/application-0.2.1/application-management/src/test/resources/bundles/test.eba/foo.bar.widgets.jar/
    aries/tags/application-0.2.1/application-management/src/test/resources/bundles/test.eba/foo.bar.widgets.jar/META-INF/
    aries/tags/application-0.2.1/application-management/src/test/resources/bundles/test.eba/foo.bar.widgets.jar/META-INF/MANIFEST.MF
    aries/tags/application-0.2.1/application-management/src/test/resources/bundles/test.eba/my.business.logic.jar/
    aries/tags/application-0.2.1/application-management/src/test/resources/bundles/test.eba/my.business.logic.jar/META-INF/
    aries/tags/application-0.2.1/application-management/src/test/resources/bundles/test.eba/my.business.logic.jar/META-INF/MANIFEST.MF
    aries/tags/application-0.2.1/application-management/src/test/resources/conversion/
    aries/tags/application-0.2.1/application-management/src/test/resources/conversion/MANIFEST.MF
    aries/tags/application-0.2.1/application-management/src/test/resources/conversion/conversion.eba/
    aries/tags/application-0.2.1/application-management/src/test/resources/conversion/conversion.eba/helloWorld.jar/
    aries/tags/application-0.2.1/application-management/src/test/resources/conversion/conversion.eba/helloWorld.jar/META-INF/
    aries/tags/application-0.2.1/application-management/src/test/resources/conversion/conversion.eba/helloWorld.jar/META-INF/MANIFEST.MF
    aries/tags/application-0.2.1/application-management/src/test/resources/conversion/conversion.eba/helloWorld.war/
    aries/tags/application-0.2.1/application-management/src/test/resources/conversion/conversion.eba/helloWorld.war/WEB-INF/
    aries/tags/application-0.2.1/application-management/src/test/resources/conversion/conversion.eba/helloWorld.war/WEB-INF/web.xml
    aries/tags/application-0.2.1/application-obr-resolver/
    aries/tags/application-0.2.1/application-obr-resolver/pom.xml
    aries/tags/application-0.2.1/application-obr-resolver/src/
    aries/tags/application-0.2.1/application-obr-resolver/src/main/
    aries/tags/application-0.2.1/application-obr-resolver/src/main/java/
    aries/tags/application-0.2.1/application-obr-resolver/src/main/java/org/
    aries/tags/application-0.2.1/application-obr-resolver/src/main/java/org/apache/
    aries/tags/application-0.2.1/application-obr-resolver/src/main/java/org/apache/aries/
    aries/tags/application-0.2.1/application-obr-resolver/src/main/java/org/apache/aries/application/
    aries/tags/application-0.2.1/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/
    aries/tags/application-0.2.1/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/
    aries/tags/application-0.2.1/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/OBRAriesResolver.java
    aries/tags/application-0.2.1/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/generator/
    aries/tags/application-0.2.1/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/generator/RepositoryDescriptorGenerator.java
    aries/tags/application-0.2.1/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/impl/
    aries/tags/application-0.2.1/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/impl/ApplicationResourceImpl.java
    aries/tags/application-0.2.1/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/impl/MapToDictionary.java
    aries/tags/application-0.2.1/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/impl/OBRBundleInfo.java
    aries/tags/application-0.2.1/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/impl/RequirementImpl.java
    aries/tags/application-0.2.1/application-obr-resolver/src/main/java/org/apache/aries/application/resolver/obr/impl/ResourceWrapper.java
    aries/tags/application-0.2.1/application-obr-resolver/src/main/resources/
    aries/tags/application-0.2.1/application-obr-resolver/src/main/resources/OSGI-INF/
    aries/tags/application-0.2.1/application-obr-resolver/src/main/resources/OSGI-INF/blueprint/
    aries/tags/application-0.2.1/application-obr-resolver/src/main/resources/OSGI-INF/blueprint/obr-resolver.xml
    aries/tags/application-0.2.1/application-obr-resolver/src/test/
    aries/tags/application-0.2.1/application-obr-resolver/src/test/java/
    aries/tags/application-0.2.1/application-obr-resolver/src/test/java/org/
    aries/tags/application-0.2.1/application-obr-resolver/src/test/java/org/apache/
    aries/tags/application-0.2.1/application-obr-resolver/src/test/java/org/apache/aries/
    aries/tags/application-0.2.1/application-obr-resolver/src/test/java/org/apache/aries/application/
    aries/tags/application-0.2.1/application-obr-resolver/src/test/java/org/apache/aries/application/resolver/
    aries/tags/application-0.2.1/application-obr-resolver/src/test/java/org/apache/aries/application/resolver/obr/
    aries/tags/application-0.2.1/application-obr-resolver/src/test/java/org/apache/aries/application/resolver/obr/impl/
    aries/tags/application-0.2.1/application-runtime/
    aries/tags/application-0.2.1/application-runtime/pom.xml
    aries/tags/application-0.2.1/application-runtime/src/
    aries/tags/application-0.2.1/application-runtime/src/main/
    aries/tags/application-0.2.1/application-runtime/src/main/java/
    aries/tags/application-0.2.1/application-runtime/src/main/java/org/
    aries/tags/application-0.2.1/application-runtime/src/main/java/org/apache/
    aries/tags/application-0.2.1/application-runtime/src/main/java/org/apache/aries/
    aries/tags/application-0.2.1/application-runtime/src/main/java/org/apache/aries/application/
    aries/tags/application-0.2.1/application-runtime/src/main/java/org/apache/aries/application/runtime/
    aries/tags/application-0.2.1/application-runtime/src/main/java/org/apache/aries/application/runtime/defaults/
    aries/tags/application-0.2.1/application-runtime/src/main/java/org/apache/aries/application/runtime/defaults/DefaultLocalPlatform.java
    aries/tags/application-0.2.1/application-runtime/src/main/java/org/apache/aries/application/runtime/defaults/NoOpResolver.java
    aries/tags/application-0.2.1/application-runtime/src/main/java/org/apache/aries/application/runtime/impl/
    aries/tags/application-0.2.1/application-runtime/src/main/java/org/apache/aries/application/runtime/impl/ApplicationContextImpl.java
    aries/tags/application-0.2.1/application-runtime/src/main/java/org/apache/aries/application/runtime/impl/ApplicationContextManagerImpl.java
    aries/tags/application-0.2.1/application-runtime/src/main/resources/
    aries/tags/application-0.2.1/application-runtime/src/main/resources/OSGI-INF/
    aries/tags/application-0.2.1/application-runtime/src/main/resources/OSGI-INF/blueprint/
    aries/tags/application-0.2.1/application-runtime/src/main/resources/OSGI-INF/blueprint/app-context-management.xml
    aries/tags/application-0.2.1/application-runtime/src/test/
    aries/tags/application-0.2.1/application-runtime/src/test/java/
    aries/tags/application-0.2.1/application-runtime/src/test/java/org/
    aries/tags/application-0.2.1/application-runtime/src/test/java/org/apache/
    aries/tags/application-0.2.1/application-runtime/src/test/java/org/apache/aries/
    aries/tags/application-0.2.1/application-runtime/src/test/java/org/apache/aries/application/
    aries/tags/application-0.2.1/application-runtime/src/test/java/org/apache/aries/application/runtime/
    aries/tags/application-0.2.1/application-utils/
    aries/tags/application-0.2.1/application-utils/pom.xml
    aries/tags/application-0.2.1/application-utils/src/
    aries/tags/application-0.2.1/application-utils/src/main/
    aries/tags/application-0.2.1/application-utils/src/main/java/
    aries/tags/application-0.2.1/application-utils/src/main/java/org/
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/impl/
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/impl/ApplicationMetadataFactoryImpl.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/impl/ApplicationMetadataImpl.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/impl/ContentImpl.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/impl/DeploymentContentImpl.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/impl/DeploymentMetadataFactoryImpl.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/impl/DeploymentMetadataImpl.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/impl/ServiceDeclarationImpl.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/impl/VersionRangeImpl.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/utils/
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/utils/AppConstants.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/utils/filesystem/
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/utils/filesystem/FileSystem.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/utils/filesystem/IOUtils.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/utils/filesystem/impl/
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/utils/filesystem/impl/DirectoryImpl.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/utils/filesystem/impl/FileImpl.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/utils/filesystem/impl/ZipDirectory.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/utils/filesystem/impl/ZipFileImpl.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/utils/internal/
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/utils/internal/MessageUtil.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/utils/management/
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/utils/management/SimpleBundleInfo.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/utils/manifest/
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/utils/manifest/BundleManifest.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/utils/manifest/ManifestDefaultsInjector.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/utils/manifest/ManifestHeaderProcessor.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/utils/manifest/ManifestProcessor.java
    aries/tags/application-0.2.1/application-utils/src/main/java/org/apache/aries/application/utils/messages/
    aries/tags/application-0.2.1/application-utils/src/main/resources/
    aries/tags/application-0.2.1/application-utils/src/main/resources/OSGI-INF/
    aries/tags/application-0.2.1/application-utils/src/main/resources/OSGI-INF/blueprint/
    aries/tags/application-0.2.1/application-utils/src/main/resources/OSGI-INF/blueprint/app-utils.xml
    aries/tags/application-0.2.1/application-utils/src/main/resources/org/
    aries/tags/application-0.2.1/application-utils/src/main/resources/org/apache/
    aries/tags/application-0.2.1/application-utils/src/main/resources/org/apache/aries/
    aries/tags/application-0.2.1/application-utils/src/main/resources/org/apache/aries/application/
    aries/tags/application-0.2.1/application-utils/src/main/resources/org/apache/aries/application/utils/
    aries/tags/application-0.2.1/application-utils/src/main/resources/org/apache/aries/application/utils/messages/
    aries/tags/application-0.2.1/application-utils/src/main/resources/org/apache/aries/application/utils/messages/APPUTILSmessages.properties
    aries/tags/application-0.2.1/application-utils/src/test/
    aries/tags/application-0.2.1/application-utils/src/test/java/
    aries/tags/application-0.2.1/application-utils/src/test/java/org/
    aries/tags/application-0.2.1/application-utils/src/test/java/org/apache/
    aries/tags/application-0.2.1/application-utils/src/test/java/org/apache/aries/
    aries/tags/application-0.2.1/application-utils/src/test/java/org/apache/aries/application/
    aries/tags/application-0.2.1/application-utils/src/test/java/org/apache/aries/application/impl/
    aries/tags/application-0.2.1/application-utils/src/test/java/org/apache/aries/application/impl/ApplicationMetadataImplTest.java
    aries/tags/application-0.2.1/application-utils/src/test/java/org/apache/aries/application/impl/DeploymentContentImplTest.java
    aries/tags/application-0.2.1/application-utils/src/test/java/org/apache/aries/application/impl/VersionRangeTest.java
    aries/tags/application-0.2.1/application-utils/src/test/java/org/apache/aries/application/utils/
    aries/tags/application-0.2.1/application-utils/src/test/java/org/apache/aries/application/utils/filesystem/
    aries/tags/application-0.2.1/application-utils/src/test/java/org/apache/aries/application/utils/filesystem/FileSystemTest.java
    aries/tags/application-0.2.1/application-utils/src/test/java/org/apache/aries/application/utils/filesystem/IOUtilsTest.java
    aries/tags/application-0.2.1/application-utils/src/test/java/org/apache/aries/application/utils/manifest/
    aries/tags/application-0.2.1/application-utils/src/test/java/org/apache/aries/application/utils/manifest/BundleManifestTest.java
    aries/tags/application-0.2.1/application-utils/src/test/java/org/apache/aries/application/utils/manifest/ManifestHeaderProcessorTest.java
    aries/tags/application-0.2.1/application-utils/src/test/java/org/apache/aries/application/utils/manifest/ManifestProcessorTest.java
    aries/tags/application-0.2.1/application-utils/src/test/resources/
    aries/tags/application-0.2.1/application-utils/src/test/resources/META-INF/
    aries/tags/application-0.2.1/application-utils/src/test/resources/META-INF/APPLICATION.MF   (with props)
    aries/tags/application-0.2.1/application-utils/src/test/resources/META-INF/APPLICATION2.MF
    aries/tags/application-0.2.1/application-utils/src/test/resources/META-INF/APPLICATION3.MF
    aries/tags/application-0.2.1/application-utils/src/test/resources/app1/
    aries/tags/application-0.2.1/application-utils/src/test/resources/app1/META-INF/
    aries/tags/application-0.2.1/application-utils/src/test/resources/app1/META-INF/APPLICATION.MF
    aries/tags/application-0.2.1/application-utils/src/test/resources/app1/META-INF/DEPLOYMENT.MF
    aries/tags/application-0.2.1/application-utils/src/test/resources/bundles/
    aries/tags/application-0.2.1/application-utils/src/test/resources/bundles/exploded.jar/
    aries/tags/application-0.2.1/application-utils/src/test/resources/bundles/exploded.jar/META-INF/
    aries/tags/application-0.2.1/application-utils/src/test/resources/bundles/exploded.jar/META-INF/MANIFEST.MF
    aries/tags/application-0.2.1/application-utils/src/test/resources/bundles/exploded.jar/META-INF/beforeManifest.file
    aries/tags/application-0.2.1/application-utils/src/test/resources/zip/
    aries/tags/application-0.2.1/application-utils/src/test/resources/zip/file.txt
    aries/tags/application-0.2.1/application-utils/src/test/resources/zip/subdir/
    aries/tags/application-0.2.1/application-utils/src/test/resources/zip/subdir/someFile.txt
    aries/tags/application-0.2.1/pom.xml

Added: aries/tags/application-0.2.1/LICENSE
URL: http://svn.apache.org/viewvc/aries/tags/application-0.2.1/LICENSE?rev=1075127&view=auto
==============================================================================
--- aries/tags/application-0.2.1/LICENSE (added)
+++ aries/tags/application-0.2.1/LICENSE Sun Feb 27 20:02:48 2011
@@ -0,0 +1,203 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+

Added: aries/tags/application-0.2.1/NOTICE
URL: http://svn.apache.org/viewvc/aries/tags/application-0.2.1/NOTICE?rev=1075127&view=auto
==============================================================================
--- aries/tags/application-0.2.1/NOTICE (added)
+++ aries/tags/application-0.2.1/NOTICE Sun Feb 27 20:02:48 2011
@@ -0,0 +1,8 @@
+
+Apache Aries
+Copyright 2009-2011 The Apache Software Foundation
+
+This product includes software developed at
+The Apache Software Foundation (http://www.apache.org/).
+
+

Added: aries/tags/application-0.2.1/application-api/pom.xml
URL: http://svn.apache.org/viewvc/aries/tags/application-0.2.1/application-api/pom.xml?rev=1075127&view=auto
==============================================================================
--- aries/tags/application-0.2.1/application-api/pom.xml (added)
+++ aries/tags/application-0.2.1/application-api/pom.xml Sun Feb 27 20:02:48 2011
@@ -0,0 +1,51 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements.  See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership.  The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied.  See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.aries.application</groupId>
+        <artifactId>application</artifactId>
+        <version>0.2.1</version>
+    </parent>
+
+    <artifactId>org.apache.aries.application.api</artifactId>
+    <packaging>bundle</packaging>
+    <name>Apache Aries Application API</name>
+    <description>
+      Application API.
+    </description>
+
+    <properties>
+        <aries.osgi.export.pkg>
+            org.apache.aries.application;
+            org.apache.aries.application.filesystem;
+            org.apache.aries.application.management
+        </aries.osgi.export.pkg>
+    </properties>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.core</artifactId>
+            <version>4.2.0</version>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+
+</project>

Added: aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/ApplicationMetadata.java
URL: http://svn.apache.org/viewvc/aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/ApplicationMetadata.java?rev=1075127&view=auto
==============================================================================
--- aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/ApplicationMetadata.java (added)
+++ aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/ApplicationMetadata.java Sun Feb 27 20:02:48 2011
@@ -0,0 +1,92 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIESOR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.aries.application; 
+
+import java.io.File;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.util.List;
+
+import org.osgi.framework.Version;
+
+/**
+ * A representation of an APPLICATION.MF file. 
+ * @see <a href="http://incubator.apache.org/aries/applications.html">
+ * http://incubator.apache.org/aries/applications.html</a>. 
+ *
+ */
+public interface ApplicationMetadata
+{
+  /**
+   * get the value of the Application-SymbolicName header
+   * @return the value of the Application-SymbolicName header
+   */
+  public String getApplicationSymbolicName();
+  
+  /**
+   * get the value of the Application-Version header
+   * @return the value of the Application-Version header
+   */
+  public Version getApplicationVersion();
+  
+  /**
+   * get the name of the application
+   * @return the name of the application
+   */
+  public String getApplicationName();
+  /**
+   * get the list of Application contents includes bundle name, 
+   * version, directives and attributes
+   * @return the list of the Application contents 
+   */
+  public List<Content> getApplicationContents();
+  
+  /**
+   * get the value of the Export-Service header
+   * @return the list of ServiceDeclaration
+   */
+  public List<ServiceDeclaration> getApplicationExportServices();
+  
+  /**
+   * get the value of the Import-Service header
+   * @return the list of ServiceDeclaration
+   */
+  public List<ServiceDeclaration> getApplicationImportServices();  
+  
+  /**
+   * get the value of the Application-Scope, which is 
+   * calculated from Application-SymbolicName and Application-Version
+   * @return    the value of the AppScope
+   */
+  public String getApplicationScope();
+  
+  /** 
+   * Persist this metadata. 
+   * @param f The file to store this metadata to
+   * @throws IOException
+   */
+  public void store(File f) throws IOException;
+  
+  /** 
+   * Persist this metadata. 
+   * @param out The output stream to store this metadata to
+   * @throws IOException
+   */
+  public void store(OutputStream out) throws IOException;
+}

Added: aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/ApplicationMetadataFactory.java
URL: http://svn.apache.org/viewvc/aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/ApplicationMetadataFactory.java?rev=1075127&view=auto
==============================================================================
--- aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/ApplicationMetadataFactory.java (added)
+++ aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/ApplicationMetadataFactory.java Sun Feb 27 20:02:48 2011
@@ -0,0 +1,66 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIESOR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.aries.application;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.jar.Manifest;
+
+import org.osgi.framework.Version;
+
+/**
+ * Provides various means of generating {@link org.apache.aries.application.ApplicationMetadata  
+ * ApplicationMetadata} instances.  
+ */
+public interface ApplicationMetadataFactory
+{
+  /**
+   * Parse from the input stream the application manifest. This method is more
+   * lenient than the normal manifest parsing routine and does not limit the
+   * manifest to 76 bytes as a line length.
+   * 
+   * @param in the input stream to read the application manifest from.
+   * @return   the parsed application metadata.
+   * 
+   * @throws IOException if an IOException occurs reading from the stream.
+   */
+  public ApplicationMetadata parseApplicationMetadata(InputStream in) throws IOException;
+  public Content parseContent(String content);
+  public VersionRange parseVersionRange(String versionRange);
+  /**
+   * Create the application metadata from the provided Manifest. This is provided
+   * so application metadata can be created from within the JVM. When reading
+   * from a stream the parseApplication method should be used.
+   * 
+   * @param man the manifest to read from
+   * @return    the parsed application metadata.
+   */
+  public ApplicationMetadata createApplicationMetadata(Manifest man);
+  /**
+   * This method is used to retrived a previously registered application metadata.
+   * 
+   * @param applicationSymbolicName the symbolic name of the application.
+   * @param version                 the version of the application.
+   * 
+   * @return the application metadata, or null if no application has been 
+   *         registered.
+   */
+  public ApplicationMetadata getApplicationMetadata (String applicationSymbolicName, Version version);
+ 
+}
\ No newline at end of file

Added: aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/Content.java
URL: http://svn.apache.org/viewvc/aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/Content.java?rev=1075127&view=auto
==============================================================================
--- aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/Content.java (added)
+++ aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/Content.java Sun Feb 27 20:02:48 2011
@@ -0,0 +1,73 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIESOR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.aries.application;
+
+import java.util.Map;
+
+
+/**
+ * A representation of content metadata such as Application-Content, Import-Package, etc
+ *
+ */
+public interface Content
+{
+  /**
+   * get the package name of the content
+   * @return    the package name of the content
+   */
+  public String getContentName();
+  
+  /**
+   * get the attributes of the content
+   * @return    the attributes of the content
+   */
+  public Map<String, String> getAttributes();
+  
+  /**
+   * get the directives of the content
+   * @return the directives of the content
+   */
+  public Map<String, String> getDirectives();
+  
+  /**
+   * get the value of the attribute with the specified key
+   * @param key  
+   * @return   value of the attribute specified by the key
+   */
+  public String getAttribute(String key);
+  
+  /**
+   * get the value of the directive with the specified key
+   * @param key
+   * @return    the value of the directive specified by the key
+   */
+  public String getDirective(String key);
+  
+  /**
+   * get the version info for the version attribute
+   * @return null if there is no version associated with this content
+   */
+  public VersionRange getVersion();
+  
+  /**
+   * get the attribute and directive info in NameValueMap
+   * @return namevalueMap that contains attribute and directive info
+   */
+  public Map<String, String> getNameValueMap();
+}

Added: aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/DeploymentContent.java
URL: http://svn.apache.org/viewvc/aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/DeploymentContent.java?rev=1075127&view=auto
==============================================================================
--- aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/DeploymentContent.java (added)
+++ aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/DeploymentContent.java Sun Feb 27 20:02:48 2011
@@ -0,0 +1,36 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIESOR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.aries.application;
+
+import org.osgi.framework.Version;
+
+/**
+ * An entry in DEPLOYMENT.MF's Deployed-Content header
+ */
+public interface DeploymentContent extends Content {
+
+  /**
+   * get the exact version of the deployment content
+   * this cannot be null
+   * @return    the exact version
+   */
+  public Version getExactVersion();
+  
+}

Added: aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/DeploymentMetadata.java
URL: http://svn.apache.org/viewvc/aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/DeploymentMetadata.java?rev=1075127&view=auto
==============================================================================
--- aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/DeploymentMetadata.java (added)
+++ aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/DeploymentMetadata.java Sun Feb 27 20:02:48 2011
@@ -0,0 +1,81 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIESOR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.aries.application;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.util.List;
+
+import org.osgi.framework.Version;
+
+/**
+ * Represents the parsed contents of a DEPLOYMENT.MF file
+ *
+ */
+public interface DeploymentMetadata {
+
+  /**
+   * get the value of the Application-SymbolicName header
+   * @return the value of the Application-SymbolicName header
+   */
+  public String getApplicationSymbolicName();
+  
+  /**
+   * get the value of the Application-Version header
+   * @return the value of the Application-Version header
+   */
+  public Version getApplicationVersion();
+  
+  /**
+   * get the value of the Deployed-Content header 
+   * @return the list of the deployed content 
+   */
+  public List<DeploymentContent> getApplicationDeploymentContents();
+  
+  /**
+   * get the value of the Provision-Bundle header
+   * @return
+   */
+  public List<DeploymentContent> getApplicationProvisionBundles();
+
+  /**
+   * Obtain the associated 
+   * {@link org.apache.aries.application.ApplicationMetadata ApplicationMetadata}. 
+   * @return The application metadata.
+   */
+  public ApplicationMetadata getApplicationMetadata();
+  
+  /** 
+   * Persist this metadata as Manifest-formatted text. 
+   * @param f The file to store this metadata to
+   * @throws IOException
+   */
+  public void store(File f) throws IOException;
+  
+  /** 
+   * Persist this metadata.  
+   * @param out The OutputStream to store this metadata to. 
+   * @throws IOException
+   */
+
+  public void store(OutputStream out) throws IOException;
+
+}

Added: aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/DeploymentMetadataFactory.java
URL: http://svn.apache.org/viewvc/aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/DeploymentMetadataFactory.java?rev=1075127&view=auto
==============================================================================
--- aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/DeploymentMetadataFactory.java (added)
+++ aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/DeploymentMetadataFactory.java Sun Feb 27 20:02:48 2011
@@ -0,0 +1,75 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIESOR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.aries.application;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.Set;
+import java.util.jar.Manifest;
+
+import org.apache.aries.application.filesystem.IFile;
+import org.apache.aries.application.management.AriesApplication;
+import org.apache.aries.application.management.BundleInfo;
+import org.apache.aries.application.management.ResolverException;
+
+/**
+ * Methods for creating a DeploymentMetadata instance
+ */
+public interface DeploymentMetadataFactory {
+
+  /** 
+   * Create a DeploymentMetadata from an AriesApplication and its by-value bundles. 
+   * 
+   * @param  app The AriesApplication in question
+   * @param  bundleInfo A resolved set of BundleInfo objects
+   * @throws ResolverException
+   * @return DeploymentMetadata instance
+   */
+  public DeploymentMetadata createDeploymentMetadata (AriesApplication app, Set<BundleInfo> bundleInfo)
+    throws ResolverException;
+  
+  /**
+   * Extract a DeploymentMetadata instance from an IFile
+   * 
+   * @param src DEPLOYMENT.MF file, either in an exploded directory or within a jar file. 
+   * @throws IOException
+   * @return DeploymentMetadata instance
+   */
+  public DeploymentMetadata createDeploymentMetadata (IFile src) throws IOException;
+  
+  /**
+   * Extract a DeploymentMetadata instance from InputStream.
+   * 
+   * @param in InputStream
+   * @throws IOException
+   * @return DeploymentMetadata instance
+   */
+  public DeploymentMetadata createDeploymentMetadata (InputStream in) throws IOException;
+  
+  /**
+   * Extract a DeploymentMetadata instance from Manifest.
+   * 
+   * @param manifest Manifest
+   * @throws IOException
+   * @return DeploymentMetadata instance
+   */
+  public DeploymentMetadata createDeploymentMetadata (Manifest manifest) throws IOException;
+  
+}

Added: aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/ServiceDeclaration.java
URL: http://svn.apache.org/viewvc/aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/ServiceDeclaration.java?rev=1075127&view=auto
==============================================================================
--- aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/ServiceDeclaration.java (added)
+++ aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/ServiceDeclaration.java Sun Feb 27 20:02:48 2011
@@ -0,0 +1,42 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIESOR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.aries.application;
+
+import org.osgi.framework.Filter;
+
+/**
+ * Represents a service imported or exported by an Aries application. 
+ * @see <a href="http://incubator.apache.org/aries/applications.html">
+ * http://incubator.apache.org/aries/applications.html</a>. 
+ */
+public interface ServiceDeclaration {
+
+	/**
+	 * get the interface name for the service
+	 * @return The name of the service's interface class. 
+	 */
+	public abstract String getInterfaceName();
+
+	/**
+	 * get the filter for the service
+	 * @return the filter for the service or null if there is no filter defined
+	 */
+	public abstract Filter getFilter();
+
+}

Added: aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/VersionRange.java
URL: http://svn.apache.org/viewvc/aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/VersionRange.java?rev=1075127&view=auto
==============================================================================
--- aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/VersionRange.java (added)
+++ aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/VersionRange.java Sun Feb 27 20:02:48 2011
@@ -0,0 +1,88 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIESOR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.aries.application;
+
+import org.osgi.framework.Version;
+
+/**
+ * A representation of a Version Range. @see <a href="http://www.osgi.org/Release4/HomePage">
+ * section 3.2.6</a> of the OSGi Service Platform Core Specification. 
+ */
+public interface VersionRange
+{
+  /**
+   * this method returns the exact version from the versionInfo obj.
+   * this is used for DeploymentContent only to return a valid exact version
+   * otherwise, null is returned.
+   * @return
+   */
+  public abstract Version getExactVersion();
+
+  /**
+   * get the maximum version
+   * @return    the maximum version
+   */
+  public abstract Version getMaximumVersion();
+
+  /**
+   * get the minimum version
+   * @return    the minimum version
+   */
+  public abstract Version getMinimumVersion();
+
+  /**
+   * is the maximum version exclusive
+   * @return  
+   */
+  public abstract boolean isMaximumExclusive();
+
+  /**
+   * is the maximum version unbounded
+   * @return
+   */
+  public abstract boolean isMaximumUnbounded();
+
+  /**
+   * is the minimum version exclusive
+   * @return
+   */
+  public abstract boolean isMinimumExclusive();
+
+  /**
+   * check if the versioninfo is the exact version
+   * @return
+   */
+  public abstract boolean isExactVersion();
+  /**
+   * This method tests to see if the provided version is inside this range.
+   * 
+   * @param version the version to test.
+   * @return        true if the version matches, false otherwise.
+   */
+  public boolean matches(Version version);
+  
+  /**
+   * Create a new version range that is the intersection of {@code this} and the argument.
+   * In other words, the largest version range that lies within both {@code this} and
+   * the parameter.
+   * @param range a version range to be intersected with {@code this}.
+   * @return a new version range, or {@code null} if no intersection is possible.
+   */
+  public VersionRange intersect(VersionRange range);
+}
\ No newline at end of file

Added: aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/filesystem/IDirectory.java
URL: http://svn.apache.org/viewvc/aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/filesystem/IDirectory.java?rev=1075127&view=auto
==============================================================================
--- aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/filesystem/IDirectory.java (added)
+++ aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/filesystem/IDirectory.java Sun Feb 27 20:02:48 2011
@@ -0,0 +1,48 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIESOR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.aries.application.filesystem;
+
+import java.util.List;
+
+/**
+ * A virtual directory in a file system. Widely used to present a common view of regular 
+ * file sytems, jar and zip files. 
+ */
+public interface IDirectory extends Iterable<IFile>, IFile
+{
+  /**
+   * @return the list of files in this directory. Files must be in this directory
+   *         and not in sub-directories.
+   */
+  public List<IFile> listFiles();
+  /**
+   * Gets the requested file under this directory. The file may be located any
+   * number of levels within this directory. The name is relative to this
+   * directory. If the file cannot be found it will return null.
+   * 
+   * @param name the name of the file.
+   * @return     the IFile, or null if no such file exists.
+   */
+  public IFile getFile(String name);
+  /**
+   * @return true if this IDirectory is the root of the virtual file system.
+   */
+  public boolean isRoot();
+}
\ No newline at end of file

Added: aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/filesystem/IFile.java
URL: http://svn.apache.org/viewvc/aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/filesystem/IFile.java?rev=1075127&view=auto
==============================================================================
--- aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/filesystem/IFile.java (added)
+++ aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/filesystem/IFile.java Sun Feb 27 20:02:48 2011
@@ -0,0 +1,83 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIESOR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.aries.application.filesystem;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.MalformedURLException;
+import java.net.URL;
+
+/**
+ * A virtual file on the virtual file system. This may represent a file or a
+ * directory.
+ */
+public interface IFile
+{
+  /**
+   * @return the name of the file relative to the root of the virtual FS.
+   */
+  public String getName();
+  /**
+   * @return true iff this IFile is also an IDirectory
+   */
+  public boolean isDirectory();
+  /**
+   * @return true iff this IFile is not an IDirectory
+   */
+  public boolean isFile();
+  /**
+   * @return the last modified date of the file.
+   */
+  public long getLastModified();
+  /**
+   * @return the size of the file.
+   */
+  public long getSize();
+  
+  /**
+   * @return if this is a directory return this as an IDirectory, otherwise return null.
+   */
+  public IDirectory convert();
+  
+  /**
+   * @return returns the parent directory of this IFile, or null if this is the root.
+   */
+  public IDirectory getParent();
+  
+  /**
+   * The input stream returned by this method should always be closed after use.
+   * 
+   * @return An InputStream to read the file from.
+   * 
+   * @throws IOException
+   * @throws UnsupportedOperationException If the IFile is also an IDirectory.
+   */
+  public InputStream open() throws IOException, UnsupportedOperationException;
+  
+  /**
+   * @return the root of this file system.
+   */
+  public IDirectory getRoot();
+  /**
+   * @return a URL that can be used to get at this file at a later date.
+   * @throws MalformedURLException 
+   */
+  public URL toURL() throws MalformedURLException ;
+}

Added: aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplication.java
URL: http://svn.apache.org/viewvc/aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplication.java?rev=1075127&view=auto
==============================================================================
--- aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplication.java (added)
+++ aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplication.java Sun Feb 27 20:02:48 2011
@@ -0,0 +1,83 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIESOR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.aries.application.management;
+
+import java.io.File;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.util.Set;
+
+import org.apache.aries.application.ApplicationMetadata;
+import org.apache.aries.application.DeploymentMetadata;
+
+
+/**
+ * Metadata about an Aries application
+ * @see <a href="http://incubator.apache.org/aries/applications.html">
+ * http://incubator.apache.org/aries/applications.html</a>. 
+ *
+ */
+public interface AriesApplication
+{
+  /**
+   * Get the application metadata, which is stored in META-INF/APPLICATION.MF.
+   * @return ApplicationMetadata
+   */
+  public ApplicationMetadata getApplicationMetadata();
+  
+  /**
+   * Get the deployment metadata, which is stored in META-INF/DEPLOYMENT.MF.
+   * @return DeploymentMetadata
+   */
+  public DeploymentMetadata getDeploymentMetadata();
+
+  /** 
+   * @return the set of bundles included in the application by value 
+   */
+  public Set<BundleInfo> getBundleInfo();
+
+
+  /**
+   * Check if the application is resolved or not.
+   * An application is said to be resolved if it has a valid deployment metadata.
+   * During the installation process, an application will be automatically
+   * resolved if it is not already.
+   *
+   * @return if the appplication is resolved or not.
+   * @see org.apache.aries.application.management.AriesApplicationManager#install(AriesApplication)  
+   * @see org.apache.aries.application.management.AriesApplicationManager#resolve(AriesApplication, ResolveConstraint...)
+   */
+  public boolean isResolved();
+
+  /** 
+   * Persist this metadata. 
+   * @param f The file to store this metadata to
+   * @throws IOException
+   */
+  public void store(File f) throws FileNotFoundException, IOException;
+  
+  /** 
+   * Persist this metadata. 
+   * @param out The output stream to store this metadata to
+   * @throws IOException
+   */
+  public void store(OutputStream out) throws FileNotFoundException, IOException;
+}

Added: aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationContext.java
URL: http://svn.apache.org/viewvc/aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationContext.java?rev=1075127&view=auto
==============================================================================
--- aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationContext.java (added)
+++ aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationContext.java Sun Feb 27 20:02:48 2011
@@ -0,0 +1,71 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIESOR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.aries.application.management;
+
+import java.util.Set;
+
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleException;
+
+/**
+ * Represents an Aries application in the runtime. See the application-runtime module for a 
+ * sample implementation. 
+ */
+public interface AriesApplicationContext
+{
+  /** 
+   * Get the state of a running application. An application is INSTALLED if all its bundles 
+   * are installed, RESOLVED if all its bundles are resolved, ACTIVE if all its bundles are 
+   * active, and so on. 
+   * @return ApplicationState. 
+   */
+  public ApplicationState getApplicationState();
+  
+  /**
+   * Obtain the associated AriesApplication metadata.  
+   * @return AriesApplication
+   */
+  public AriesApplication getApplication();
+  
+  /**
+   * Start the application by starting all its constituent bundles as per the DeploymentContent 
+   * in the associated AriesApplication's DeploymentMetadata. 
+   * @throws BundleException
+   */
+  public void start() throws BundleException;
+  
+  /**
+   * Stop the application by stopping all its constituent bundles. 
+   * @throws BundleException
+   */
+  public void stop() throws BundleException;
+  
+  /**
+   * Get the org.osgi.framework.Bundle objects representing the application's runtime
+   * constituents. 
+   * @return The application's runtime content. 
+   */
+  public Set<Bundle> getApplicationContent();
+  
+  public enum ApplicationState
+  {
+  INSTALLED, RESOLVED, STARTING, STOPPING, ACTIVE, UNINSTALLED
+  }
+}

Added: aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationContextManager.java
URL: http://svn.apache.org/viewvc/aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationContextManager.java?rev=1075127&view=auto
==============================================================================
--- aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationContextManager.java (added)
+++ aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationContextManager.java Sun Feb 27 20:02:48 2011
@@ -0,0 +1,54 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIESOR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.aries.application.management;
+
+import java.util.Set;
+
+import org.osgi.framework.BundleException;
+
+/**
+ * An ApplicationContextManager is responsible for managing Aries applications in the 
+ * server's OSGi runtime. We expect that many projects consuming this code will provide
+ * their own implementation of this service. 
+ */
+public interface AriesApplicationContextManager {
+
+  /**
+   * Obtain an ApplicationContext for an AriesApplication. Applications are stopped and
+   * started via an ApplicationContext. 
+   * @param app The applicaton for which to obtain an ApplicationContext. 
+   * @return AriesApplicationContext
+   * @throws BundleException 
+   * @throws ManagementException 
+   */
+  public AriesApplicationContext getApplicationContext(AriesApplication app) throws BundleException, ManagementException;
+
+  /**
+   * @return The set of all AriesApplicationContexts.
+   */
+  public Set<AriesApplicationContext> getApplicationContexts();
+
+  /**
+   * Remove the provided AriesApplicationContext from the running system.
+   * 
+   * @param app the application to remove.
+   */
+  public void remove(AriesApplicationContext app) throws BundleException;
+}

Added: aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationEvent.java
URL: http://svn.apache.org/viewvc/aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationEvent.java?rev=1075127&view=auto
==============================================================================
--- aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationEvent.java (added)
+++ aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationEvent.java Sun Feb 27 20:02:48 2011
@@ -0,0 +1,39 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIESOR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.aries.application.management;
+
+/**
+ * Objects of this type are passed to ApplicationListener clients
+ */
+public abstract class AriesApplicationEvent {
+
+  /**
+   * Get the type of the event
+   * @return
+   */
+  abstract public AriesApplicationContext.ApplicationState getType();
+  
+  /**
+   * Get the associated AriesApplication
+   * @return
+   */
+  abstract public AriesApplication getApplication();
+  
+}

Added: aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationListener.java
URL: http://svn.apache.org/viewvc/aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationListener.java?rev=1075127&view=auto
==============================================================================
--- aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationListener.java (added)
+++ aries/tags/application-0.2.1/application-api/src/main/java/org/apache/aries/application/management/AriesApplicationListener.java Sun Feb 27 20:02:48 2011
@@ -0,0 +1,31 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIESOR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.aries.application.management;
+
+/**
+ * A client that wishes to receive AriesApplicationEvents should implement this interface. 
+ */
+public interface AriesApplicationListener {
+
+  /**
+   * Receives notification of an application lifecycle event
+   */
+  public void applicationChanged (AriesApplicationEvent event);
+}