Unless [lang] would use it internally all over the place. Is there a case for
that? How is the interface useful without parameters?
Gary
> -Original Message-
> From: Stephen Colebourne [mailto:scolebou...@btopenworld.com]
> Sent: Saturday, December 26, 2009 15:55
> To: Commons Developers
Once upon a time, there was a commons sandbox project that held all
sorts of small interfaces just like this one. It was called commons-pattern.
It didn't suceed, because these interfaces really need to be provided by
the JDK and implemented by all the JDK classes to be successful. Beyond
that
Please pick another name, whatever else you do. JAXB uses ObjectFactory.
-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org
Can you give some concrete examples?
Also, nit-picking on the name, since everything that is created IS an Object,
having "Object" in the name is redundant IMO. This says the same:
public interface Factory {
T create();
}
Gary
> -Original Message-
> From: Oliver Heger [mailto:oli
Let me draw an analogy with Adoby Flex:
There is an IFactory interface that servers for the same purpose and is
quite useful.
The problem it solves is the following:
Typically (in Flex) object initialization is not only constructor
invocation, but also setting certain properties and invoking diff
This interface seems so generic as to be difficult to understand what the
motivation is.
I can see the point of a one method interface like Comparable, but how does
ObjectFactory help? Is your goal documentation? Name standardization?
Reflection marker?
On Sat, Dec 26, 2009 at 11:34 AM, Oliver
With Java 1.5 it is possible to define a generic interface for creating
an object:
public interface ObjectFactory {
T create();
}
This is a proposal to add such an interface to [lang] 3.0 with a couple
of default implementations, e.g.
- a ConstantObjectFactory returning always the same co
To whom it may engage...
This is an automated request, but not an unsolicited one. For
more information please visit http://gump.apache.org/nagged.html,
and/or contact the folk at gene...@gump.apache.org.
Project commons-configuration-test has an issue affecting its community
integrati
Thanks.
So it seems we all agree :-)
Oliver
Henri Yandell schrieb:
Seems fine to me.
On Thu, Dec 24, 2009 at 11:37 AM, Oliver Heger
wrote:
Thanks for the feedback so far. However, before taking concrete actions I
would like to put the question again in a broader scope.
The question is: Is