de.akquinet.jbosscc.needle.injection
Class ResourceMockInjectionProvider

java.lang.Object
  extended by de.akquinet.jbosscc.needle.injection.DefaultMockInjectionProvider
      extended by de.akquinet.jbosscc.needle.injection.ResourceMockInjectionProvider
All Implemented Interfaces:
InjectionProvider<Object>, InjectionVerifier

public class ResourceMockInjectionProvider
extends DefaultMockInjectionProvider


Constructor Summary
ResourceMockInjectionProvider(MockProvider mockProvider)
           
 
Method Summary
 Object getKey(InjectionTargetInformation injectionTargetInformation)
          Returns a key object, which identifies the provided object.
 
Methods inherited from class de.akquinet.jbosscc.needle.injection.DefaultMockInjectionProvider
getInjectedObject, getType, verify
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceMockInjectionProvider

public ResourceMockInjectionProvider(MockProvider mockProvider)
Method Detail

getKey

public Object getKey(InjectionTargetInformation injectionTargetInformation)
Description copied from interface: InjectionProvider
Returns a key object, which identifies the provided object.

Specified by:
getKey in interface InjectionProvider<Object>
Overrides:
getKey in class DefaultMockInjectionProvider
Parameters:
injectionTargetInformation - information about the injection point
Returns:
the key of the provided object
See Also:
NeedleTestcase.getInjectedObject(Object)


Copyright © 2013 akquinet AG. All Rights Reserved.