| Constructor and Description |
|---|
DefaultInjector() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
getInstance(Class<T> clazz)
Returns the appropriate instance for the given injection type
|
<T> T |
getInstance(Class<T> clazz,
String name)
Returns the appropriate instance for the given injection type and name
|
public <T> T getInstance(Class<T> clazz)
InjectorgetInstance in interface Injectorpublic <T> T getInstance(Class<T> clazz, String name)
InjectorgetInstance in interface InjectorCopyright © 2022 Ctrip, Inc.. All rights reserved.