@Component public class MyComponent { } @Component public class MyComponent { @Requirement private OtherComponent otherComponent; } @Component public class MyComponent { @RequirementConfiguration(configuration = "myConfig") private String configValue; } @Component public class MyComponent { @Requirement(hint = "implementation1") private OtherComponent otherComponent; } @Component public class MyComponent { @Requirement(role = OtherComponent.class) private OtherComponent otherComponent; }


上一篇:
下一篇:
切换中文