Here I want to present a project I
have been working on for the past few weeks.
As my app server of choice is JBoss AS 7 I started experimenting with CDI
Extensions.
(CDI = Context & Dependency Injection)
CDI implements extensibility by Portable Extensions which can be used by
dropping the jar in your WEB-INF7lib directory..
Actually there is a whole lot more ways to extend the CDI framework (like
custom qualifiers, stereotypes etc but for now let's stick to the subject
"portable extensions" )
By implementing a cdi portable extension you can leverage the power of the JEE
environment (like transactions, lifecycle mgmt by the container..)
So by implementing different listeners for lifecycle events we can perform
startup tasks like initialization, validation, instanciation or cleanup and
shutdown tasks
For including Neo4j in a project please have a look at
http://docs.neo4j.org/chunked/stable/tutorials-java-embedded-setup.html
Basically what I did is this:
I have used jo4neo in a larger project and was happy with it as I was looking for an object-graph mapper other than Spring Data (one that is lightweight but still gets the job done).
But you know how it is, you always find new spots in your own code to "refactor" ;) That's when my idea of this portable extension was born.
Please let me know who to talk to regarding committing this to the current git repo.
Greetings from Germany,
p.salg
<w:LsdExce...
Show original
<w:LsdExce...
Show original