Talk:Plain Old Java Object

From Wikipedia, the free encyclopedia

[[My opinion is that any general restriction or requirement other than those forced by the Java Language Specification on the java objects to be used in a program makes those objects not POJOs and those programming environments not strictly POJO compliant. In the case of annotations, requiring the existence of certain annotations is a restriction much like requiring the existence of certain methods. In addition, it also rules out the use of older versions of the JVM, including 1.4, which is still widely used in enterprise environments.


I guess we can debate the meaning of 'restriction'. At the very least, however, we should make it clear that the restriction placed by annotations is different from that placed by interfaces and base classes. While it may be (to quote you) 'much like requiring existence of certain methods', it is not the same.

The crucial difference is that annotations place no runtime dependencies: if they did, annotated POJOs would be no more lightweight than implementing marker interfaces.

Please redo my change and/or update it to your liking to emphasise this distinction.

Kennardconsulting 01:50, 21 August 2007 (UTC)

Contents

[edit] AfD discussion

Wikipedia:Articles for deletion/Plain Old Java Object  (aeropagitica)  (talk)  22:50, 21 April 2006 (UTC)

[edit] Please denote vernacular usage

This nomencalture is not part of a standard or specification. Please denote in the body of the article that such nomenclature should not be used in general and certainly not used in technical tests. (Common guys, you are going to crash planes with this stuff.)

[edit] Notability missing

Where is notability demonstrated for this subject?-- Mumia-w-18 20:21, 1 November 2007 (UTC)

A search on Google for "Plain Old Java Object" (in quotes - that exact phrase) gave 41,400 hits; the same search on Google Scholar gave 146 hits. I think that the latter at least constitutes 'presumed notability'?-- Richard Pawson —Preceding unsigned comment added by Rpawson (talk • contribs) 09:14, 2 November 2007 (UTC)

[edit] EJB3 is not POJO

I do not understand how anyone can say this.

-> I need the javax.persistence imports to compile -> The EJB3 annotations have runtime retention policy

EJB3 IS INVASIVE, not a DI POJO component model. If you can live with this go ahead, but don't tell its POJO. It does not even have dependency injection, it is a dependency lookup through annotations.

[Btw, it is not a pojo!|http://adminsight.de/2007/11/20/btw-it-is-not-a-pojo/] [It is dependency lookup, not injection|http://adminsight.de/2007/11/20/it-is-dependency-lookup-not-injection/] —Preceding unsigned PGTaboada (talk) 10:29, 20 November 2007 (UTC) ]]'Italic text'