23 #include "AppContext.h"
25 BeanException::BeanException(
string message)
27 this->setMessage(message);
30 BeanException::~BeanException() throw()
37 void AppContext::init()
45 AppContext::AppContext() {
50 AppContext::~AppContext() {
54 bool AppContext::registerComponent(
string name)
57 if(_instance->components.find(name)!=_instance->components.end())
63 _instance->components[name] =
"";
68 bool AppContext::unregisterComponent(
string name)
71 map<string,string>::iterator it = _instance->components.find(name);
72 if(it!=_instance->components.end())
74 _instance->components.erase(it);
81 void AppContext::lookup(
string name)
84 throw new Exception(
"Bean Container Not Running");
85 if(_instance->components.find(name)==_instance->components.end())