congrats Icon
New! Announcing our next generation AI code completions
Read here
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

  • Start an intent from android
  • getSupportFragmentManager (FragmentActivity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • startActivity (Activity)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Vector (java.util)
    Vector is an implementation of List, backed by an array and synchronized. All optional operations in
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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