Search in sources :

Example 1 with CachedBean

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));
}
Also used : ObjectTranslator(org.webpieces.router.impl.params.ObjectTranslator) ManagedBeanMeta(org.webpieces.router.impl.mgmt.ManagedBeanMeta) SimpleStorage(org.webpieces.router.api.extensions.SimpleStorage) CachedBean(org.webpieces.router.impl.mgmt.CachedBean)

Aggregations

SimpleStorage (org.webpieces.router.api.extensions.SimpleStorage)1 CachedBean (org.webpieces.router.impl.mgmt.CachedBean)1 ManagedBeanMeta (org.webpieces.router.impl.mgmt.ManagedBeanMeta)1 ObjectTranslator (org.webpieces.router.impl.params.ObjectTranslator)1