1 Reply Latest reply on Aug 5, 2013 10:45 AM by mkouba

    Declarative style of DI with WELD?

    venkat_nanda

      Weld seems to be very interesting but I am unable to understand few things here.

      1. Can we do a declarative style of dependency injections(have bunch of bean definitions in xml file like spring) or is it just through anntoations? If it can be done declaratively can anyone please give me the link to the tutorial or article?

      2. Is it possible to have a bean with application scope and with different state? For example I have a car object with carName property. Now I want to have two car objects in my application one with name benz and other with name honda, both of them in application scope. I dont want to write entire new class again while its just the name which is different here. Pleas ehelp em inuderstand how this can be achieved.