@Component(value="cuba_UiControllerDependencyInjector")
@Scope(value="prototype")
public class UiControllerDependencyInjector
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
UiControllerDependencyInjector.InstalledBiFunction |
static class |
UiControllerDependencyInjector.InstalledConsumer |
static class |
UiControllerDependencyInjector.InstalledFunction |
static class |
UiControllerDependencyInjector.InstalledProxyHandler |
static class |
UiControllerDependencyInjector.InstalledRunnable |
static class |
UiControllerDependencyInjector.InstalledSupplier |
Modifier and Type | Field and Description |
---|---|
protected BeanLocator |
beanLocator |
protected FrameOwner |
frameOwner |
static java.lang.String |
NAME |
protected ScreenOptions |
options |
protected UiControllerReflectionInspector |
reflectionInspector |
Constructor and Description |
---|
UiControllerDependencyInjector(FrameOwner frameOwner,
ScreenOptions options) |
Modifier and Type | Method and Description |
---|---|
protected void |
assignValue(java.lang.reflect.AnnotatedElement element,
java.lang.Object value) |
protected java.lang.Object |
createInstallHandler(FrameOwner frameOwner,
java.lang.reflect.Method method,
java.lang.Class<?> targetObjectType) |
protected MessageBundle |
createMessageBundle(java.lang.reflect.AnnotatedElement element,
Frame frame) |
protected void |
doInjection(java.lang.reflect.AnnotatedElement element,
java.lang.Class annotationClass) |
protected java.lang.Object |
findEventTarget(Frame frame,
java.lang.String target) |
protected java.lang.Object |
findInstallTarget(java.lang.String target,
Frame frame) |
protected java.lang.Object |
getInjectedInstance(java.lang.Class<?> type,
java.lang.String name,
java.lang.Class annotationClass,
java.lang.reflect.AnnotatedElement element) |
protected java.lang.Object |
getInstallTargetInstance(FrameOwner frameOwner,
Install annotation,
Frame frame) |
protected java.lang.invoke.MethodHandle |
getInstallTargetSetterMethod(Install annotation,
Frame frame,
java.lang.Class<?> instanceClass,
java.lang.reflect.Method provideMethod) |
protected void |
initInstallMethods(FrameOwner frameOwner,
UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) |
protected void |
initSubscribeListeners(FrameOwner frameOwner,
UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) |
protected void |
initUiEventListeners(FrameOwner frameOwner,
UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) |
void |
inject() |
protected void |
injectValues(FrameOwner frameOwner,
UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData) |
void |
setBeanLocator(BeanLocator beanLocator) |
void |
setReflectionInspector(UiControllerReflectionInspector reflectionInspector) |
public static final java.lang.String NAME
protected FrameOwner frameOwner
protected ScreenOptions options
protected BeanLocator beanLocator
protected UiControllerReflectionInspector reflectionInspector
public UiControllerDependencyInjector(FrameOwner frameOwner, ScreenOptions options)
@Inject public void setBeanLocator(BeanLocator beanLocator)
@Inject public void setReflectionInspector(UiControllerReflectionInspector reflectionInspector)
public void inject()
protected void initInstallMethods(FrameOwner frameOwner, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData)
protected java.lang.invoke.MethodHandle getInstallTargetSetterMethod(Install annotation, Frame frame, java.lang.Class<?> instanceClass, java.lang.reflect.Method provideMethod)
@Nullable protected java.lang.Object getInstallTargetInstance(FrameOwner frameOwner, Install annotation, Frame frame)
@Nullable protected java.lang.Object findInstallTarget(java.lang.String target, Frame frame)
protected java.lang.Object createInstallHandler(FrameOwner frameOwner, java.lang.reflect.Method method, java.lang.Class<?> targetObjectType)
protected void injectValues(FrameOwner frameOwner, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData)
protected void initSubscribeListeners(FrameOwner frameOwner, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData)
@Nullable protected java.lang.Object findEventTarget(Frame frame, java.lang.String target)
protected void initUiEventListeners(FrameOwner frameOwner, UiControllerReflectionInspector.ScreenIntrospectionData screenIntrospectionData)
protected void doInjection(java.lang.reflect.AnnotatedElement element, java.lang.Class annotationClass)
@Nullable protected java.lang.Object getInjectedInstance(java.lang.Class<?> type, java.lang.String name, java.lang.Class annotationClass, java.lang.reflect.AnnotatedElement element)
protected MessageBundle createMessageBundle(java.lang.reflect.AnnotatedElement element, Frame frame)
protected void assignValue(java.lang.reflect.AnnotatedElement element, java.lang.Object value)