nico
nico

Reputation: 21

How can Guice annotated injections be converted to Spring dependency injection

I set up this binding with Guice

bindConstant().annotatedWith( SecurityCookie.class ).to("JSESSIONID");

I need to migrate to Spring. What would be the equivalent code with Spring ?

Upvotes: 1

Views: 267

Answers (1)

Andrey Adamovich
Andrey Adamovich

Reputation: 20663

Use FieldRetrievingFactoryBean.

Upvotes: 2

Related Questions