IProxyFactory
Date: 2015-09-17

org.easymock.internal

## Interface IProxyFactory

- All Known Implementing Classes:
    ClassProxyFactory, JavaProxyFactory

      public interface IProxyFactory

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `<T> T` | `createProxy(java.lang.Class<T> toMock, java.lang.reflect.InvocationHandler handler, java.lang.reflect.Method[] mockedMethods, ConstructorArgs constructorArgs)`
    `java.lang.reflect.InvocationHandler` | `getInvocationHandler(java.lang.Object mock)` Returns the invocation handler for `mock`;

- - ### Method Detail

    - #### createProxy

          <T> T createProxy(java.lang.Class<T> toMock,
                          java.lang.reflect.InvocationHandler handler,
                          java.lang.reflect.Method[] mockedMethods,
                          ConstructorArgs constructorArgs)

      Parameters:
        `toMock` - the class to mock by the factory
        `handler` - the handler that will be linked to the created proxy
        `mockedMethods` - the subset of `toMock`'s methods to mock, or null to mock all methods.
        `constructorArgs` - the constructor arguments to use, or null to use heuristics to choose a constructor.
      Returns:
        the newly created proxy

    - #### getInvocationHandler

          java.lang.reflect.InvocationHandler getInvocationHandler(java.lang.Object mock)

      Returns the invocation handler for `mock`;
      Parameters:
        `mock` - a mock instance previously returned by `createProxy`.
      Returns:
        the handler handling method calls for the `mock`