public BeanContainer loadFromClasses(Class<?>[] classes) throws IllegalStateException{ log.debug("Load beans from {} classes",classes.length); ensureContainerNotInited(); this.annotationBeanDefinitionLoader.load(this,classes); return this; }
/** * Loads all the beans definitions from the given resources. * * <p/> * * throws {@link IllegalStateException} if this container already finish loading. */ public BeanContainer loadFromResources(AppResource[] resources) throws IllegalStateException { log.debug("Load beans from {} resources", resources.length); ensureContainerNotInited(); this.xmlBeanDefinitionLoader.load(resources); return this; }