1 16 17 package org.springframework.beans.factory.config; 18 19 import org.springframework.beans.BeanMetadataElement; 20 import org.springframework.beans.MutablePropertyValues; 21 import org.springframework.core.AttributeAccessor; 22 23 39 public interface BeanDefinition extends AttributeAccessor, BeanMetadataElement { 40 41 46 String SCOPE_SINGLETON = ConfigurableBeanFactory.SCOPE_SINGLETON; 47 48 53 String SCOPE_PROTOTYPE = ConfigurableBeanFactory.SCOPE_PROTOTYPE; 54 55 56 60 int ROLE_APPLICATION = 0; 61 62 71 int ROLE_SUPPORT = 1; 72 73 79 int ROLE_INFRASTRUCTURE = 2; 80 81 82 89 String getBeanClassName(); 90 91 96 void setBeanClassName(String beanClassName); 97 98 103 ConstructorArgumentValues getConstructorArgumentValues(); 104 105 110 MutablePropertyValues getPropertyValues(); 111 112 113 116 String getScope(); 117 118 123 void setScope(String scope); 124 125 129 boolean isSingleton(); 130 131 134 boolean isAbstract(); 135 136 140 boolean isLazyInit(); 141 142 143 147 String getResourceDescription(); 148 149 157 int getRole(); 158 159 } 160 | Popular Tags |