public ObjectInfo(ObjectInfo parent, PropertyInfo prop)
 {
     Parent       = parent;
     FromProperty = true;
     PropertyDefinedAutowireAttribute        = prop.GetAutowireAttribute();
     PropertyDefinedChangePropertyAttributes = prop.GetChangePropertyAttributes();
     ObjectType = prop.PropertyType.GetCreateInstanceType(PropertyDefinedAutowireAttribute);
     ConfirmedPropertyAttributes = ConfirmedPropertyAttributesGetter.GetConfirmedPropertyAttributes(this, prop);
     Type      = ObjectType.GetShortAssemblyName();
     Singleton = PropertyDefinedAutowireAttribute.Singleton;
     Id        = this.GetObjectId();
 }
        public ObjectInfo(AutowireAttribute autowireAttribute, Type objectType)
        {
            Parent       = null;
            FromProperty = false;
            PropertyDefinedAutowireAttribute        = autowireAttribute;
            PropertyDefinedChangePropertyAttributes = objectType.GetChangePropertyAttributes();
            ObjectType = PropertyDefinedAutowireAttribute.Type;
            ConfirmedPropertyAttributes = ConfirmedPropertyAttributesGetter.GetConfirmedPropertyAttributes(this, null);
            Type      = ObjectType.GetShortAssemblyName();
            Singleton = PropertyDefinedAutowireAttribute.Singleton;
            Id        = this.GetObjectId();

            //PropertyDefinedAutowireAttribute = autowireAttribute;
            //ObjectAdoTemplateNameAttribute = objectType.GetAdoTemplateNameAttribute();
            //ObjectType = ObjectTypeUtil.GetObjectType(PropertyDefinedAutowireAttribute, objectType);
            //ChangeAdoTemplateAttributes = new List<ChangeAdoTemplateAttribute>();
            //ConfirmedPropertyAttributes = new List<PropertyAttribute>();

            //Type = ObjectTypeUtil.GetShortAssemblyName(ObjectType);
            //Singleton = PropertyDefinedAutowireAttribute.Singleton;
            //Id = ObjectIdUtil.GetObjectId(this);
        }