toothpick.configuration.ReflectionOnConfiguration 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 ReflectionOnConfiguration implements ReflectionConfiguration {
@Override
public Factory getFactory(Class clazz) {
return FactoryRegistryLocator.getFactoryUsingReflection(clazz);
}
@Override
public MemberInjector getMemberInjector(Class clazz) {
return MemberInjectorRegistryLocator.getMemberInjectorUsingReflection(clazz);
}
}