Petite
Quick Overview
@PetiteBean
public class Foo {
// dependency injected in the ctor
@PetiteInject
public Foo(ServiceOne one) {...}
// dependency injected in a field
@PetiteInject("serviceTwo")
ServiceTwo two;
// dependency injected with the method
@PetiteInject
public void injectService(ServiceThree three) {...}
// dependency injected with the method
public void injectService(
@PetiteInject ServiceFour four) {...}
// initialization method
@PetiteInitMethod
public void init() {...}
public void foo() {
}
}Why should I use it?
Last updated