org.omnaest.utils.proxy
Class MethodCallCapturer.CapturedTypeInstanceCreationConfiguration

java.lang.Object
  extended by org.omnaest.utils.proxy.MethodCallCapturer.CapturedTypeInstanceCreationConfiguration
Enclosing class:
MethodCallCapturer

protected static class MethodCallCapturer.CapturedTypeInstanceCreationConfiguration
extends Object

Configuration object when a MethodCallCapturer creates a new stub instance.

Author:
Omnaest
See Also:
MethodCallCapturer.newInstanceOfCapturedType(CapturedTypeInstanceCreationConfiguration)

Field Summary
protected  Class<?>[] interfaces
           
protected  boolean isCreatingTransitiveStubs
           
protected  MethodCallCapturer.MethodCallCaptureContext previousMethodCallCaptureContext
           
protected  Class<?> type
           
 
Constructor Summary
MethodCallCapturer.CapturedTypeInstanceCreationConfiguration(Class<?> type, Class<?>[] interfaces, boolean isCreatingTransitiveStubs)
           
 
Method Summary
 Class<?>[] getInterfaces()
           
protected  MethodCallCapturer.MethodCallCaptureContext getPreviousMethodCallCaptureContext()
           
 Class<?> getType()
           
 boolean isCreatingTransitiveStubs()
           
protected  boolean isMethodCallCapturerAware()
          Returns true, if the stub implements the MethodCallCapturer.MethodCallCapturerAware interface.
 void setCreatingTransitiveStubs(boolean isCreatingTransitiveStubs)
           
 void setInterfaces(Class<?>[] interfaces)
           
protected  void setPreviousMethodCallCaptureContext(MethodCallCapturer.MethodCallCaptureContext previousMethodCallCaptureContext)
           
 void setType(Class<?> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected Class<?> type

interfaces

protected Class<?>[] interfaces

isCreatingTransitiveStubs

protected boolean isCreatingTransitiveStubs

previousMethodCallCaptureContext

protected MethodCallCapturer.MethodCallCaptureContext previousMethodCallCaptureContext
Constructor Detail

MethodCallCapturer.CapturedTypeInstanceCreationConfiguration

public MethodCallCapturer.CapturedTypeInstanceCreationConfiguration(Class<?> type,
                                                                    Class<?>[] interfaces,
                                                                    boolean isCreatingTransitiveStubs)
Method Detail

getType

public Class<?> getType()
Returns:

setType

public void setType(Class<?> type)
Parameters:
type -

getInterfaces

public Class<?>[] getInterfaces()
Returns:

setInterfaces

public void setInterfaces(Class<?>[] interfaces)
Parameters:
interfaces -

isCreatingTransitiveStubs

public boolean isCreatingTransitiveStubs()
Returns:

setCreatingTransitiveStubs

public void setCreatingTransitiveStubs(boolean isCreatingTransitiveStubs)
Parameters:
isCreatingTransitiveStubs -

isMethodCallCapturerAware

protected boolean isMethodCallCapturerAware()
Returns true, if the stub implements the MethodCallCapturer.MethodCallCapturerAware interface.

Returns:

getPreviousMethodCallCaptureContext

protected MethodCallCapturer.MethodCallCaptureContext getPreviousMethodCallCaptureContext()

setPreviousMethodCallCaptureContext

protected void setPreviousMethodCallCaptureContext(MethodCallCapturer.MethodCallCaptureContext previousMethodCallCaptureContext)


Copyright © 2013. All Rights Reserved.