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 @@ -362,10 +362,13 @@ public void setBeanClass(Class<?> beanClass) {
362
362
}
363
363
364
364
/**
365
- * Return the class of the wrapped bean, if already resolved.
366
- * @return the bean class, or {@code null} if none defined
365
+ * Return the class of the wrapped bean (assuming it is resolved already) .
366
+ * @return the bean class (never {@code null})
367
367
* @throws IllegalStateException if the bean definition does not define a bean class,
368
- * or a specified bean class name has not been resolved into an actual Class
368
+ * or a specified bean class name has not been resolved into an actual Class yet
369
+ * @see #hasBeanClass()
370
+ * @see #setBeanClass(Class)
371
+ * @see #resolveBeanClass(ClassLoader)
369
372
*/
370
373
public Class <?> getBeanClass () throws IllegalStateException {
371
374
Object beanClassObject = this .beanClass ;
@@ -381,6 +384,9 @@ public Class<?> getBeanClass() throws IllegalStateException {
381
384
382
385
/**
383
386
* Return whether this definition specifies a bean class.
387
+ * @see #getBeanClass()
388
+ * @see #setBeanClass(Class)
389
+ * @see #resolveBeanClass(ClassLoader)
384
390
*/
385
391
public boolean hasBeanClass () {
386
392
return (this .beanClass instanceof Class );
You can’t perform that action at this time.
0 commit comments