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