Package rocket.beans.rebind.loadeagersingletons

Examples of rocket.beans.rebind.loadeagersingletons.GetEagerSingletonBeanNames


    final NewMethod newMethod = abstractMethod.copy(beanFactory);
    newMethod.setAbstract(false);
    newMethod.setFinal(true);
    newMethod.setNative(false);

    final GetEagerSingletonBeanNames body = new GetEagerSingletonBeanNames();
    newMethod.setBody(body);

    int eagerSingletonBeanCount = 0;
    int lazySingletonBeanCount = 0;

    final Iterator<Bean> beansIterator = beans.values().iterator();
    while (beansIterator.hasNext()) {
      final Bean bean = (Bean) beansIterator.next();

      if (false == bean.isSingleton()) {
        continue;
      }

      // only singletons can be singletons.
      final boolean eager = bean.isEagerLoaded();
      if (eager) {
        body.addBean(bean.getId());
        eagerSingletonBeanCount++;

        context.debug(bean.toString());
      } else {
        lazySingletonBeanCount++;
View Full Code Here

TOP

Related Classes of rocket.beans.rebind.loadeagersingletons.GetEagerSingletonBeanNames

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.