public ContextManager<AuthenticationContext> getInstanceContextManager() { return getContextManager(); }
@Override public void stop(StopContext context) { // de-associate the EJB client context with the deployment classloader doPrivileged((PrivilegedAction<Void>) () -> { final ModuleClassLoader classLoader = module.getClassLoader(); EjbLogger.DEPLOYMENT_LOGGER.debugf("unRegistering EJB client context for classloader %s", classLoader); EJBClientContext.getContextManager().setClassLoaderDefault(classLoader, null); Discovery.getContextManager().setClassLoaderDefault(classLoader, null); // this is redundant but should be safe AuthenticationContext.getContextManager().setClassLoaderDefault(classLoader, null); return null; }); }
final ModuleClassLoader classLoader = module.getClassLoader(); EjbLogger.DEPLOYMENT_LOGGER.debugf("Registering EJB client context %s for classloader %s", ejbClientContext, classLoader); final ContextManager<AuthenticationContext> authenticationContextManager = AuthenticationContext.getContextManager(); final RemotingProfileService profileService = profileServiceInjectedValue.getOptionalValue(); if (profileService != null || ejbClientClustersAuthenticationContext != null) {
public ContextManager<AuthenticationContext> getInstanceContextManager() { return getContextManager(); }
public ContextManager<AuthenticationContext> getInstanceContextManager() { return getContextManager(); }
public ContextManager<AuthenticationContext> getInstanceContextManager() { return getContextManager(); }
@Override public void undeploy(DeploymentUnit unit) { AuthenticationContext.getContextManager().setClassLoaderDefault(unit.getAttachment(MODULE).getClassLoader(), null); }
@Override public void deploy(DeploymentPhaseContext context) throws DeploymentUnitProcessingException { AuthenticationContext authenticationContext = context.getAttachment(AUTHENTICATION_CONTEXT_KEY); if (authenticationContext != null) { AuthenticationContext.getContextManager().setClassLoaderDefault( context.getDeploymentUnit().getAttachment(MODULE).getClassLoader(), authenticationContext); } }