Created
January 24, 2017 09:05
-
-
Save baybatu/0c4b9b41ed6981382b602633b88428c6 to your computer and use it in GitHub Desktop.
Spring managed olmayan yerden spring bean almak
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public boolean isValid(Long currencyId, ConstraintValidatorContext context) { | |
BaseApplicationScope baseApplicationScope = SpringApplicationContext.getBean(BaseApplicationScope.class); | |
return baseApplicationScope != null && baseApplicationScope.getCurrencyBy(currencyId) != null; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment