Platinum Partner

Butterfly DI Container 3.0.0

Version 3.0.0 contains support for using Butterfly Container as an internationalization mechanism for your application. You can internationalize (localize) both components, like NumberFormatter's, and texts.

In other words, when you request an instance of an object from the container, the Locale associated with the  thread calling the container, determines what concrete instance / text is returned. 

It is now also possible to tell the script parser what character encoding your script files are written in. That makes it possible to write Butterfly Container Script files in UTF-16, so you can internationalize your app's with ease.

 

You can find Butterfly DI Container here:

 

http://butterfly.jenkov.com

 

With release 3.0.0 all majore planned features are now implemented. Butterfly DI Container is now every bit as advanced a dependency injection container as the IOC container found in Spring, Guice or Pico container. In some areas it even exceeds these containers, for instance in configuration flexibility and instantiation performance. In fact, the goal of Butterfly DI Container is to become more than just an object wiring mechanism. Butterfly DI Container is far along the way towards becoming a central integration unit for all resources (both classes and external resources). Yet Butterfly DI Container is still only about 100 KB in jar file size.

 

Future releases will focus on nice-to-have stuff like string templating, increased script parsing performance etc. For instance, it would be nice to be able to configure a string like this:

 

myString = *  "This is a string where I want something inserted here {0}";

 

And, when you obtain this string from the container you can have a value injected into the {0}. For instance, like this:

String theString = (String) container.instance("myString", "insert this");

 

 

{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}