Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyComponent {
- private MyOtherComponentImpl otherComponent = Registry.get("MyOtherComponent", this);
- private MyThirdComponent thirdComponent = otherComponent.getFactory(Registry.get("config"));
- public MyComponent performAction()
- {
- if(otherComponent.isConditionOk())
- {
- innerAction();
- otherComponent.supply(this);
- thirdComponent.ifActive(() -> this::innerAction);
- MyThirdComponent.finalizeExecution(this);
- }
- return this;
- }
- private void innerAction()
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement