public class UiComponentProvider extends Object implements info.magnolia.objectfactory.ComponentProvider, Serializable
parameter resolvers
.
UiComponentContextParameterResolver
Modifier and Type | Class and Description |
---|---|
static class |
UiComponentProvider.Builder |
Constructor and Description |
---|
UiComponentProvider(UiContextReference viewContextReference) |
UiComponentProvider(UiContextReference viewContextReference,
info.magnolia.objectfactory.guice.GuiceComponentProvider parentComponentProvider) |
Modifier and Type | Method and Description |
---|---|
static UiComponentProvider.Builder |
builder(String name,
UiContextReference parentReference) |
<T> T |
getComponent(Class<T> type) |
<T> Class<? extends T> |
getImplementation(Class<T> type) |
info.magnolia.objectfactory.guice.GuiceComponentProvider |
getParent() |
protected Stream<UiContextReference> |
getReachableUiContextReferences() |
<T> T |
getSingleton(Class<T> type) |
UiContextReference |
getUiContextReference() |
UiComponentProvider |
inChildContext(info.magnolia.config.NamedDefinition definition) |
UiComponentProvider |
inChildContext(String name,
Object definition) |
<T> T |
newInstance(Class<T> type,
Object... parameters) |
<T> T |
newInstanceWithParameterResolvers(Class<T> type,
info.magnolia.objectfactory.ParameterResolver... parameters) |
public UiComponentProvider(UiContextReference viewContextReference, info.magnolia.objectfactory.guice.GuiceComponentProvider parentComponentProvider)
public UiComponentProvider(UiContextReference viewContextReference)
public UiContextReference getUiContextReference()
public UiComponentProvider inChildContext(String name, Object definition)
public UiComponentProvider inChildContext(info.magnolia.config.NamedDefinition definition)
public <T> T getComponent(Class<T> type)
getComponent
in interface info.magnolia.objectfactory.ComponentProvider
public <T> Class<? extends T> getImplementation(Class<T> type)
getImplementation
in interface info.magnolia.objectfactory.ComponentProvider
public <T> T getSingleton(Class<T> type)
getSingleton
in interface info.magnolia.objectfactory.ComponentProvider
public <T> T newInstance(Class<T> type, Object... parameters)
newInstance
in interface info.magnolia.objectfactory.ComponentProvider
public <T> T newInstanceWithParameterResolvers(Class<T> type, info.magnolia.objectfactory.ParameterResolver... parameters)
newInstanceWithParameterResolvers
in interface info.magnolia.objectfactory.ComponentProvider
public info.magnolia.objectfactory.guice.GuiceComponentProvider getParent()
getParent
in interface info.magnolia.objectfactory.ComponentProvider
protected Stream<UiContextReference> getReachableUiContextReferences()
public static UiComponentProvider.Builder builder(String name, UiContextReference parentReference)
Copyright © 2020 Magnolia International Ltd.. All rights reserved.