You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tamaya.apache.org by an...@apache.org on 2015/03/17 20:40:52 UTC
svn commit: r1667380 - /incubator/tamaya/site/trunk/content/quickstart.mdtext
Author: anatole
Date: Tue Mar 17 19:40:52 2015
New Revision: 1667380
URL: http://svn.apache.org/r1667380
Log:
Fixed example formatting.
Modified:
incubator/tamaya/site/trunk/content/quickstart.mdtext
Modified: incubator/tamaya/site/trunk/content/quickstart.mdtext
URL: http://svn.apache.org/viewvc/incubator/tamaya/site/trunk/content/quickstart.mdtext?rev=1667380&r1=1667379&r2=1667380&view=diff
==============================================================================
--- incubator/tamaya/site/trunk/content/quickstart.mdtext (original)
+++ incubator/tamaya/site/trunk/content/quickstart.mdtext Tue Mar 17 19:40:52 2015
@@ -112,28 +112,27 @@ let Tamaya implement a configuration tem
corresponding configuration:
- public class MyType{
+ public class MyType{
- @ConfiguredProperty("name")
- private String typeName;
+ @ConfiguredProperty("name")
+ private String typeName;
- public String getName(){
- return name;
- }
+ public String getName(){
+ return name;
+ }
- }
-
- MyType type = new MyType();
- ConfigurationInjector.configure(type);
+ }
+ MyType type = new MyType();
+ ConfigurationInjector.configure(type);
Or the same as template:
- public interface MyTypeTemplate{
+ public interface MyTypeTemplate{
- @ConfiguredProperty("name")
- public String getName();
+ @ConfiguredProperty("name")
+ public String getName();
- }
+ }
- MyTypeTemplate type = ConfigurationInjector.createTemplate(MyTypeTemplate.class);
\ No newline at end of file
+ MyTypeTemplate type = ConfigurationInjector.createTemplate(MyTypeTemplate.class);