Move registration to own module

This commit is contained in:
Mike Bierlee 2014-05-20 21:38:14 +02:00
parent 990c9f017b
commit ac077c24d7
2 changed files with 11 additions and 8 deletions

View file

@ -3,14 +3,7 @@ module poodinis.container;
import std.string;
import std.array;
struct Registration {
TypeInfo registeredType = null;
TypeInfo_Class instantiatableType = null;
public Object getInstance() {
return instantiatableType.create();
}
}
public import poodinis.registration;
class RegistrationException : Exception {
this(string message, TypeInfo registeredType, TypeInfo_Class instantiatableType) {

View file

@ -0,0 +1,10 @@
module poodinis.registration;
struct Registration {
TypeInfo registeredType = null;
TypeInfo_Class instantiatableType = null;
public Object getInstance() {
return instantiatableType.create();
}
}