Changeset 974 for AnalyzerBeans/trunk/src/main/java/org/eobjects/analyzer/descriptors/AbstractBeanDescriptor.java
- Timestamp:
- 08/14/10 11:12:43 (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AnalyzerBeans/trunk/src/main/java/org/eobjects/analyzer/descriptors/AbstractBeanDescriptor.java
r971 r974 52 52 Configured configuredAnnotation = field 53 53 .getAnnotation(Configured.class); 54 Provided providedAnnotation = field.getAnnotation(Provided.class); 55 56 if (configuredAnnotation != null && providedAnnotation != null) { 57 throw new DescriptorException( 58 "The field " 59 + field 60 + " is annotated with both @Configured and @Provided, which are mutually exclusive."); 61 } 62 54 63 if (configuredAnnotation != null) { 55 64 if (!field.isAnnotationPresent(Inject.class)) { … … 62 71 } 63 72 64 Provided providedAnnotation = field.getAnnotation(Provided.class);65 73 if (providedAnnotation != null) { 66 74 if (!field.isAnnotationPresent(Inject.class)) { … … 87 95 Method[] methods = beanClass.getDeclaredMethods(); 88 96 for (Method method : methods) { 89 Configured configuredAnnotation = method90 .getAnnotation(Configured.class);91 if (configuredAnnotation != null) {92 if (!method.isAnnotationPresent(Inject.class)) {93 logger.warn(94 "No @Inject annotation found for @Configured method: {}",95 method);96 }97 _configuredProperties.add(new ConfiguredPropertyDescriptorImpl(98 method));99 }100 101 Provided providedAnnotation = method.getAnnotation(Provided.class);102 if (providedAnnotation != null) {103 if (!method.isAnnotationPresent(Inject.class)) {104 logger.warn(105 "No @Inject annotation found for @Provided method: {}",106 method);107 }108 _providedProperties.add(new ProvidedPropertyDescriptorImpl(109 method));110 }111 112 97 Initialize initializeAnnotation = method 113 98 .getAnnotation(Initialize.class);
Note: See TracChangeset
for help on using the changeset viewer.
