示例#1
0
 public Scopifier(BeanDefinitionRegistry registry, string scope, bool proxyTargetClass, bool scoped) : base(new StringValueResolverAnonymousInnerClass())
 {
     this.registry         = registry;
     this.proxyTargetClass = proxyTargetClass;
     this.scope            = scope;
     this.scoped           = scoped;
 }
示例#2
0
        public static BeanDefinitionHolder createScopedProxy(string beanName, BeanDefinition definition, BeanDefinitionRegistry registry, bool proxyTargetClass)
        {
            BeanDefinitionHolder proxyHolder = ScopedProxyUtils.createScopedProxy(new BeanDefinitionHolder(definition, beanName), registry, proxyTargetClass);

            registry.registerBeanDefinition(beanName, proxyHolder.BeanDefinition);
            return(proxyHolder);
        }