congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
EJBClientContext.getConfiguredPerClassInterceptors
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: wildfly/wildfly

Builder(final EJBClientContext clientContext) {
  globalInterceptors = Arrays.stream(clientContext.globalInterceptors.getInformation()).collect(Collectors.toCollection(ArrayList::new));
  classInterceptors = new ArrayList<>();
  for (Map.Entry<String, InterceptorList> entry : clientContext.getConfiguredPerClassInterceptors().entrySet()) {
    final String className = entry.getKey();
    for (EJBClientInterceptorInformation information : entry.getValue().getInformation()) {
      classInterceptors.add(new ClassInterceptor(className, information));
    }
  }
  methodInterceptors = new ArrayList<>();
  for (Map.Entry<String, Map<EJBMethodLocator, InterceptorList>> entry : clientContext.getConfiguredPerMethodInterceptors().entrySet()) {
    final String className = entry.getKey();
    for (Map.Entry<EJBMethodLocator, InterceptorList> entry1 : entry.getValue().entrySet()) {
      final EJBMethodLocator methodLocator = entry1.getKey();
      for (EJBClientInterceptorInformation information : entry1.getValue().getInformation()) {
        methodInterceptors.add(new MethodInterceptor(className, methodLocator, information));
      }
    }
  }
  transportProviders = new ArrayList<>();
  Collections.addAll(transportProviders, clientContext.transportProviders);
  clientConnections = new ArrayList<>();
  clientConnections.addAll(clientContext.getConfiguredConnections());
  clientClusters = new ArrayList<>();
  clientClusters.addAll(clientContext.configuredClusters.values());
  clusterNodeSelector = clientContext.clusterNodeSelector;
  deploymentNodeSelector = clientContext.deploymentNodeSelector;
  invocationTimeout = clientContext.invocationTimeout;
}
origin: wildfly/wildfly

static <T> EJBProxyInterceptorInformation<T> construct(Class<T> clazz, EJBClientContext clientContext) {
  final EJBProxyInformation<T> proxyInformation = EJBProxyInformation.forViewType(clazz);
  final Collection<EJBProxyInformation.ProxyMethodInfo> methods = proxyInformation.getMethods();
  final String className = clazz.getName();
  final InterceptorList list0 = EJBClientContext.defaultInterceptors;
  final InterceptorList list1 = clientContext.getGlobalInterceptors();
  final InterceptorList list2 = clientContext.getClassPathInterceptors();
  final InterceptorList list3 = clientContext.getConfiguredPerClassInterceptors().getOrDefault(className, EMPTY);
  final InterceptorList list5 = proxyInformation.getClassInterceptors();
  final IdentityHashMap<Method, InterceptorList> interceptorsByMethod = new IdentityHashMap<>(methods.size());
  final HashMap<InterceptorList, InterceptorList> cache = new HashMap<>();
  cache.computeIfAbsent(list0, Function.identity());
  final InterceptorList tailList = list3.combine(list2).combine(list1).combine(list0);
  cache.computeIfAbsent(tailList, Function.identity());
  for (EJBProxyInformation.ProxyMethodInfo method : methods) {
    // compile interceptor information
    final InterceptorList list4 = clientContext.getConfiguredPerMethodInterceptors().getOrDefault(className, emptyMap()).getOrDefault(method.getMethodLocator(), EMPTY);
    final InterceptorList list6 = method.getInterceptors();
    interceptorsByMethod.put(method.getMethod(), cache.computeIfAbsent(list6.combine(list5).combine(list4).combine(tailList), Function.identity()));
  }
  return new EJBProxyInterceptorInformation<T>(proxyInformation, interceptorsByMethod, cache.computeIfAbsent(list5.combine(tailList), Function.identity()));
}
origin: org.jboss.eap/wildfly-client-all

Builder(final EJBClientContext clientContext) {
  globalInterceptors = Arrays.stream(clientContext.globalInterceptors.getInformation()).collect(Collectors.toCollection(ArrayList::new));
  classInterceptors = new ArrayList<>();
  for (Map.Entry<String, InterceptorList> entry : clientContext.getConfiguredPerClassInterceptors().entrySet()) {
    final String className = entry.getKey();
    for (EJBClientInterceptorInformation information : entry.getValue().getInformation()) {
      classInterceptors.add(new ClassInterceptor(className, information));
    }
  }
  methodInterceptors = new ArrayList<>();
  for (Map.Entry<String, Map<EJBMethodLocator, InterceptorList>> entry : clientContext.getConfiguredPerMethodInterceptors().entrySet()) {
    final String className = entry.getKey();
    for (Map.Entry<EJBMethodLocator, InterceptorList> entry1 : entry.getValue().entrySet()) {
      final EJBMethodLocator methodLocator = entry1.getKey();
      for (EJBClientInterceptorInformation information : entry1.getValue().getInformation()) {
        methodInterceptors.add(new MethodInterceptor(className, methodLocator, information));
      }
    }
  }
  transportProviders = new ArrayList<>();
  Collections.addAll(transportProviders, clientContext.transportProviders);
  clientConnections = new ArrayList<>();
  clientConnections.addAll(clientContext.getConfiguredConnections());
  clientClusters = new ArrayList<>();
  clientClusters.addAll(clientContext.configuredClusters.values());
  clusterNodeSelector = clientContext.clusterNodeSelector;
  deploymentNodeSelector = clientContext.deploymentNodeSelector;
  invocationTimeout = clientContext.invocationTimeout;
}
origin: wildfly/jboss-ejb-client

Builder(final EJBClientContext clientContext) {
  globalInterceptors = Arrays.stream(clientContext.globalInterceptors.getInformation()).collect(Collectors.toCollection(ArrayList::new));
  classInterceptors = new ArrayList<>();
  for (Map.Entry<String, InterceptorList> entry : clientContext.getConfiguredPerClassInterceptors().entrySet()) {
    final String className = entry.getKey();
    for (EJBClientInterceptorInformation information : entry.getValue().getInformation()) {
      classInterceptors.add(new ClassInterceptor(className, information));
    }
  }
  methodInterceptors = new ArrayList<>();
  for (Map.Entry<String, Map<EJBMethodLocator, InterceptorList>> entry : clientContext.getConfiguredPerMethodInterceptors().entrySet()) {
    final String className = entry.getKey();
    for (Map.Entry<EJBMethodLocator, InterceptorList> entry1 : entry.getValue().entrySet()) {
      final EJBMethodLocator methodLocator = entry1.getKey();
      for (EJBClientInterceptorInformation information : entry1.getValue().getInformation()) {
        methodInterceptors.add(new MethodInterceptor(className, methodLocator, information));
      }
    }
  }
  transportProviders = new ArrayList<>();
  Collections.addAll(transportProviders, clientContext.transportProviders);
  clientConnections = new ArrayList<>();
  clientConnections.addAll(clientContext.getConfiguredConnections());
  clientClusters = new ArrayList<>();
  clientClusters.addAll(clientContext.configuredClusters.values());
  clusterNodeSelector = clientContext.clusterNodeSelector;
  deploymentNodeSelector = clientContext.deploymentNodeSelector;
  invocationTimeout = clientContext.invocationTimeout;
}
origin: org.jboss.eap/wildfly-client-all

static <T> EJBProxyInterceptorInformation<T> construct(Class<T> clazz, EJBClientContext clientContext) {
  final EJBProxyInformation<T> proxyInformation = EJBProxyInformation.forViewType(clazz);
  final Collection<EJBProxyInformation.ProxyMethodInfo> methods = proxyInformation.getMethods();
  final String className = clazz.getName();
  final InterceptorList list0 = EJBClientContext.defaultInterceptors;
  final InterceptorList list1 = clientContext.getGlobalInterceptors();
  final InterceptorList list2 = clientContext.getClassPathInterceptors();
  final InterceptorList list3 = clientContext.getConfiguredPerClassInterceptors().getOrDefault(className, EMPTY);
  final InterceptorList list5 = proxyInformation.getClassInterceptors();
  final IdentityHashMap<Method, InterceptorList> interceptorsByMethod = new IdentityHashMap<>(methods.size());
  final HashMap<InterceptorList, InterceptorList> cache = new HashMap<>();
  cache.computeIfAbsent(list0, Function.identity());
  final InterceptorList tailList = list3.combine(list2).combine(list1).combine(list0);
  cache.computeIfAbsent(tailList, Function.identity());
  for (EJBProxyInformation.ProxyMethodInfo method : methods) {
    // compile interceptor information
    final InterceptorList list4 = clientContext.getConfiguredPerMethodInterceptors().getOrDefault(className, emptyMap()).getOrDefault(method.getMethodLocator(), EMPTY);
    final InterceptorList list6 = method.getInterceptors();
    interceptorsByMethod.put(method.getMethod(), cache.computeIfAbsent(list6.combine(list5).combine(list4).combine(tailList), Function.identity()));
  }
  return new EJBProxyInterceptorInformation<T>(proxyInformation, interceptorsByMethod, cache.computeIfAbsent(list5.combine(tailList), Function.identity()));
}
origin: wildfly/jboss-ejb-client

static <T> EJBProxyInterceptorInformation<T> construct(Class<T> clazz, EJBClientContext clientContext) {
  final EJBProxyInformation<T> proxyInformation = EJBProxyInformation.forViewType(clazz);
  final Collection<EJBProxyInformation.ProxyMethodInfo> methods = proxyInformation.getMethods();
  final String className = clazz.getName();
  final InterceptorList list0 = EJBClientContext.defaultInterceptors;
  final InterceptorList list1 = clientContext.getGlobalInterceptors();
  final InterceptorList list2 = clientContext.getClassPathInterceptors();
  final InterceptorList list3 = clientContext.getConfiguredPerClassInterceptors().getOrDefault(className, EMPTY);
  final InterceptorList list5 = proxyInformation.getClassInterceptors();
  final IdentityHashMap<Method, InterceptorList> interceptorsByMethod = new IdentityHashMap<>(methods.size());
  final HashMap<InterceptorList, InterceptorList> cache = new HashMap<>();
  cache.computeIfAbsent(list0, Function.identity());
  final InterceptorList tailList = list3.combine(list2).combine(list1).combine(list0);
  cache.computeIfAbsent(tailList, Function.identity());
  for (EJBProxyInformation.ProxyMethodInfo method : methods) {
    // compile interceptor information
    final InterceptorList list4 = clientContext.getConfiguredPerMethodInterceptors().getOrDefault(className, emptyMap()).getOrDefault(method.getMethodLocator(), EMPTY);
    final InterceptorList list6 = method.getInterceptors();
    interceptorsByMethod.put(method.getMethod(), cache.computeIfAbsent(list6.combine(list5).combine(list4).combine(tailList), Function.identity()));
  }
  return new EJBProxyInterceptorInformation<T>(proxyInformation, interceptorsByMethod, cache.computeIfAbsent(list5.combine(tailList), Function.identity()));
}
org.jboss.ejb.clientEJBClientContextgetConfiguredPerClassInterceptors

Popular methods of EJBClientContext

  • setSelector
  • getContextManager
    Get the context manager.
  • 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
  • getConfiguredPerMethodInterceptors
  • getConfiguredConnections,
  • 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 plugins for WebStorm
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