Articles Tagged ‘dependency injection’
Wednesday, November 9th, 2016
Setting up a larger application using dependency injection always requires us developers to set up our application’s object graph.
Programming in Go there is a library that eases this task for us, offering a reflect based injector to set up the graph in a few steps, named facebookgo-inject.
In the following article I’d like to demonstrate dependency injection using this library for a small sample application.
(more…)
Tags: dependency injection, di, facebook, facebookgo, go, golang, IoC
Posted in Development | No Comments »
Monday, April 16th, 2012
The OSGi Blueprint Container specification allows us to use dependency injection in our OSGi environment, declarative import and export of OSGi services, registering lifecycle listeners and wiring dependencies into our services with a few lines of XML code.
In the following tutorial we’re first building an OSGi bundle classical style and afterwards take a trip into the advantages of the Blueprint specification.
Our OSGi container of choice here will be Apache Karaf a lightweight container with a lot of nice features and – of course – blueprint enabled…
(more…)
Tags: apache karaf, bind, blueprint, bundle, dependency injection, export, felix, listener, maven, osgi, service, springdm, tutorial, wiring
Posted in Enterprise, Java | 13 Comments »
Sunday, August 22nd, 2010
There is still the urban myth that using Spring IoC container without thousands lines of XML code isn’t possible – so today we’re taking a look at annotation based configuration with Spring 3 and of course we’re using Maven..
(more…)
Tags: annotation, aop, aspectj, dependency injection, guice, IoC, JSR-250, JSR-330, maven, spring
Posted in Java | 5 Comments »
Tuesday, April 13th, 2010
The goal is to build a small macro plugin deployable via the Confluence plugin API rendering some spaces.
Please note that I am going to build the plugin using just Maven and not the Atlassian Maven Wrapper called the “Atlassian Plugin SDK” – more information about that is available at the Atlassian website.
The macro output will be rendered using a Velocity template and all messages are stored for i18n in properties files bundled with the plugin.
If you need to set up an instance of Confluence first, head over to this article. (more…)
Tags: Atlassian, Confluence, dependency injection, macro, maven, renderer, velocity
Posted in Confluence, Java | 10 Comments »