/** * 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; } }