@Component
@Provides(specifications= {FooService.class, BarService.class})
public class ProvidesProperties implements FooService, BarService {
@ServiceProperty(name = "foo")
public int m_foo = 0;
@ServiceProperty(name="bar", mandatory=true)
public int m_bar;
// ...
}
|