It just means that com.test.checkDate has a static method called getPreviousDate . Creating factory objects com.test.checkDate . We do not know what type the returned object is, is not specified in the configuration, perhaps it is java.util.Date .
the type (class) of the returned object is not specified in the definition, but only the class containing the factory method.
constructor-arg simply passed as parameters to getPreviousDate . Since the method is static, it does not need an instance of checkDate . If itโs ridiculous to use constructor-arg to call a method that is technically not a constructor, think that the static method actually creates the object, so it will be easier to remember.
Since you mentioned โno factoryโ in an earlier version of your answer, you are probably thinking of creating an instance using an instance of a factory method that requires a factory-bean attribute, but this applies to Activation with a static factory method .
stivlo
source share