use of org.bimserver.plugins.services.ServicePlugin in project BIMserver by opensourceBIM.
the class BimServer method activateService.
public void activateService(long uoid, InternalServicePluginConfiguration internalServicePluginConfiguration) {
ServicePlugin servicePlugin = getPluginManager().getServicePlugin(internalServicePluginConfiguration.getPluginDescriptor().getPluginClassName(), true);
if (servicePlugin == null) {
LOGGER.warn("Plugin " + internalServicePluginConfiguration.getPluginDescriptor().getPluginClassName() + " not found");
} else {
SInternalServicePluginConfiguration sInternalService = (SInternalServicePluginConfiguration) getSConverter().convertToSObject(internalServicePluginConfiguration);
try {
servicePlugin.unregister(sInternalService);
servicePlugin.register(uoid, sInternalService, new org.bimserver.plugins.PluginConfiguration(internalServicePluginConfiguration.getSettings()));
} catch (Throwable e) {
LOGGER.error("", e);
}
}
}
Aggregations