-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
277 changed files
with
18,705 additions
and
18,705 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
**/target/** | ||
*.class | ||
target | ||
*.releaseBackup | ||
release.properties | ||
/nbactions.xml | ||
**/target/** | ||
*.class | ||
target | ||
*.releaseBackup | ||
release.properties | ||
/nbactions.xml | ||
/bridje-cfg/nbproject/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
language: java | ||
jdk: | ||
- oraclejdk8 | ||
|
||
script: mvn -Dgpg.skip=true test | ||
language: java | ||
jdk: | ||
- oraclejdk8 | ||
|
||
script: mvn -Dgpg.skip=true test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
[](https://travis-ci.org/bridje/bridje-framework) | ||
|
||
Introduction | ||
============ | ||
|
||
This package contains the Bridje Java Applications Framework. A project providing Java API for building Fast, Roboust Java Aplications with Maven. | ||
The project is licensed under the Apache License: | ||
|
||
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. | ||
|
||
Dependencies | ||
============ | ||
|
||
The project libraries can be use without dependencies. | ||
|
||
Installation and Usage | ||
====================== | ||
|
||
Bridje Core library is availables on the Maven Central Repository | ||
|
||
<dependencies> | ||
.... | ||
<dependency> | ||
<groupId>org.bridje</groupId> | ||
<artifactId>bridje-ioc</artifactId> | ||
<version>0.1.2</version> | ||
</dependency> | ||
.... | ||
</dependencies> | ||
|
||
About the Project | ||
================= | ||
|
||
The project provides a set of tools for creating Java Applications. | ||
[](https://travis-ci.org/bridje/bridje-framework) | ||
|
||
Introduction | ||
============ | ||
|
||
This package contains the Bridje Java Applications Framework. A project providing Java API for building Fast, Roboust Java Aplications with Maven. | ||
The project is licensed under the Apache License: | ||
|
||
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. | ||
|
||
Dependencies | ||
============ | ||
|
||
The project libraries can be use without dependencies. | ||
|
||
Installation and Usage | ||
====================== | ||
|
||
Bridje Core library is availables on the Maven Central Repository | ||
|
||
<dependencies> | ||
.... | ||
<dependency> | ||
<groupId>org.bridje</groupId> | ||
<artifactId>bridje-ioc</artifactId> | ||
<version>0.1.2</version> | ||
</dependency> | ||
.... | ||
</dependencies> | ||
|
||
About the Project | ||
================= | ||
|
||
The project provides a set of tools for creating Java Applications. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
<?xml version="1.0"?> | ||
<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>org.bridje</groupId> | ||
<artifactId>bridje-parent</artifactId> | ||
<version>0.1.3-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>bridje-cfg</artifactId> | ||
|
||
<name>Bridje Cfg</name> | ||
<description>Bridje Cfg API</description> | ||
<url>http://www.bridje.org</url> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>bridje-ioc</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
</dependencies> | ||
</project> | ||
<?xml version="1.0"?> | ||
<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>org.bridje</groupId> | ||
<artifactId>bridje-parent</artifactId> | ||
<version>0.1.3-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>bridje-cfg</artifactId> | ||
|
||
<name>Bridje Cfg</name> | ||
<description>Bridje Cfg API</description> | ||
<url>http://www.bridje.org</url> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>junit</groupId> | ||
<artifactId>junit</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>${project.groupId}</groupId> | ||
<artifactId>bridje-ioc</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
</dependencies> | ||
</project> |
116 changes: 58 additions & 58 deletions
116
bridje-cfg/src/main/java/org/bridje/cfg/ConfigRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,58 @@ | ||
/* | ||
* Copyright 2015 Bridje Framework. | ||
* | ||
* 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. | ||
*/ | ||
|
||
package org.bridje.cfg; | ||
|
||
import java.io.IOException; | ||
import java.io.Reader; | ||
import java.io.Writer; | ||
|
||
/** | ||
* An interface that every configuration repository must implements. | ||
* | ||
* The ConfigService will use all the config repositories components to find and | ||
* saves configurations. | ||
*/ | ||
public interface ConfigRepository | ||
{ | ||
/** | ||
* Obtains a reader to the configuration resource by the given name. | ||
* | ||
* @param configName The name of the configuration. | ||
* @return A Reader from wich to read the configuracion instance. | ||
* @throws java.io.IOException If any IOException occurs during configuration retreval. | ||
*/ | ||
Reader findConfig(String configName) throws IOException; | ||
|
||
/** | ||
* Obtains a writer to the configuration resource by the given name. | ||
* | ||
* @param configName The name for this configuration instance. | ||
* @return The writer in wich to put the new configuration instance, | ||
* or null if this repository does not allows configuration saving. | ||
* @throws java.io.IOException If any IOException occurs during configuration saving. | ||
*/ | ||
Writer saveConfig(String configName) throws IOException; | ||
|
||
/** | ||
* Especifies when ever this repository allows to save configuration | ||
* instances or not. | ||
* | ||
* @return true this repository allows to save configuration instances, | ||
* false otherwise. | ||
*/ | ||
boolean canSave(); | ||
} | ||
/* | ||
* Copyright 2015 Bridje Framework. | ||
* | ||
* 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. | ||
*/ | ||
|
||
package org.bridje.cfg; | ||
|
||
import java.io.IOException; | ||
import java.io.Reader; | ||
import java.io.Writer; | ||
|
||
/** | ||
* An interface that every configuration repository must implements. | ||
* | ||
* The ConfigService will use all the config repositories components to find and | ||
* saves configurations. | ||
*/ | ||
public interface ConfigRepository | ||
{ | ||
/** | ||
* Obtains a reader to the configuration resource by the given name. | ||
* | ||
* @param configName The name of the configuration. | ||
* @return A Reader from wich to read the configuracion instance. | ||
* @throws java.io.IOException If any IOException occurs during configuration retreval. | ||
*/ | ||
Reader findConfig(String configName) throws IOException; | ||
|
||
/** | ||
* Obtains a writer to the configuration resource by the given name. | ||
* | ||
* @param configName The name for this configuration instance. | ||
* @return The writer in wich to put the new configuration instance, | ||
* or null if this repository does not allows configuration saving. | ||
* @throws java.io.IOException If any IOException occurs during configuration saving. | ||
*/ | ||
Writer saveConfig(String configName) throws IOException; | ||
|
||
/** | ||
* Especifies when ever this repository allows to save configuration | ||
* instances or not. | ||
* | ||
* @return true this repository allows to save configuration instances, | ||
* false otherwise. | ||
*/ | ||
boolean canSave(); | ||
} |
Oops, something went wrong.