congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
EJBClientContext.getContextManager
Code IndexAdd Tabnine to your IDE (free)

How to use
getContextManager
method
in
org.jboss.ejb.client.EJBClientContext

Best Java code snippets using org.jboss.ejb.client.EJBClientContext.getContextManager (Showing top 9 results out of 315)

origin: wildfly/wildfly

/**
 * Get the context manager.  Simply calls the {@code static} method {@link #getContextManager()}.
 *
 * @return the context manager (not {@code null})
 */
public ContextManager<EJBClientContext> getInstanceContextManager() {
  return getContextManager();
}
origin: wildfly/wildfly

public void stop(final StopContext context) {
  clientContext = null;
  if (makeGlobal) {
    doPrivileged((PrivilegedAction<Void>) () -> {
      EJBClientContext.getContextManager().setGlobalDefault(null);
      return null;
    });
  }
}
origin: wildfly/wildfly

@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;
  });
}
origin: wildfly/wildfly

  });
EJBClientContext.getContextManager().setClassLoaderDefault(classLoader, ejbClientContext);
Discovery.getContextManager().setClassLoaderDefault(classLoader, discoveryInjector.getValue());
return null;
origin: wildfly/wildfly

if (makeGlobal) {
  doPrivileged((PrivilegedAction<Void>) () -> {
    EJBClientContext.getContextManager().setGlobalDefault(clientContext);
    return null;
  });
origin: org.jboss.eap/wildfly-client-all

/**
 * Get the context manager.  Simply calls the {@code static} method {@link #getContextManager()}.
 *
 * @return the context manager (not {@code null})
 */
public ContextManager<EJBClientContext> getInstanceContextManager() {
  return getContextManager();
}
origin: wildfly/jboss-ejb-client

/**
 * Get the context manager.  Simply calls the {@code static} method {@link #getContextManager()}.
 *
 * @return the context manager (not {@code null})
 */
public ContextManager<EJBClientContext> getInstanceContextManager() {
  return getContextManager();
}
origin: org.jboss.eap/wildfly-jsr77

@Override
public void stop(StopContext context) {
  deploymentRepositoryValue.getValue().remove(moduleIdentifier);
  doPrivileged((PrivilegedAction<Void>) () -> {
    final ClassLoader classLoader = getClass().getClassLoader();
    EJBClientContext.getContextManager().setClassLoaderDefault(classLoader, null);
    Discovery.getContextManager().setClassLoaderDefault(classLoader, null);
    return null;
  });
}
origin: org.jboss.eap/wildfly-jsr77

@Override
public void start(StartContext context) throws StartException {
  final DeploymentRepository repository = deploymentRepositoryValue.getValue();
  moduleIdentifier = new DeploymentModuleIdentifier(APP_NAME, MODULE_NAME, DISTINCT_NAME);
  final InjectedValue<ComponentView> injectedHomeView = new InjectedValue<ComponentView>();
  injectedHomeView.setValue(new ImmediateValue<ComponentView>(new ManagementHomeEjbComponentView()));
  final InjectedValue<ComponentView> injectedRemoteView = new InjectedValue<ComponentView>();
  injectedRemoteView.setValue(new ImmediateValue<ComponentView>(new ManagementRemoteEjbComponentView(mbeanServerValue.getValue())));
  Map<String, InjectedValue<ComponentView>> views = new HashMap<String, InjectedValue<ComponentView>>();
  views.put(ManagementHome.class.getName(), injectedHomeView);
  views.put(Management.class.getName(), injectedRemoteView);
  final EjbDeploymentInformation ejb = new ManagementEjbDeploymentInformation(EJB_NAME, views, SecurityActions.getClassLoader(this.getClass()));
  final ModuleDeployment deployment = new ModuleDeployment(moduleIdentifier, Collections.singletonMap(EJB_NAME, ejb));
  repository.add(moduleIdentifier, deployment);
  repository.startDeployment(moduleIdentifier);
  doPrivileged((PrivilegedAction<Void>) () -> {
    final ClassLoader classLoader = getClass().getClassLoader();
    EJBClientContext.getContextManager().setClassLoaderDefault(classLoader, ejbClientContextValue.getValue().getClientContext());
    Discovery.getContextManager().setClassLoaderDefault(classLoader, Discovery.create(associationServiceInjector.getValue().getLocalDiscoveryProvider()));
    return null;
  });
}
org.jboss.ejb.clientEJBClientContextgetContextManager

Javadoc

Get the context manager.

Popular methods of EJBClientContext

  • setSelector
  • getAttachment
  • <init>
  • calculateMethodInterceptors
  • create
  • createSession
  • createSessionCreationInvocationContext
  • getClassPathInterceptors
  • getClusterNodeSelector
  • getConfiguredConnections
    Get the pre-configured connections for this context. This information may not be used by some transp
  • getConfiguredPerClassInterceptors
  • getConfiguredPerMethodInterceptors
  • getConfiguredPerClassInterceptors,
  • getConfiguredPerMethodInterceptors,
  • getCurrent,
  • getDeploymentNodeSelector,
  • getGlobalInterceptors,
  • getInterceptors,
  • getInvocationTimeout,
  • getMaximumConnectedClusterNodes,
  • getTransportProvider

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • getResourceAsStream (ClassLoader)
  • requestLocationUpdates (LocationManager)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now