Created
August 8, 2017 17:29
-
-
Save gtudan/e4d325a9cd4f03ef9d99c2a103a34dc9 to your computer and use it in GitHub Desktop.
This file contains 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 String resolveCurrentTenantIdentifier() { | |
final HttpServletRequest httpServletRequest = CDI.current().select(HttpServletRequest.class).get(); | |
// POC: Don't do this in production | |
return httpServletRequest.getParameter("tenant"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment