Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added Prestissimo to doc.

Prestissimo was the original Valhala idea.
  • Loading branch information...
commit a6cba6f8a7934d54ea45d8f2195e7591ece5c6c5 1 parent 478e14d
@technosophos authored
View
21 doc/original-design/PresstissimoFront.vala
@@ -0,0 +1,21 @@
+/**
+ * The Front Controller for Presstissimo
+ */
+
+uses Gee;
+
+namespace PresstissimoCore {
+
+ class Front : Object {
+
+ public Front(HashMap<Config> config) {
+
+ }
+
+ public int handle_request(string request_name) {
+
+ }
+
+ }
+
+}
View
49 doc/original-design/Prestissimo.vala
@@ -0,0 +1,49 @@
+/**
+ * Configuration classes for Presstissimo.
+ */
+
+using Gee;
+
+namespace Presstissimo {
+
+ /**
+ * The fluent interface for building Configuration objects.
+ */
+ class Register : GLib.Object {
+
+ private static Configuration inst = null;
+
+ public static Presstissimo.Configuration request_named(string name) {
+ var conf = get_configuration();
+
+
+ }
+
+ /*
+ public static Configuration logger_named(string name) {
+
+ }
+ */
+
+ public static Configuration get_configuration() {
+ if (inst == null) {
+ inst = new Configuration();
+ }
+ return inst;
+ }
+
+ }
+
+ /**
+ * Stores configuration data for Presstissimo.
+ */
+ class Configuration : GLib.Object {
+ protected List<SomeType> requests;
+ // protected List<SomeOtherType> loggers;
+ // protected List<SomeOtherType> caches;
+ // protected List<SomeOtherType> groups;
+ // protected List<SomeOtherType> requestMappers;
+ // protected List<SomeOtherType> loggers;
+ }
+
+}
View
20 doc/original-design/config.vala
@@ -0,0 +1,20 @@
+
+
+Prestissimo.Register
+ .request_named("default")
+ .that_runs("command1").using(typeof(Foo.SomeClass))
+ .with_param("some param")
+ .from("cxt:foo")
+ .whose_default_is().a_string("This is my default")
+ .and_runs("command2").using(typeof(SomeOtherClass))
+ .with_param("some other param").from("cxt:src")
+;
+
+Prestissimo
+ .Register
+ .logger_named('syslog')
+ .that_uses(typeof(SomeLogger))
+ .with_param("some_param").from("somewhere")
+;
+
+Presstissimo.Register.loggerNamed('syslogger')
Please sign in to comment.
Something went wrong with that request. Please try again.