@Test(expectedExceptions = IllegalArgumentException.class) public void getctionInstanceEmptyUri() { manager.getActionInstance(""); }
@Override public Action getActionInstance(String uri) { Validate.notEmpty(uri, "Action URI must not be null or empty."); Class<T> clazz = actionMap.get(uri); if (clazz == null) { return null; } Action action = null; try { action = clazz.newInstance(); if (action instanceof BaseAction) { BaseAction baseAction = (BaseAction) action; baseAction.setClockwork(clockwork); baseAction.setExecutor(changeExecutor); baseAction.setPrismContext(prismContext); baseAction.setAuditService(auditService); baseAction.setProvisioningService(provisioningService); baseAction.setContextFactory(contextFactory); baseAction.setModelObjectResolver(modelObjectResolver); } } catch (Exception ex) { LoggingUtils.logException(trace, "Couldn't create action instance", ex); } return action; }
ActionManagerImpl implements ActionManager<T> { @Override public Action getActionInstance(String uri) { Validate.notEmpty(uri, "Action URI must not be null or empty."); Class<T> clazz = actionMap.get(uri); if (clazz == null) { return null; } Action action = null; try { action = clazz.newInstance(); if (action instanceof BaseAction) { BaseAction baseAction = (BaseAction) action; baseAction.setClockwork(clockwork); baseAction.setExecutor(changeExecutor); baseAction.setPrismContext(prismContext); baseAction.setAuditService(auditService); baseAction.setProvisioningService(provisioningService); baseAction.setContextFactory(contextFactory); baseAction.setModelObjectResolver(modelObjectResolver); } } catch (Exception ex) { LoggingUtils.logException(trace, "Couldn't create action instance", ex); } return action; } }
ActionManagerImpl implements ActionManager<T> { @Override public Action getActionInstance(String uri) { Validate.notEmpty(uri, "Action URI must not be null or empty."); Class<T> clazz = actionMap.get(uri); if (clazz == null) { return null; } Action action = null; try { action = clazz.newInstance(); if (action instanceof BaseAction) { BaseAction baseAction = (BaseAction) action; baseAction.setClockwork(clockwork); baseAction.setExecutor(changeExecutor); baseAction.setPrismContext(prismContext); baseAction.setAuditService(auditService); baseAction.setProvisioningService(provisioningService); baseAction.setContextFactory(contextFactory); baseAction.setModelObjectResolver(modelObjectResolver); } } catch (Exception ex) { LoggingUtils.logException(trace, "Couldn't create action instance", ex); } return action; }  }
ActionManagerImpl implements ActionManager<T> { @Override public Action getActionInstance(String uri) { Validate.notEmpty(uri, "Action URI must not be null or empty."); Class<T> clazz = actionMap.get(uri); if (clazz == null) { return null; } Action action = null; try { action = clazz.newInstance(); if (action instanceof BaseAction) { BaseAction baseAction = (BaseAction) action; baseAction.setClockwork(clockwork); baseAction.setExecutor(changeExecutor); baseAction.setPrismContext(prismContext); baseAction.setAuditService(auditService); baseAction.setProvisioningService(provisioningService); baseAction.setContextFactory(contextFactory); baseAction.setModelObjectResolver(modelObjectResolver); } } catch (Exception ex) { LoggingUtils.logException(trace, "Couldn't create action instance", ex); } return action; }  @Override void setActionMapping(Map<String, Class<T>> actionMap); @Override Action getActionInstance(String uri); @Override List<String> getAvailableActions(); void setClockwork(Clockwork clockwork); void setChangeExecutor(ChangeExecutor executor); void setModelObjectResolver(ModelObjectResolver modelObjectResolver); void setPrismContext(PrismContext prismContext); void setAuditService(AuditService auditService); void setProvisioningService(ProvisioningService provisioningService); ContextFactory getContextFactory(); void setContextFactory(ContextFactory contextFactory); }
ActionManagerImpl implements ActionManager<T> { @Override public Action getActionInstance(String uri) { Validate.notEmpty(uri, "Action URI must not be null or empty."); Class<T> clazz = actionMap.get(uri); if (clazz == null) { return null; } Action action = null; try { action = clazz.newInstance(); if (action instanceof BaseAction) { BaseAction baseAction = (BaseAction) action; baseAction.setClockwork(clockwork); baseAction.setExecutor(changeExecutor); baseAction.setPrismContext(prismContext); baseAction.setAuditService(auditService); baseAction.setProvisioningService(provisioningService); baseAction.setContextFactory(contextFactory); baseAction.setModelObjectResolver(modelObjectResolver); } } catch (Exception ex) { LoggingUtils.logException(trace, "Couldn't create action instance", ex); } return action; }  @Override void setActionMapping(Map<String, Class<T>> actionMap); @Override Action getActionInstance(String uri); @Override List<String> getAvailableActions(); void setClockwork(Clockwork clockwork); void setChangeExecutor(ChangeExecutor executor); void setModelObjectResolver(ModelObjectResolver modelObjectResolver); void setPrismContext(PrismContext prismContext); void setAuditService(AuditService auditService); void setProvisioningService(ProvisioningService provisioningService); ContextFactory getContextFactory(); void setContextFactory(ContextFactory contextFactory);  }