@Test public void test() { Bootstrap.start(); Conf conf = Singleton.get(Conf.class); Assert.assertNotNull(conf); conf.print(); }
@Override public void start() { Singleton.getAll().forEach( bean -> ClassUtils.getMethodsAnnotatedWith(bean.getClass(), Aspect.class) .forEach(method -> handleMethod(method, bean))); ProxyStore.init(); }
AopPlugin implements Plugin { @Override public void start() { Singleton.getAll().forEach( bean -> ClassUtils.getMethodsAnnotatedWith(bean.getClass(), Aspect.class) .forEach(method -> handleMethod(method, bean))); ProxyStore.init(); } }
AopPlugin implements Plugin { @Override public void start() { Singleton.getAll().forEach( bean -> ClassUtils.getMethodsAnnotatedWith(bean.getClass(), Aspect.class) .forEach(method -> handleMethod(method, bean))); ProxyStore.init(); }  }
AopPlugin implements Plugin { @Override public void start() { Singleton.getAll().forEach( bean -> ClassUtils.getMethodsAnnotatedWith(bean.getClass(), Aspect.class) .forEach(method -> handleMethod(method, bean))); ProxyStore.init(); }  @Override int order(); @Override void start(); @Override void stop(); }
AopPlugin implements Plugin { @Override public void start() { Singleton.getAll().forEach( bean -> ClassUtils.getMethodsAnnotatedWith(bean.getClass(), Aspect.class) .forEach(method -> handleMethod(method, bean))); ProxyStore.init(); }  @Override int order(); @Override void start(); @Override void stop();  }