Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Map<Pair<Type, Boolean>, Function<User, Boolean>> functionInterfaces = new HashMap<>();
- {
- functionInterfaces .put(Pair.of(Type.MY_TYPE, Boolean.TRUE), MySpringService::myTypeMethod);
- }
- public static boolean myTypeMethod(User user)
- private static final MySpringService mySpringService = ApplicationInitializer.getAppContext().getBean(MySpringService.class);
Add Comment
Please, Sign In to add comment