use of org.webpieces.router.impl.mgmt.CachedBean in project webpieces by deanhiller.
the class BeanMetaData method start.
@Override
public void start() {
// We are NOW inside Guice and can call the providers
ManagedBeanMeta webpiecesBeans = webpiecesBeanMetaProvider.get();
ObjectTranslator objectTranslator = objectTranslatorProvider.get();
SimpleStorage storage = simpleStorageProvider.get();
// let's add any webpieces platform beans(we use our own stuff here)
cachedBeans.addAll(webpiecesBeans.getBeans());
for (CachedBean bean : cachedBeans) {
loadBean(objectTranslator, bean.getInjectee(), bean.getInterfaze());
}
loadFromDbAndSetProperties(storage, new PropertyInvoker(objectTranslator));
}
Aggregations