toothpick.configuration.ReflectionOffConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of toothpick-runtime Show documentation
Show all versions of toothpick-runtime Show documentation
'Main Toothpick implementation'
package toothpick.configuration;
import toothpick.Factory;
import toothpick.MemberInjector;
import toothpick.registries.FactoryRegistryLocator;
import toothpick.registries.MemberInjectorRegistryLocator;
class ReflectionOffConfiguration implements ReflectionConfiguration {
@Override
public Factory getFactory(Class clazz) {
return FactoryRegistryLocator.getFactoryUsingRegistries(clazz);
}
@Override
public MemberInjector getMemberInjector(Class clazz) {
return MemberInjectorRegistryLocator.getMemberInjectorUsingRegistries(clazz);
}
}