HomeSort by relevance Sort by last modified time
    Searched refs:interceptors (Results 1 - 25 of 80) sorted by null

1 2 3 4

  /external/guice/core/src/com/google/inject/internal/
MethodAspect.java 38 private final List<MethodInterceptor> interceptors; field in class:MethodAspect
45 * @param interceptors to apply
48 Matcher<? super Method> methodMatcher, List<MethodInterceptor> interceptors) {
51 this.interceptors = checkNotNull(interceptors, "interceptors");
55 Matcher<? super Method> methodMatcher, MethodInterceptor... interceptors) {
56 this(classMatcher, methodMatcher, Arrays.asList(interceptors));
67 List<MethodInterceptor> interceptors() { method in class:MethodAspect
68 return interceptors;
    [all...]
InterceptorStackCallback.java 34 * Intercepts a method with a stack of interceptors.
44 final MethodInterceptor[] interceptors; field in class:InterceptorStackCallback
48 List<MethodInterceptor> interceptors) {
50 this.interceptors = interceptors.toArray(new MethodInterceptor[interceptors.size()]);
75 return index == interceptors.length
77 : interceptors[index].invoke(
ProxyFactory.java 56 private final ImmutableMap<Method, List<MethodInterceptor>> interceptors; field in class:ProxyFactory
83 interceptors = ImmutableMap.of();
99 // Iterate over aspects and add interceptors for the methods they apply to
109 new Object[] { pair.method, methodAspect.interceptors() });
112 pair.addAll(methodAspect.interceptors());
119 interceptors = ImmutableMap.of();
140 ImmutableSet.copyOf(pair.interceptors).asList();
145 interceptors = interceptorsMapBuilder != null
151 * Returns the interceptors that apply to the constructed type.
154 return interceptors;
186 List<MethodInterceptor> interceptors; \/\/ lazy field in class:ProxyFactory.MethodInterceptorsPair
    [all...]
EncounterImpl.java 68 org.aopalliance.intercept.MethodInterceptor... interceptors) {
76 aspects.add(new MethodAspect(Matchers.any(), methodMatcher, interceptors));
  /external/guice/core/src/com/google/inject/spi/
InterceptorBinding.java 31 * Registration of interceptors for matching methods of matching classes. Instances are created
49 private final ImmutableList<MethodInterceptor> interceptors; field in class:InterceptorBinding
55 MethodInterceptor[] interceptors) {
59 this.interceptors = ImmutableList.copyOf(interceptors);
75 return interceptors;
84 interceptors.toArray(new MethodInterceptor[interceptors.size()]));
TypeEncounter.java 29 * listeners and binding method interceptors for injectable type {@code I}. It is an error to use
117 * @param interceptors to bind
120 org.aopalliance.intercept.MethodInterceptor... interceptors);
  /external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
Interceptors.java 10 public class Interceptors {
11 private final Map<MethodRef, Interceptor> interceptors = new HashMap<>(); field in class:Interceptors
13 public Interceptors(Interceptor... interceptors) {
14 this(asList(interceptors));
17 public Interceptors(Collection<Interceptor> interceptorList) {
20 this.interceptors.put(methodRef, interceptor);
26 return interceptors.keySet();
40 Interceptor mh = interceptors.get(new MethodRef(className, methodName));
42 mh = interceptors.get(new MethodRef(className, "*"))
    [all...]
Sandbox.java 46 public void configure(ClassHandler classHandler, Interceptors interceptors) {
60 setStaticField(invokeDynamicSupportClass, "INTERCEPTORS", interceptors);
  /external/robolectric-shadows/robolectric/src/test/java/org/robolectric/internal/bytecode/
ShadowWranglerUnitTest.java 20 private Interceptors interceptors; field in class:ShadowWranglerUnitTest
24 interceptors = new Interceptors(AndroidInterceptors.all());
25 shadowWrangler = new ShadowWrangler(ShadowMap.EMPTY, 23, interceptors);
31 Function<Object,Object> handler = interceptors.getInterceptionHandler(methodSignature);
39 Function<Object,Object> handler = interceptors.getInterceptionHandler(methodSignature);
73 assertThat(new ShadowWrangler(shadowMap, 18, interceptors).methodInvoked(methodName, false, DummyClass.class)).isNull();
74 assertThat(new ShadowWrangler(shadowMap, 19, interceptors).methodInvoked(methodName, false, DummyClass.class).describe())
76 assertThat(new ShadowWrangler(shadowMap, 23, interceptors).methodInvoked(methodName, false, DummyClass.class)).isNull()
    [all...]
  /external/guice/extensions/struts2/src/com/google/inject/struts2/
Struts2Factory.java 56 private final List<ProvidedInterceptor> interceptors = new ArrayList<ProvidedInterceptor>(); field in class:Struts2Factory
133 for (ProvidedInterceptor interceptor : interceptors) {
139 // Inject interceptors.
140 for (ProvidedInterceptor interceptor : interceptors) {
161 interceptors.add(providedInterceptor);
189 binder.addError("Scoping interceptors is not currently supported."
GuiceObjectFactory.java 54 List<ProvidedInterceptor> interceptors field in class:GuiceObjectFactory
148 for (ProvidedInterceptor interceptor : interceptors) {
154 // Inject interceptors.
155 for (ProvidedInterceptor interceptor : interceptors) {
179 interceptors.add(providedInterceptor);
205 binder.addError("Scoping interceptors is not currently supported."
  /prebuilts/go/darwin-x86/src/runtime/cgo/
mmap.go 13 // any sanitizer interceptors. This supports using the memory
18 // To support interceptors that look for both mmap and munmap,
sigaction.go 13 // any sanitizer interceptors. This supports using the memory
  /prebuilts/go/linux-x86/src/runtime/cgo/
mmap.go 13 // any sanitizer interceptors. This supports using the memory
18 // To support interceptors that look for both mmap and munmap,
sigaction.go 13 // any sanitizer interceptors. This supports using the memory
  /external/dexmaker/dexmaker-mockito-inline/src/main/java/com/android/dx/mockito/inline/
MockMethodAdvice.java 22 private final Map<Object, InvocationHandlerAdapter> interceptors; field in class:MockMethodAdvice
29 MockMethodAdvice(Map<Object, InvocationHandlerAdapter> interceptors) {
30 this.interceptors = interceptors;
194 InvocationHandlerAdapter interceptor = interceptors.get(instance);
211 return interceptors.containsKey(instance);
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
InterceptorTest.java 68 client.interceptors().add(new Interceptor() {
243 rewriteRequestToServer(client.interceptors());
250 private void rewriteRequestToServer(List<Interceptor> interceptors) throws Exception {
253 interceptors.add(new Interceptor() {
279 rewriteResponseFromServer(client.interceptors());
286 private void rewriteResponseFromServer(List<Interceptor> interceptors) throws Exception {
291 interceptors.add(new Interceptor() {
312 multipleInterceptors(client.interceptors());
319 private void multipleInterceptors(List<Interceptor> interceptors) throws Exception {
322 interceptors.add(new Interceptor()
    [all...]
  /external/mockito/src/main/java/org/mockito/internal/creation/bytebuddy/
MockMethodAdvice.java 38 final WeakConcurrentMap<Object, MockMethodInterceptor> interceptors; field in class:MockMethodAdvice
47 public MockMethodAdvice(WeakConcurrentMap<Object, MockMethodInterceptor> interceptors, String identifier) {
48 this.interceptors = interceptors;
97 MockMethodInterceptor interceptor = interceptors.get(instance);
118 // We need to exclude 'interceptors.target' explicitly to avoid a recursive check on whether
120 return instance != interceptors.target && interceptors.containsKey(instance);
328 mockMethodAdvice.interceptors.put(thiz, thiz.getMockitoInterceptor());
  /external/robolectric-shadows/robolectric/src/main/java/org/robolectric/internal/
AndroidConfigurer.java 13 import org.robolectric.internal.bytecode.Interceptors;
42 public static void configure(InstrumentationConfiguration.Builder builder, Interceptors interceptors) {
43 for (MethodRef methodRef : interceptors.getAllMethodRefs()) {
  /prebuilts/go/darwin-x86/misc/cgo/testsanitizers/src/
tsan10.go 10 // run for an arbitrarily long time without triggering the libc interceptors.
tsan11.go 10 // run for an arbitrarily long time without triggering the libc interceptors.
  /prebuilts/go/linux-x86/misc/cgo/testsanitizers/src/
tsan10.go 10 // run for an arbitrarily long time without triggering the libc interceptors.
tsan11.go 10 // run for an arbitrarily long time without triggering the libc interceptors.
  /external/guice/core/src/com/google/inject/
AbstractModule.java 170 org.aopalliance.intercept.MethodInterceptor... interceptors) {
171 binder().bindInterceptor(classMatcher, methodMatcher, interceptors);
PrivateModule.java 41 * type converters, scopes, and interceptors from the surrounding ("parent") environment. When you
228 org.aopalliance.intercept.MethodInterceptor... interceptors) {
229 binder().bindInterceptor(classMatcher, methodMatcher, interceptors);

Completed in 370 milliseconds

1 2 3 4