/**
* @inheritDoc()
*/
@Override
protected void activate() {
CellRegistry registry = CellRegistry.getCellRegistry();
// Fetch the list of X Apps registered for the system and register them
// with the Cell Registry. We synchronize over the set of factories
// in case one is added/removed via the configuration channel at the
// same time.
synchronized (factorySet) {
List<XAppRegistryItem> systemItems =
XAppRegistryItemUtils.getSystemXAppRegistryItemList();
for (XAppRegistryItem item : systemItems) {
String appName = item.getAppName();
String command = item.getCommand();
XAppCellFactory factory = new XAppCellFactory(appName, command);
registry.registerCellFactory(factory);
factorySet.add(factory);
}
}
}