public InvalidPropertyFile(String name, LogicalComponent component, Throwable cause, URI file) { super(component.getUri(), component.getDefinition().getContributionUri(), Collections.singletonList(component)); this.name = name; this.cause = cause; this.file = file; }
public InvalidProperty(String name, LogicalComponent component, Throwable cause) { super(component.getUri(), component.getDefinition().getContributionUri(), Collections.singletonList(component)); this.name = name; this.cause = cause; }
public InvalidPropertyFile(String name, LogicalComponent component, Throwable cause, URI file) { super(component.getUri(), component.getDefinition().getContributionUri(), Collections.singletonList(component)); this.name = name; this.cause = cause; this.file = file; }
public List<Command> generate(List<LogicalComponent<?>> components) throws Fabric3Exception { List<Command> commands = new ArrayList<>(); components.stream().filter(component -> component.getState() == LogicalState.MARKED).forEach(component -> { URI uri = component.getDefinition().getContributionUri(); // only log application composite deployments boolean log = !component.getUri().toString().startsWith(Names.RUNTIME_NAME); StopContextCommand command = new StopContextCommand(uri, log); if (!commands.contains(command)) { commands.add(command); } }); return commands; }
public NoServiceOnComponent(String message, LogicalComponent component) { super(component.getUri(), component.getDefinition().getContributionUri(), Collections.singletonList(component)); this.message = message; }
public InvalidProperty(String name, LogicalComponent component, Throwable cause) { super(component.getUri(), component.getDefinition().getContributionUri(), Collections.singletonList(component)); this.name = name; this.cause = cause; }
public NoServiceOnComponent(String message, LogicalComponent component) { super(component.getUri(), component.getDefinition().getContributionUri(), Collections.singletonList(component)); this.message = message; }
public WireSourceNotFound(URI sourceUri, LogicalCompositeComponent composite) { super(composite.getUri(), composite.getDefinition().getContributionUri(), Collections.singletonList(composite)); this.sourceUri = sourceUri; }
public WireSourceNoReference(URI sourceUri, LogicalCompositeComponent composite) { super(composite.getUri(), composite.getDefinition().getContributionUri(), Collections.singletonList(composite)); this.sourceUri = sourceUri; }
public BindingNotFound(String message, LogicalBindable bindable) { super(bindable.getParent().getUri(), bindable.getParent().getDefinition().getContributionUri(), Collections.singletonList(bindable)); this.message = message; }
public ServiceNotFound(String message, LogicalBindable bindable) { super(bindable.getParent().getUri(), bindable.getParent().getDefinition().getContributionUri(), Collections.singletonList(bindable)); this.message = message; }
public BindingNotFound(String message, LogicalBindable bindable) { super(bindable.getParent().getUri(), bindable.getParent().getDefinition().getContributionUri(), Collections.singletonList(bindable)); this.message = message; }
public AmbiguousService(String message, LogicalBindable bindable) { super(bindable.getParent().getUri(), bindable.getParent().getDefinition().getContributionUri(), Collections.singletonList(bindable)); this.message = message; }
public ReferenceNotFound(String message, LogicalReference reference) { super(reference.getParent().getUri(), reference.getParent().getDefinition().getContributionUri(), Collections.singletonList(reference)); this.message = message; }
public TargetComponentNotFound(LogicalReference reference, URI targetUri) { super(reference.getParent().getUri(), reference.getParent().getDefinition().getContributionUri(), Collections.singletonList(reference)); this.referenceUri = reference.getUri(); this.targetUri = targetUri; }
/** * Constructor. * * @param source the reference source * @param promotedComponentUri the promoted component URI. */ public AmbiguousReference(LogicalReference source, URI promotedComponentUri) { super(source.getParent().getUri(), source.getParent().getDefinition().getContributionUri(), Collections.singletonList(source)); this.referenceUri = source.getUri(); this.promotedComponentUri = promotedComponentUri; }
public TargetComponentNotFound(LogicalReference reference, URI targetUri) { super(reference.getParent().getUri(), reference.getParent().getDefinition().getContributionUri(), Collections.singletonList(reference)); this.referenceUri = reference.getUri(); this.targetUri = targetUri; }
public KeyNotFound(LogicalReference reference) { super(reference.getParent().getUri(), reference.getParent().getDefinition().getContributionUri(), Collections.singletonList(reference)); this.referenceUri = reference.getUri(); }
/** * Constructor. * * @param source the reference source * @param promotedComponentUri the promoted component URI. */ public AmbiguousReference(LogicalReference source, URI promotedComponentUri) { super(source.getParent().getUri(), source.getParent().getDefinition().getContributionUri(), Collections.singletonList(source)); this.referenceUri = source.getUri(); this.promotedComponentUri = promotedComponentUri; }
/** * Constructor. * * @param reference the reference * @param serviceUri the URI of the service * @param message the reported contract matching error */ public IncompatibleContracts(LogicalReference reference, URI serviceUri, String message) { super(reference.getParent().getUri(), reference.getParent().getDefinition().getContributionUri(), Collections.singletonList(reference)); this.referenceUri = reference.getUri(); this.serviceUri = serviceUri; this.message = message; }