Re: Factory method for dependency injection

2023-03-03 Thread Bogoljub Pavičić
Hi, I followed your instructions and it works! For anyone interested my implementation of the config provider is: @Override public void register(ContainerBuilder builder, LocatableProperties props) throws ConfigurationException { builder.factory(Bean.class, new Factory() {

Re: Factory method for dependency injection

2023-02-28 Thread Lukasz Lenart
sob., 25 lut 2023 o 12:47 Bogoljub Pavičić <276ee31...@proton.me.invalid> napisał(a): > > Hi, > > is it possible to produce beans using a factory method with struts2 default > ioc container? > I want to inject an ObjectMapper but I want to configure the bean before > inserting it in the container