protected ManagedComponent(ComponentIdentifier id, Type type, IEnumerable <IBinderAttribute> binders, Type scope, WeldComponentManager manager, MethodInfo[] postConstructs) : base(id, type, binders, scope, manager) { PostConstructs = postConstructs; ContainsGenericParameters = Type.ContainsGenericParameters; IsDisposable = typeof(IDisposable).IsAssignableFrom(Type); ValidateMethodSignatures(); }
protected bool Equals(ComponentIdentifier other) { return(string.Equals(Key, other.Key) && ResolverType == other.ResolverType); }
protected AbstractComponent(string idSuffix, Type type, IAnnotations annotations, WeldComponentManager manager) : this(type, annotations, manager) { _id = new ComponentIdentifier(string.Format("{0}-{1}-{2}", manager.Id, GetType().Name, idSuffix)); }
protected AbstractComponent(ComponentIdentifier id, Type type, IAnnotations annotations, WeldComponentManager manager) : this(type, annotations, manager) { _id = id; }
protected AbstractComponent(string idSuffix, Type type, IEnumerable <IBinderAttribute> binders, Type scope, WeldComponentManager manager) : this(type, binders, scope, manager) { _id = new ComponentIdentifier(string.Format("{0}-{1}-{2}", manager.Id, GetType().Name, idSuffix)); }
protected AbstractComponent(ComponentIdentifier id, Type type, IEnumerable <IBinderAttribute> binders, Type scope, WeldComponentManager manager) : this(type, binders, scope, manager) { _id = id; }