Example #1
0
        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();
        }
Example #2
0
 protected bool Equals(ComponentIdentifier other)
 {
     return(string.Equals(Key, other.Key) && ResolverType == other.ResolverType);
 }
Example #3
0
 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));
 }
Example #4
0
 protected AbstractComponent(ComponentIdentifier id, Type type, IAnnotations annotations, WeldComponentManager manager)
     : this(type, annotations, manager)
 {
     _id = id;
 }
Example #5
0
 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));
 }
Example #6
0
 protected AbstractComponent(ComponentIdentifier id, Type type, IEnumerable <IBinderAttribute> binders, Type scope,
                             WeldComponentManager manager)
     : this(type, binders, scope, manager)
 {
     _id = id;
 }