org.nanocontainer.integrationkit
Interface ContainerRecorder

All Known Implementing Classes:
DefaultContainerRecorder

public interface ContainerRecorder

Records method calls on a MutablePicoContainer. This allows to replay all invocations on a different container instance.

Author:
Konstantin Pribluda ( konstantin.pribluda(at)infodesire.com ), Aslak Hellesøy, Mauro Talevi

Method Summary
 org.picocontainer.MutablePicoContainer getContainerProxy()
          Creates a new proxy that will forward all method invocations to the container passed to the constructor.
 void replay(org.picocontainer.MutablePicoContainer target)
          Replay recorded invocations on target container
 

Method Detail

getContainerProxy

org.picocontainer.MutablePicoContainer getContainerProxy()
Creates a new proxy that will forward all method invocations to the container passed to the constructor. All method invocations are recorded so that they can be replayed on a different container.

Returns:
a recording container proxy
See Also:
replay(org.picocontainer.MutablePicoContainer)

replay

void replay(org.picocontainer.MutablePicoContainer target)
Replay recorded invocations on target container

Parameters:
target - container where the invocations should be replayed.


Copyright © 2003-2010 Codehaus. All Rights Reserved.