Ejemplo n.º 1
0
        public IBeanConfiguration RegisterWithLifecycle(String beanName, Object obj)
        {
            ParamChecker.AssertParamNotNull(beanName, "beanName");
            ParamChecker.AssertParamNotNull(obj, "externalBean (" + beanName + ")");
            BeanInstanceConfiguration beanConfiguration = new BeanInstanceConfiguration(obj, beanName, true, props);

            AddBeanConfiguration(beanConfiguration);
            return(beanConfiguration);
        }
Ejemplo n.º 2
0
        public IBeanConfiguration RegisterExternalBean(String beanName, Object externalBean)
        {
            ParamChecker.AssertParamNotNull(beanName, "beanName");
            ParamChecker.AssertParamNotNull(externalBean, "externalBean (" + beanName + ")");
            BeanInstanceConfiguration beanConfiguration = new BeanInstanceConfiguration(externalBean, beanName, false, props);

            AddBeanConfiguration(beanConfiguration);
            return(beanConfiguration);
        }