public boolean isRequireLegacyConnector() { return this.required || this.port.isExplicit(); }
public boolean isRequireLegacyConnector() { return this.required || this.port.isExplicit(); }
/** * Determine if either an explicit value is set of the supplied <code>other</code> <code>Supplier</code> parameter returns non-null. * * @param other The alternative value supplier. * @return <code>true</code> if either an explicit value is set or the supplier provides a non-null value. */ public boolean isExplicitPresent(Supplier<T> other) { return isExplicit() || other.get() != null; }
/** * Determine if either an explicit value is set of the supplied <code>other</code> <code>Supplier</code> parameter returns non-null. * * @param other The alternative value supplier. * @return <code>true</code> if either an explicit value is set or the supplier provides a non-null value. */ public boolean isExplicitPresent(Supplier<T> other) { return isExplicit() || other.get() != null; }
/** * If (and only if) an explicit value is present, invoke the supplied consumer with it * * @param consumer The consumer. */ public void ifExplicit(Consumer<? super T> consumer) { if (isExplicit()) { consumer.accept(get()); } }
/** * If (and only if) an explicit value is present, invoke the supplied consumer with it * * @param consumer The consumer. */ public void ifExplicit(Consumer<? super T> consumer) { if (isExplicit()) { consumer.accept(get()); } }
/** * Create a <code>Boolean</code> configuration that has a default value of <code>true</code> if all arguments have been explicitly set to non-default values. * * @param items The items to test. * @return The new item. */ public static Defaultable<Boolean> ifAllExplicitlySet(Defaultable<?>... items) { return bool(() -> { for (Defaultable<?> item : items) { if (!item.isExplicit()) { return false; } } return true; }); }
/** * Create a <code>Boolean</code> configuration that has a default value of <code>true</code> if all arguments have been explicitly set to non-default values. * * @param items The items to test. * @return The new item. */ public static Defaultable<Boolean> ifAllExplicitlySet(Defaultable<?>... items) { return bool(() -> { for (Defaultable<?> item : items) { if (!item.isExplicit()) { return false; } } return true; }); }
/** * Create a <code>Boolean</code> configuration that has a default value of <code>true</code> if any arguments have been explicitly set to non-default values. * * @param items The items to test. * @return The new item. */ public static Defaultable<Boolean> ifAnyExplicitlySet(Defaultable<?>... items) { return bool(() -> { for (Defaultable<?> item : items) { if (item.isExplicit()) { return true; } } return false; }); }
/** * Create a <code>Boolean</code> configuration that has a default value of <code>true</code> if any arguments have been explicitly set to non-default values. * * @param items The items to test. * @return The new item. */ public static Defaultable<Boolean> ifAnyExplicitlySet(Defaultable<?>... items) { return bool(() -> { for (Defaultable<?> item : items) { if (item.isExplicit()) { return true; } } return false; }); }
@Override public void process() throws Exception { if (this.deploymentContext != null && this.deploymentContext.isImplicit()) { return; } if (!archive.getName().endsWith(".war")) { return; } if (hasApplicationPathOrServletMapping(archive)) { return; } if (applicationPath.isExplicit()) { addGeneratedApplication(archive.as(JAXRSArchive.class)); } }