|
From: Janek B. <ya...@st...> - 2004-05-06 11:26:07
|
From MethodInvokingFactoryBean from springframework 1.0.1, it looks as
if the non-Javadoc comment on getObjectType should be on getObject.
public Object getObject() throws Exception {
if (this.singleton) {
if (this.singletonObject == null) {
this.singletonObject = invoke();
}
return this.singletonObject;
}
return invoke();
}
/*
* Will return the same value each time if the singleton property is
set
* to true, and otherwise return the value returned from invoking the
* specified method.
*/
public Class getObjectType() {
Class type = getPreparedMethod().getReturnType();
if (type.equals(void.class)) {
type = VoidType.class;
}
return type;
}
-Janek
|