Created
November 17, 2016 11:07
-
-
Save edermfl/6dcdddd22f3405063b34fed9aa993913 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
public class GerenciadorContexto { | |
private static final ThreadLocal<IParametrosProcesso> contexto = | |
new ThreadLocal<IParametrosProcesso>(); | |
public static IParametrosProcesso getParametros() { | |
return contexto.get(); | |
} | |
public static void setParametros( | |
final IParametrosProcesso pParametros) { | |
contexto.set(pParametros); | |
} | |
public static void clean() { | |
contexto.set(null); | |
contexto.remove(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment