2016/02/07 - Apache Onami has been retired.

For more information, please explore the Attic.

public class

MockTypeListener

extends Object
implements TypeListener
java.lang.Object
   ↳ org.apache.onami.test.mock.guice.MockTypeListener

Class Overview

TypeListener implementation.

Creates a specific MockMembersInjector for each Mock annotation found.

Summary

Public Constructors
MockTypeListener(Map<FieldObject> mockedObjects)
Creates a new MockTypeListener instance given a map of mocked objects.
Public Methods
<I> void hear(TypeLiteral<I> typeLiteral, TypeEncounter<I> typeEncounter)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.inject.spi.TypeListener

Public Constructors

public MockTypeListener (Map<FieldObject> mockedObjects)

Creates a new MockTypeListener instance given a map of mocked objects.

Parameters
mockedObjects a map of mocked objects

Public Methods

public void hear (TypeLiteral<I> typeLiteral, TypeEncounter<I> typeEncounter)