public Action build() { return new Action(name, createActionArgumennts()); }
public Action appendAction(Map<Action, ActionExecutor> actions) throws LocalServiceBindingException { String name; if (getAnnotation().name().length() != 0) { name = getAnnotation().name(); } else { name = AnnotationLocalServiceBinder.toUpnpActionName(getMethod().getName()); } log.fine("Creating action and executor: " + name); List<ActionArgument> inputArguments = createInputArguments(); Map<ActionArgument<LocalService>, StateVariableAccessor> outputArguments = createOutputArguments(); inputArguments.addAll(outputArguments.keySet()); ActionArgument<LocalService>[] actionArguments = inputArguments.toArray(new ActionArgument[inputArguments.size()]); Action action = new Action(name, actionArguments); ActionExecutor executor = createExecutor(outputArguments); actions.put(action, executor); return action; }
public Action<S> deepCopy() { ActionArgument<S>[] actionArgumentsDupe = new ActionArgument[getArguments().length]; for (int i = 0; i < getArguments().length; i++) { ActionArgument arg = getArguments()[i]; actionArgumentsDupe[i] = arg.deepCopy(); } return new Action<>( getName(), actionArgumentsDupe ); }
public Action build() { return new Action(name, createActionArgumennts()); }
public Action appendAction(Map<Action, ActionExecutor> actions) throws LocalServiceBindingException { String name; if (getAnnotation().name().length() != 0) { name = getAnnotation().name(); } else { name = AnnotationLocalServiceBinder.toUpnpActionName(getMethod().getName()); } log.fine("Creating action and executor: " + name); List<ActionArgument> inputArguments = createInputArguments(); Map<ActionArgument<LocalService>, StateVariableAccessor> outputArguments = createOutputArguments(); inputArguments.addAll(outputArguments.keySet()); ActionArgument<LocalService>[] actionArguments = inputArguments.toArray(new ActionArgument[inputArguments.size()]); Action action = new Action(name, actionArguments); ActionExecutor executor = createExecutor(outputArguments); actions.put(action, executor); return action; }
public Action<S> deepCopy() { ActionArgument<S>[] actionArgumentsDupe = new ActionArgument[getArguments().length]; for (int i = 0; i < getArguments().length; i++) { ActionArgument arg = getArguments()[i]; actionArgumentsDupe[i] = arg.deepCopy(); } return new Action<S>( getName(), actionArgumentsDupe ); }
public Action build() { return new Action(name, createActionArgumennts()); }
public Action appendAction(Map<Action, ActionExecutor> actions) throws LocalServiceBindingException { String name; if (getAnnotation().name().length() != 0) { name = getAnnotation().name(); } else { name = AnnotationLocalServiceBinder.toUpnpActionName(getMethod().getName()); } log.fine("Creating action and executor: " + name); List<ActionArgument> inputArguments = createInputArguments(); Map<ActionArgument<LocalService>, StateVariableAccessor> outputArguments = createOutputArguments(); inputArguments.addAll(outputArguments.keySet()); ActionArgument<LocalService>[] actionArguments = inputArguments.toArray(new ActionArgument[inputArguments.size()]); Action action = new Action(name, actionArguments); ActionExecutor executor = createExecutor(outputArguments); actions.put(action, executor); return action; }
public Action<S> deepCopy() { ActionArgument<S>[] actionArgumentsDupe = new ActionArgument[getArguments().length]; for (int i = 0; i < getArguments().length; i++) { ActionArgument arg = getArguments()[i]; actionArgumentsDupe[i] = arg.deepCopy(); } return new Action<>( getName(), actionArgumentsDupe ); }