Domain models and Metro (was: First discussion - api/implpattern)
Niclas Hedhman
niclas at hedhman.org
Tue Oct 5 10:56:33 EDT 2004
On Tuesday 05 October 2004 22:47, David Leangen wrote:
> The main reason why I'm being so concerned (i.e. anal) about this right now
> is because I have plans to publish an API as part of an SDK. So, it has to
> be an API 100%.
Most APIs has a single entry class.
JNDI - InitialContext
XML - DocumentBuilderFactory
and so on. The people using the API will probably screw up :o) anyway, so
don't expect them to do stuff in main(), and your code doesn't have a main().
The guys above, normally employ some form of fallback strategy, such as
looking for files inside Jars, system properties and others.
Cheers
Niclas
--
+------//-------------------+
/ http://www.bali.ac /
/ http://niclas.hedhman.org /
+------//-------------------+
More information about the support-dpml
mailing list