Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit d9dc8af6113bf7af149c398d0346ce8ed23b3d00 Cloud Foundry Engineer committed Apr 12, 2011
Showing with 11,106 additions and 0 deletions.
  1. +15 −0 .gitignore
  2. +7,136 −0 LICENSE
  3. +10 −0 NOTICE
  4. +21 −0 README
  5. +3 −0 auto-reconfiguration/.gitignore
  6. +239 −0 auto-reconfiguration/pom.xml
  7. +325 −0 ...tion/src/main/java/org/cloudfoundry/reconfiguration/CloudAutoStagingBeanFactoryPostProcessor.java
  8. +19 −0 auto-reconfiguration/src/main/resources/META-INF/cloud/cloudfoundry-auto-reconfiguration-context.xml
  9. +180 −0 ...st/java/org/cloudfoundry/reconfiguration/CloudFactoryAutoStagingBeanFactoryPostProcessorTest.java
  10. +17 −0 auto-reconfiguration/src/test/resources/META-INF/persistence.xml
  11. +5 −0 auto-reconfiguration/src/test/resources/org/cloudfoundry/reconfiguration/hibernate.test.properties
  12. +1 −0 ...iguration/src/test/resources/org/cloudfoundry/reconfiguration/test-autostaging-corrupt.properties
  13. 0 ...nfiguration/src/test/resources/org/cloudfoundry/reconfiguration/test-autostaging-empty.properties
  14. +1 −0 ...configuration/src/test/resources/org/cloudfoundry/reconfiguration/test-autostaging-off.properties
  15. +1 −0 ...econfiguration/src/test/resources/org/cloudfoundry/reconfiguration/test-autostaging-on.properties
  16. +32 −0 ...n/src/test/resources/org/cloudfoundry/reconfiguration/test-grails-embedded-props-good-context.xml
  17. +33 −0 ...on/src/test/resources/org/cloudfoundry/reconfiguration/test-grails-map-reference-good-context.xml
  18. +26 −0 ...resources/org/cloudfoundry/reconfiguration/test-grails-propertyFactory-reference-good-context.xml
  19. +28 −0 ...configuration/src/test/resources/org/cloudfoundry/reconfiguration/test-hibernate-good-context.xml
  20. +20 −0 auto-reconfiguration/src/test/resources/org/cloudfoundry/reconfiguration/test-jpa-good-context.xml
  21. +40 −0 ...on/src/test/resources/org/cloudfoundry/reconfiguration/test-jpa-typedStringValue-good-context.xml
  22. +3 −0 cloudfoundry-runtime/.gitignore
  23. +225 −0 cloudfoundry-runtime/pom.xml
  24. +55 −0 cloudfoundry-runtime/src/main/java/org/cloudfoundry/runtime/env/AbstractServiceInfo.java
  25. +78 −0 cloudfoundry-runtime/src/main/java/org/cloudfoundry/runtime/env/ApplicationInstanceInfo.java
  26. +175 −0 cloudfoundry-runtime/src/main/java/org/cloudfoundry/runtime/env/CloudEnvironment.java
  27. +69 −0 ...dry-runtime/src/main/java/org/cloudfoundry/runtime/env/CloudEnvironmentPropertiesFactoryBean.java
  28. +21 −0 cloudfoundry-runtime/src/main/java/org/cloudfoundry/runtime/env/CloudServiceException.java
  29. +16 −0 cloudfoundry-runtime/src/main/java/org/cloudfoundry/runtime/env/MongoServiceInfo.java
  30. +36 −0 cloudfoundry-runtime/src/main/java/org/cloudfoundry/runtime/env/MysqlServiceInfo.java
  31. +39 −0 cloudfoundry-runtime/src/main/java/org/cloudfoundry/runtime/env/RabbitServiceInfo.java
  32. +16 −0 cloudfoundry-runtime/src/main/java/org/cloudfoundry/runtime/env/RedisServiceInfo.java
  33. +49 −0 cloudfoundry-runtime/src/main/java/org/cloudfoundry/runtime/service/AbstractCloudServiceFactory.java
  34. +97 −0 cloudfoundry-runtime/src/main/java/org/cloudfoundry/runtime/service/AbstractServiceCreator.java
  35. +89 −0 cloudfoundry-runtime/src/main/java/org/cloudfoundry/runtime/service/CloudServicesAutoPopulator.java
  36. +55 −0 ...ndry-runtime/src/main/java/org/cloudfoundry/runtime/service/config/xml/CloudNamespaceHandler.java
  37. +68 −0 ...-runtime/src/main/java/org/cloudfoundry/runtime/service/config/xml/CloudServiceFactoryParser.java
  38. +28 −0 ...oundry-runtime/src/main/java/org/cloudfoundry/runtime/service/document/CloudMongoFactoryBean.java
  39. +33 −0 ...dfoundry-runtime/src/main/java/org/cloudfoundry/runtime/service/document/MongoServiceCreator.java
  40. +27 −0 ...time/src/main/java/org/cloudfoundry/runtime/service/keyvalue/CloudRedisConnectionFactoryBean.java
  41. +32 −0 ...dfoundry-runtime/src/main/java/org/cloudfoundry/runtime/service/keyvalue/RedisServiceCreator.java
  42. +28 −0 ...me/src/main/java/org/cloudfoundry/runtime/service/messaging/CloudRabbitConnectionFactoryBean.java
  43. +32 −0 ...oundry-runtime/src/main/java/org/cloudfoundry/runtime/service/messaging/RabbitServiceCreator.java
  44. +28 −0 ...dry-runtime/src/main/java/org/cloudfoundry/runtime/service/relational/CloudDataSourceFactory.java
  45. +74 −0 ...oundry-runtime/src/main/java/org/cloudfoundry/runtime/service/relational/MysqlServiceCreator.java
  46. +1 −0 cloudfoundry-runtime/src/main/resources/META-INF/spring.handlers
  47. +2 −0 cloudfoundry-runtime/src/main/resources/META-INF/spring.schemas
  48. +4 −0 cloudfoundry-runtime/src/main/resources/META-INF/spring.tooling
  49. BIN ...ry-runtime/src/main/resources/org/cloudfoundry/runtime/service/config/xml/cloudfoundry-spring.gif
  50. +149 −0 ...ry-runtime/src/main/resources/org/cloudfoundry/runtime/service/config/xml/cloudfoundry-spring.xsd
  51. +41 −0 ...foundry-runtime/src/test/java/org/cloudfoundry/runtime/env/CloudEnvPropertiesFactoryBeanTest.java
  52. +119 −0 cloudfoundry-runtime/src/test/java/org/cloudfoundry/runtime/env/CloudEnvironmentTest.java
  53. +126 −0 cloudfoundry-runtime/src/test/java/org/cloudfoundry/runtime/service/CloudEnvironmentTestHelper.java
  54. +43 −0 ...oundry-runtime/src/test/java/org/cloudfoundry/runtime/service/document/CloudMongoFactoryTest.java
  55. +54 −0 .../src/test/java/org/cloudfoundry/runtime/service/keyvalue/CloudRedisConnectionFactoryBeanTest.java
  56. +44 −0 ...rc/test/java/org/cloudfoundry/runtime/service/messaging/CloudRabbitConnectionFactoryBeanTest.java
  57. +47 −0 ...runtime/src/test/java/org/cloudfoundry/runtime/service/relational/CloudDataSourceFactoryTest.java
  58. +18 −0 cloudfoundry-runtime/src/test/resources/org/cloudfoundry/runtime/service/test-application-info.json
  59. +12 −0 cloudfoundry-runtime/src/test/resources/org/cloudfoundry/runtime/service/test-mongodb-info.json
  60. +13 −0 cloudfoundry-runtime/src/test/resources/org/cloudfoundry/runtime/service/test-mysql-info.json
  61. +12 −0 cloudfoundry-runtime/src/test/resources/org/cloudfoundry/runtime/service/test-rabbit-info.json
  62. +12 −0 cloudfoundry-runtime/src/test/resources/org/cloudfoundry/runtime/service/test-redis-info.json
  63. +28 −0 plugins/maven/B29Plugin.iml
  64. +397 −0 plugins/maven/B29Plugin.ipr
  65. +74 −0 plugins/maven/pom.xml
  66. +284 −0 plugins/maven/src/main/java/com/vmware/b20nine/B20NineMojo.java
  67. +34 −0 plugins/tomcat_startup_listener/pom.xml
  68. +56 −0 ...s/tomcat_startup_listener/src/main/java/com/vmware/appcloud/tomcat/AppCloudLifecycleListener.java
  69. +11 −0 plugins/tomcat_startup_listener/src/main/java/com/vmware/appcloud/tomcat/TomcatStartupListener.java
@@ -0,0 +1,15 @@
+*~
+.idea
+\#*\#
+.\#*
+target/
+build/
+eclipse-base.tar.gz
+eclipse/
+org.eclipse.releng.basebuilder/
+org.eclipse.releng.basebuilder.zip
+com.vmware.sts.server.appcloud.releng/springsource/
+/AppCloudClient/src/test/java/com/vmware/appcloud/client/credentials.properties
+.classpath
+.project
+.settings
7,136 LICENSE

Large diffs are not rendered by default.

Oops, something went wrong.
10 NOTICE
@@ -0,0 +1,10 @@
+Cloud Foundry 2011.04.12 beta
+Copyright (c) [2009-2011] VMware, Inc. All Rights Reserved.
+
+This product is licensed to you under the Apache License, Version 2.0 (the "License").
+You may not use this product except in compliance with the License.
+
+This product includes a number of subcomponents with
+separate copyright notices and license terms. Your use of these
+subcomponents is subject to the terms and conditions of the
+subcomponent's license, as noted in the LICENSE file.
21 README
@@ -0,0 +1,21 @@
+Copyright (c) 2009-2011 VMware, Inc.
+
+== What is Cloud Foundry?
+
+Cloud Foundry is an open platform-as-a-service (PaaS). The system supports
+multiple frameworks, multiple application infrastructure services and
+deployment to multiple clouds.
+
+== What is this component
+
+The vcap-java repo contains a java client library for Cloud Foundry.
+The library provides a set of classes that ultimately call the core
+Cloud Foundry REST API.
+
+== License
+
+Cloud Foundry uses the Apache 2 license. See LICENSE for details.
+
+== Installation Notes
+
+Complete installation notes are present in the README for vcap
@@ -0,0 +1,3 @@
+.springBeans
+.settings/
+*.log
@@ -0,0 +1,239 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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>
+ <groupId>org.cloudfoundry</groupId>
+ <artifactId>auto-reconfiguration</artifactId>
+ <packaging>jar</packaging>
+ <name>auto-reconfiguration</name>
+ <version>0.6.0-BUILD-SNAPSHOT</version>
+ <properties>
+ <java.version>1.6</java.version>
+ <spring.version>2.5.6</spring.version>
+ <slf4j.version>1.5.6</slf4j.version>
+ </properties>
+ <dependencies>
+ <dependency>
+ <groupId>org.cloudfoundry</groupId>
+ <artifactId>cloudfoundry-runtime</artifactId>
+ <version>${project.version}</version>
+ </dependency>
+ <!-- Spring -->
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-context</artifactId>
+ <version>${spring.version}</version>
+ <exclusions>
+ <!-- Exclude Commons Logging in favor of SLF4j -->
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ </exclusions>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>1.1.1</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-orm</artifactId>
+ <version>${spring.version}</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <!-- Test -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.8.2</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.mockito</groupId>
+ <artifactId>mockito-all</artifactId>
+ <version>1.8.5</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>mysql</groupId>
+ <artifactId>mysql-connector-java</artifactId>
+ <version>5.0.5</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>com.springsource.slf4j.api</artifactId>
+ <version>${slf4j.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>com.springsource.slf4j.org.apache.commons.logging</artifactId>
+ <version>${slf4j.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.slf4j</groupId>
+ <artifactId>com.springsource.slf4j.log4j</artifactId>
+ <version>${slf4j.version}</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>javax.transaction</groupId>
+ <artifactId>com.springsource.javax.transaction</artifactId>
+ <version>1.1.0</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>javax.persistence</groupId>
+ <artifactId>persistence-api</artifactId>
+ <version>1.0</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-entitymanager</artifactId>
+ <version>3.4.0.GA</version>
+ <exclusions>
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ </exclusions>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate-annotations</artifactId>
+ <version>3.4.0.GA</version>
+ <exclusions>
+ <exclusion>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ </exclusion>
+ </exclusions>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.springframework</groupId>
+ <artifactId>spring-jdbc</artifactId>
+ <version>${spring.version}</version>
+ <scope>test</scope>
+ </dependency>
+
+ </dependencies>
+ <repositories>
+ <!-- For testing against latest Spring snapshots -->
+ <repository>
+ <id>org.springframework.maven.snapshot</id>
+ <name>Spring Maven Snapshot Repository</name>
+ <url>http://maven.springframework.org/snapshot</url>
+ <releases>
+ <enabled>false</enabled>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ </repository>
+ <!-- For developing against latest Spring milestones -->
+ <repository>
+ <id>org.springframework.maven.milestone</id>
+ <name>Spring Maven Milestone Repository</name>
+ <url>http://maven.springframework.org/milestone</url>
+ <snapshots>
+ <enabled>false</enabled>
+ </snapshots>
+ </repository>
+ <repository>
+ <id>spring-maven-snapshot</id>
+ <snapshots>
+ <enabled>true</enabled>
+ </snapshots>
+ <name>Springframework Maven SNAPSHOT Repository</name>
+ <url>http://maven.springframework.org/snapshot</url>
+ </repository>
+ <repository>
+ <id>JBoss Repo</id>
+ <url>https://repository.jboss.org/nexus/content/repositories/releases</url>
+ <name>JBoss Repo</name>
+ </repository>
+ </repositories>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>${java.version}</source>
+ <target>${java.version}</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>install</id>
+ <phase>install</phase>
+ <goals>
+ <goal>sources</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <junitArtifactName>junit:junit</junitArtifactName>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-shade-plugin</artifactId>
+ <version>1.4</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>shade</goal>
+ </goals>
+ <configuration>
+ <artifactSet>
+ <excludes>
+ <exclude>org.slf4j:com.springsource.slf4j.log4j</exclude>
+ <exclude>org.apache.log4j:com.springsource.org.apache.log4j</exclude>
+ </excludes>
+ </artifactSet>
+ <filters>
+ <filter>
+ <artifact>org.cloudfoundry:cloudfoundry-runtime</artifact>
+ <excludes>
+ <exclude>META-INF/**</exclude>
+ <exclude>**/*.xsd</exclude>
+ <exclude>**/*.gif</exclude>
+ </excludes>
+ </filter>
+ </filters>
+ <relocations>
+ <relocation>
+ <pattern>org.cloudfoundry.runtime</pattern>
+ <shadedPattern>org.cloudfoundry.org.cloudfoundry.runtime</shadedPattern>
+ </relocation>
+ </relocations>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ </plugins>
+ </build>
+</project>
Oops, something went wrong.

0 comments on commit d9dc8af

Please sign in to comment.