public class MadvocContainer
extends java.lang.Object
PetiteContainer
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
MADVOC_PETITE_CONTAINER_NAME |
Constructor and Description |
---|
MadvocContainer() |
Modifier and Type | Method and Description |
---|---|
void |
defineParams(java.util.Map params) |
void |
defineParams(Props props) |
void |
fireEvent(java.lang.Class listenerType)
Fires the Madvoc event.
|
PetiteContainer |
getPetiteContainer()
Returns Petite container used for the Madvoc.
|
<T> T |
lookupComponent(java.lang.Class<T> component)
Returns registered component or
null if component is not registered. |
java.lang.Object |
lookupComponent(java.lang.String componentName)
Returns registered component or
null if component does not exist. |
void |
registerComponent(java.lang.Class component)
Registers component using its
base name . |
<T> void |
registerComponent(java.lang.Class<T> component,
java.util.function.Consumer<T> consumer) |
void |
registerComponent(java.lang.String name,
java.lang.Class component)
Registers Madvoc component with given name.
|
<T> void |
registerComponent(java.lang.String name,
java.lang.Class<T> component,
java.util.function.Consumer<T> consumer)
Registers Madvoc component with given name.
|
void |
registerComponentInstance(java.lang.Object componentInstance)
Registers component instance using its
base name . |
void |
registerComponentInstance(java.lang.String name,
java.lang.Object componentInstance)
Registers component instance and wires it with internal container.
|
<T> T |
requestComponent(java.lang.Class<T> component)
Returns existing component.
|
<T> T |
requestComponent(java.lang.String componentName)
Returns existing component.
|
public static final java.lang.String MADVOC_PETITE_CONTAINER_NAME
public PetiteContainer getPetiteContainer()
public void registerComponent(java.lang.Class component)
base name
.
Previously defined component will be removed.registerComponentInstance(Object)
public <T> void registerComponent(java.lang.Class<T> component, java.util.function.Consumer<T> consumer)
public void registerComponent(java.lang.String name, java.lang.Class component)
public <T> void registerComponent(java.lang.String name, java.lang.Class<T> component, java.util.function.Consumer<T> consumer)
public void registerComponentInstance(java.lang.Object componentInstance)
base name
.
Previously defined component will be removed.public void registerComponentInstance(java.lang.String name, java.lang.Object componentInstance)
public void fireEvent(java.lang.Class listenerType)
public <T> T lookupComponent(java.lang.Class<T> component)
null
if component is not registered.public <T> T requestComponent(java.lang.Class<T> component)
public <T> T requestComponent(java.lang.String componentName)
public java.lang.Object lookupComponent(java.lang.String componentName)
null
if component does not exist.public void defineParams(Props props)
public void defineParams(java.util.Map params)
Copyright © 2003-present Jodd Team