Tabnine Logo
EJBClientContext.getClassPathInterceptors
Code IndexAdd Tabnine to your IDE (free)

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

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

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: 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()));
}
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()));
}
org.jboss.ejb.clientEJBClientContextgetClassPathInterceptors

Popular methods of EJBClientContext

  • setSelector
  • getContextManager
    Get the context manager.
  • getAttachment
  • <init>
  • calculateMethodInterceptors
  • create
  • createSession
  • createSessionCreationInvocationContext
  • 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
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setContentView (Activity)
  • getApplicationContext (Context)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • JCheckBox (javax.swing)
  • JComboBox (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top 15 Vim Plugins
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