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; }
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); }