|
From: Dmitriy K. <dko...@ru...> - 2004-05-06 12:06:48
|
Thanks. Just corrected it.
Dmitriy.
Janek Bogucki wrote:
> 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
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by Sleepycat Software
> Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to
> deliver higher performing products faster, at low TCO.
> http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
> _______________________________________________
> Springframework-developer mailing list
> Spr...@li...
> https://lists.sourceforge.net/lists/listinfo/springframework-developer
|