public interface GenericTypedBeanLoader<T>
A GenericTypedBeanLoader can be used to load instance of certain type with generic type parameters.
A typical usage scenario is to load a Dao implementation. E.g.
public class FooService {
@Inject
private Dao<Foo> fooDao;
...
}
One must register the GenericTypedBeanLoader via calling the Genie.registerGenericTypedBeanLoader(Class, GenericTypedBeanLoader) method
| Modifier and Type | Method and Description |
|---|---|
T |
load(BeanSpec spec)
Returns an instance matches the spec.
|
Copyright © 2016–2017 OSGL (Open Source General Library). All rights reserved.