01: /*
02: * Created on 10 Nov 2006
03: */
04: package uk.org.ponder.util;
05:
06: /**
07: * <p>Interface defining a factory which can return an Object instance
08: * (possibly shared or independent) when invoked.
09: *
10: * <p>This interface is typically used to encapsulate a generic factory which
11: * returns a new instance (prototype) of some target object on each invocation.
12: *
13: * <p>This interface has been introduced and removed from PonderUtilCore a number
14: * of times under the name "ObjectGetter" - on every occasion before now
15: * it has been determined that its use represented some kind of design error.
16: * The only current use is in {@link BeanExploder} so that it may receive
17: * inner bean definitions delivered via RSAC, resulting in a more concise
18: * Spring definition. This interface is defined here in PUC to avoid a dependence
19: * at this level on Spring.
20: */
21: public interface ObjectFactory {
22: public Object getObject();
23: }
|