@Override public ServiceHandler activateBinding(QName name, BindingModel config) { throw BaseDeployMessages.MESSAGES.activateBindingNotSupported(getClass().getName()); }
@Override public ServiceHandler activateService(QName name, ComponentModel config) { throw BaseDeployMessages.MESSAGES.activateServiceNotSupported(getClass().getName()); }
/** * Find the deployment activator for the specified type. * * @param type The activator component type. * @return Activator the Activator instance, or null if no activator exists for the specified type. * @throws SwitchYardException if the component definition does not contain * an implementation type */ public Activator findActivator(String type) throws SwitchYardException { if (_activators.containsKey(type)) { return _activators.get(type); } else if (failOnMissingActivator()) { throw BaseDeployMessages.MESSAGES.activatorNotFoundForType(type); } else { return null; } }
for (Model model : models) { if (BindingModel.class.isAssignableFrom(model.getClass())) { throw BaseDeployMessages.MESSAGES.componentReferenceBindingsNotAllowed(model.toString(), reference.toString()); requires = getPolicyRequirements(reference); } catch (Exception e) { throw BaseDeployMessages.MESSAGES.unableCollectRequirements(reference.toString(), e); throw BaseDeployMessages.MESSAGES.multipleServicesFound(component.getName()); } else if (component.getServices().size() == 1) { ComponentServiceModel service = component.getServices().get(0); for (Model model : models) { if (BindingModel.class.isAssignableFrom(model.getClass())) { throw BaseDeployMessages.MESSAGES.componentServiceBindingsNotAllowed(model.toString(), service.toString());
@Override public void deactivateService(QName name, ServiceHandler handler) { throw BaseDeployMessages.MESSAGES.deactivateServiceNotSupported(getClass().getName()); }
@Override public void deactivateBinding(QName name, ServiceHandler handler) { throw BaseDeployMessages.MESSAGES.deactivateBindingNotSupported(getClass().getName()); }
/** * Finds an activator that handles the component implementation type. * @throws SwitchYardException if the component definition does not contain * an implementation type */ private Activator findActivator(ComponentModel component) throws SwitchYardException { if (component.getImplementation() == null) { throw BaseDeployMessages.MESSAGES.componentDefNoImpl(component.getName()); } return findActivator(component.getImplementation().getType()); }
serviceSecurities.put(key, value); } else { throw BaseDeployMessages.MESSAGES.duplicateSecurityConfigurationNames(key);
throw BaseDeployMessages.MESSAGES.failedToLoadServiceInterface(interfaceClass);