Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dokujaryu committed Apr 17, 2013
0 parents commit d8a2079
Show file tree
Hide file tree
Showing 65 changed files with 542 additions and 0 deletions.
48 changes: 48 additions & 0 deletions alpha-module/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.yskts</groupId>
<artifactId>MultiConfig</artifactId>
<version>develop-SNAPSHOT</version>
</parent>

<artifactId>alpha-module</artifactId>
<packaging>jar</packaging>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<artifactId>sharedlib</artifactId>
<groupId>com.yskts</groupId>
<version>${project.version}</version>
</dependency>
</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.yskts.multiconfig.alpha.config;

import com.yskts.multiconfig.sharedlib.config.SharedLibBuilder;
import com.yskts.multiconfig.sharedlib.config.SharedLibClientConfig;
import org.springframework.context.annotation.Configuration;

/**
*
* @author niwong
*/
@Configuration
public class AlphaModuleSharedLibConfig implements SharedLibClientConfig {

@Override
public String getNamespace() {
return "com.yskts.multiconfig.alpha";
}

@Override
public SharedLibBuilder getBuilder() {
return null;
}

}
Binary file not shown.
Binary file not shown.
5 changes: 5 additions & 0 deletions alpha-module/target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Generated by Maven
#Tue Apr 16 22:39:04 PDT 2013
version=develop-SNAPSHOT
groupId=com.yskts
artifactId=alpha-module
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
com/yskts/multiconfig/alpha/config/AlphaModuleSharedLibConfig.class
30 changes: 30 additions & 0 deletions beta-module/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.yskts</groupId>
<artifactId>MultiConfig</artifactId>
<version>develop-SNAPSHOT</version>
</parent>

<artifactId>beta-module</artifactId>
<packaging>jar</packaging>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
</project>

Binary file not shown.
5 changes: 5 additions & 0 deletions beta-module/target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Generated by Maven
#Tue Apr 16 22:39:04 PDT 2013
version=develop-SNAPSHOT
groupId=com.yskts
artifactId=beta-module
Empty file.
30 changes: 30 additions & 0 deletions delta-module/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.yskts</groupId>
<artifactId>MultiConfig</artifactId>
<version>develop-SNAPSHOT</version>
</parent>

<artifactId>delta-module</artifactId>
<packaging>jar</packaging>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
</project>

Binary file not shown.
5 changes: 5 additions & 0 deletions delta-module/target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Generated by Maven
#Tue Apr 16 22:39:05 PDT 2013
version=develop-SNAPSHOT
groupId=com.yskts
artifactId=delta-module
Empty file.
30 changes: 30 additions & 0 deletions epsilon-module/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.yskts</groupId>
<artifactId>MultiConfig</artifactId>
<version>develop-SNAPSHOT</version>
</parent>

<artifactId>epsilon-module</artifactId>
<packaging>jar</packaging>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
</project>

Binary file not shown.
5 changes: 5 additions & 0 deletions epsilon-module/target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Generated by Maven
#Tue Apr 16 22:39:05 PDT 2013
version=develop-SNAPSHOT
groupId=com.yskts
artifactId=epsilon-module
Empty file.
30 changes: 30 additions & 0 deletions gamma-module/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.yskts</groupId>
<artifactId>MultiConfig</artifactId>
<version>develop-SNAPSHOT</version>
</parent>

<artifactId>gamma-module</artifactId>
<packaging>jar</packaging>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>
</project>

Binary file not shown.
5 changes: 5 additions & 0 deletions gamma-module/target/maven-archiver/pom.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#Generated by Maven
#Tue Apr 16 22:39:05 PDT 2013
version=develop-SNAPSHOT
groupId=com.yskts
artifactId=gamma-module
Empty file.
30 changes: 30 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.yskts</groupId>
<artifactId>MultiConfig</artifactId>
<version>develop-SNAPSHOT</version>
<packaging>pom</packaging>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring.version>3.1.3.RELEASE</spring.version>
<j2ee.version>6.0</j2ee.version>
<cglib.version>2.2.2</cglib.version>
<freemarker.version>2.3.19</freemarker.version>
</properties>

<modules>
<module>sharedlib</module>
<module>alpha-module</module>
<module>beta-module</module>
<module>gamma-module</module>
<module>delta-module</module>
<module>epsilon-module</module>
<module>web</module>
</modules>

</project>
43 changes: 43 additions & 0 deletions sharedlib/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.yskts</groupId>
<artifactId>MultiConfig</artifactId>
<version>develop-SNAPSHOT</version>
</parent>

<artifactId>sharedlib</artifactId>
<packaging>jar</packaging>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>
</build>

<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
</dependencies>
</project>

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.yskts.multiconfig.sharedlib.config;

/**
*
* @author niwong
*/
public interface SharedLibBuilder {
public SharedLibComponent build(SharedLibInput input);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.yskts.multiconfig.sharedlib.config;

/**
*
* @author niwong
*/
public interface SharedLibClientConfig {
public String getNamespace();
public SharedLibBuilder getBuilder();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.yskts.multiconfig.sharedlib.config;

/**
*
* @author niwong
*/
public interface SharedLibComponent {

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.yskts.multiconfig.sharedlib.config;

import java.util.List;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;

/**
*
* @author niwong
*/
@Configuration
public class SharedLibConfig implements InitializingBean {
@Autowired
private List<SharedLibClientConfig> clientConfigs;

@Override
public void afterPropertiesSet() throws Exception {
System.out.println("SCANNING CLIENT CONFIG");
for(SharedLibClientConfig clientConfig : clientConfigs) {
System.out.println("CLIENT CONFIG NAMESPACE> " + clientConfig.getNamespace());
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.yskts.multiconfig.sharedlib.config;

/**
*
* @author niwong
*/
public interface SharedLibInput {

}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit d8a2079

Please sign in to comment.