@ApplicationScoped public class DefaultBeanFactory extends Object implements BeanFactory
Modifier and Type | Field and Description |
---|---|
protected org.jboss.errai.ioc.client.container.SyncBeanManager |
iocManager |
Constructor and Description |
---|
DefaultBeanFactory() |
Modifier and Type | Method and Description |
---|---|
void |
destroy(Object o)
Destroys the entire graph of beans that were created and returned via a call to any of the newXXX()
methods in this class.
|
CompassDropController |
newDropController(WorkbenchPanelView<?> view) |
WorkbenchPanelPresenter |
newRootPanel(PerspectiveActivity activity,
PanelDefinition root)
Creates a new perspective root panel for the given Perspective Activity and Root Panel Definition.
|
WorkbenchPanelPresenter |
newWorkbenchPanel(PanelDefinition definition)
Creates a new panel with the properties specified in the given definition.
|
WorkbenchPartPresenter |
newWorkbenchPart(Menus menus,
String title,
com.google.gwt.user.client.ui.IsWidget titleDecoration,
PartDefinition definition,
Class<? extends WorkbenchPartPresenter> partType)
Creates a new part presenter/view pair with the given properties.
|
@Inject protected org.jboss.errai.ioc.client.container.SyncBeanManager iocManager
public WorkbenchPartPresenter newWorkbenchPart(Menus menus, String title, com.google.gwt.user.client.ui.IsWidget titleDecoration, PartDefinition definition, Class<? extends WorkbenchPartPresenter> partType)
BeanFactory
newWorkbenchPart
in interface BeanFactory
menus
- The menus to associate with the new part. Null means no menus.title
- The title to associate with the new part that the containing panel may display (for example, as the
tab label in a MultiTabWorkbenchPanelPresenter
.titleDecoration
- The title decoration that a panel may choose to display beside the part's title. Null is permitted,
and means no title decoration.
NOTE: presently, none of the built-in panel types display a part's title decoration.
definition
- Defines all other aspects of the part to create. Must not be null.partType
- The new part type.public WorkbenchPanelPresenter newRootPanel(PerspectiveActivity activity, PanelDefinition root)
BeanFactory
BeanFactory.destroy(Object)
when it is no longer needed.newRootPanel
in interface BeanFactory
activity
- the perspective that the root panel is being created for. Must not be null.root
- description of the panel to create. Must not be null.BeanFactory.destroy(Object)
when no longer in use by the application.public WorkbenchPanelPresenter newWorkbenchPanel(PanelDefinition definition)
BeanFactory
newWorkbenchPanel
in interface BeanFactory
definition
- specification of the panel that should be created. Must not be null.BeanFactory.destroy(Object)
when no longer in use by the application.public CompassDropController newDropController(WorkbenchPanelView<?> view)
newDropController
in interface BeanFactory
public void destroy(Object o)
BeanFactory
WorkbenchPartPresenter
instance in will result in the
destruction of that presenter, its view, and all other dependent beans injected into that graph of objects.destroy
in interface BeanFactory
o
- a bean which was returned from one of the newXXX() methods in this class and which has not
been destroyed yet.Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.