File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
spring-beans/src/main/java/org/springframework/beans/factory/support Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -397,10 +397,13 @@ public void setBeanClass(@Nullable Class<?> beanClass) {
397
397
}
398
398
399
399
/**
400
- * Return the class of the wrapped bean, if already resolved.
401
- * @return the bean class, or {@code null} if none defined
400
+ * Return the class of the wrapped bean (assuming it is resolved already) .
401
+ * @return the bean class (never {@code null})
402
402
* @throws IllegalStateException if the bean definition does not define a bean class,
403
- * or a specified bean class name has not been resolved into an actual Class
403
+ * or a specified bean class name has not been resolved into an actual Class yet
404
+ * @see #hasBeanClass()
405
+ * @see #setBeanClass(Class)
406
+ * @see #resolveBeanClass(ClassLoader)
404
407
*/
405
408
public Class <?> getBeanClass () throws IllegalStateException {
406
409
Object beanClassObject = this .beanClass ;
@@ -416,6 +419,9 @@ public Class<?> getBeanClass() throws IllegalStateException {
416
419
417
420
/**
418
421
* Return whether this definition specifies a bean class.
422
+ * @see #getBeanClass()
423
+ * @see #setBeanClass(Class)
424
+ * @see #resolveBeanClass(ClassLoader)
419
425
*/
420
426
public boolean hasBeanClass () {
421
427
return (this .beanClass instanceof Class );
You can’t perform that action at this time.
0 commit comments