/** * Create and configure a ContextService object to the list of subresources * * @param key * The key for the ContextService resource * @param config * The ContextServiceConsumer to use * @return this */ @SuppressWarnings("unchecked") public T contextService(java.lang.String childKey, ContextServiceConsumer consumer) { ContextService<? extends ContextService> child = new ContextService<>( childKey); if (consumer != null) { consumer.accept(child); } contextService(child); return (T) this; }
/** * Create and configure a ContextService object to the list of subresources * * @param key * The key for the ContextService resource * @param config * The ContextServiceConsumer to use * @return this */ @SuppressWarnings("unchecked") public T contextService(java.lang.String childKey, ContextServiceConsumer consumer) { ContextService<? extends ContextService> child = new ContextService<>( childKey); if (consumer != null) { consumer.accept(child); } contextService(child); return (T) this; }