Currently, I am considering to use Guava Suppliers for delayed
initialization in workers
SupplierT supplier = (Serializable SupplierT) () - new T();
SupplierT singleton = Suppliers.memoize(supplier);
On 26 June 2015 at 13:17, Igor Berman igor.ber...@gmail.com wrote:
asked myself same question today...actually depends on what you are trying
to do
if you want injection into workers code I think it will be a bit hard...
if only in code that driver executes i.e. in main, it's straight forward
imho, just create your classes from injector(e.g. spring's application
context)
On 26 June 2015 at 15:49, Michal Čizmazia mici...@gmail.com wrote:
How to use Dependency Injection with Spark Java? Please could you point
me to any articles/frameworks?
Thanks!