public ConfigurationClassProxyTypeBuilder(Type configurationClassType, IConfigurationClassInterceptor interceptor) { if (configurationClassType.IsSealed) { throw new ArgumentException(String.Format( "[Configuration] classes '{0}' cannot be sealed [{0}].", configurationClassType.FullName)); } this.Name = "ConfigurationClassProxy"; this.DeclaredMembersOnly = false; this.BaseType = configurationClassType; this.TargetType = configurationClassType; this.interceptor = interceptor; }
/// <summary> /// Creates a new instance of the <see cref="ConfigurationClassEnhancer"/> class. /// </summary> /// <param name="objectFactory"> /// The supplied ObjectFactory to check for the existence of object definitions. /// </param> public ConfigurationClassEnhancer(IConfigurableListableObjectFactory objectFactory) { AssertUtils.ArgumentNotNull(objectFactory, "objectFactory"); this.interceptor = new ConfigurationClassInterceptor(objectFactory); }
/// <summary> /// Creates a new instance of the <see cref="ConfigurationClassEnhancer"/> class. /// </summary> /// <param name="objectFactory"> /// The supplied ObjectFactory to check for the existence of object definitions. /// </param> public ConfigurationClassEnhancer(IConfigurableListableObjectFactory objectFactory) { AssertUtils.ArgumentNotNull(objectFactory, "objectFactory"); this.interceptor = new ConfigurationClassInterceptor(objectFactory); }
public ConfigurationClassProxyTypeBuilder(Type configurationClassType, IConfigurationClassInterceptor interceptor) { if (configurationClassType.IsSealed) { throw new ArgumentException(String.Format( "[Configuration] classes '{0}' cannot be sealed [{0}].", configurationClassType.FullName)); } this.Name = "ConfigurationClassProxy"; this.DeclaredMembersOnly = true; this.BaseType = configurationClassType; this.TargetType = configurationClassType; this.interceptor = interceptor; }