public class ActivityBeansCache extends Object
| Constructor and Description |
|---|
ActivityBeansCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
addNewEditorActivity(org.jboss.errai.ioc.client.container.SyncBeanDef<Activity> activityBean,
String priority,
String resourceTypeName)
Used for runtime plugins.
|
void |
addNewPerspectiveActivity(org.jboss.errai.ioc.client.container.SyncBeanDef<Activity> activityBean)
Used for runtime plugins.
|
void |
addNewScreenActivity(org.jboss.errai.ioc.client.container.SyncBeanDef<Activity> activityBean)
Used for runtime plugins.
|
void |
addNewSplashScreenActivity(org.jboss.errai.ioc.client.container.SyncBeanDef<Activity> activityBean) |
List<String> |
getActivitiesById() |
org.jboss.errai.ioc.client.container.SyncBeanDef<Activity> |
getActivity(org.uberfire.backend.vfs.Path path)
Returns the activated activity with the highest priority that can handle the given file.
|
org.jboss.errai.ioc.client.container.SyncBeanDef<Activity> |
getActivity(String id)
Returns the activity with the given CDI bean name from this cache, or null if there is no such activity or the
activity with the given name is not an activated bean.
|
List<SplashScreenActivity> |
getSplashScreens()
Returns all active splash screen activities in this cache.
|
void |
removeActivity(String id) |
public void removeActivity(String id)
public void addNewScreenActivity(org.jboss.errai.ioc.client.container.SyncBeanDef<Activity> activityBean)
public void addNewPerspectiveActivity(org.jboss.errai.ioc.client.container.SyncBeanDef<Activity> activityBean)
public void addNewEditorActivity(org.jboss.errai.ioc.client.container.SyncBeanDef<Activity> activityBean, String priority, String resourceTypeName)
public void addNewSplashScreenActivity(org.jboss.errai.ioc.client.container.SyncBeanDef<Activity> activityBean)
public List<SplashScreenActivity> getSplashScreens()
public org.jboss.errai.ioc.client.container.SyncBeanDef<Activity> getActivity(String id)
id - the CDI name of the bean (see Named), or in the case of runtime plugins, the name the activity
was registered under.public org.jboss.errai.ioc.client.container.SyncBeanDef<Activity> getActivity(org.uberfire.backend.vfs.Path path)
path - the file to find a path-based activity for (probably a WorkbenchEditorActivity, but this cache
makes no guarantees).Copyright © 2012–2017 JBoss by Red Hat. All rights reserved.