public class MavenResourceContainer extends Object
MavenResources.| Constructor and Description |
|---|
MavenResourceContainer() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(String directory)
Add a resource with default settings for the specified
directory. |
void |
add(String directory,
Consumer<MavenResource.Builder> resource)
Add a resource with default settings for the specified
directory and
Consumer to customize the resource. |
boolean |
has(String directory)
Specify if this container has a resource the specified
directory. |
boolean |
isEmpty()
Specify if this container is empty.
|
boolean |
remove(String directory)
Remove the resource with the specified
directory. |
Stream<MavenResource> |
values()
Returns a
Stream of registered MavenResources. |
public boolean isEmpty()
true if no MavenResource is addedpublic boolean has(String directory)
directory.directory - the resource directorytrue if an item for the specified directory existspublic Stream<MavenResource> values()
Stream of registered MavenResources.MavenResourcespublic void add(String directory)
directory.directory - the directory to addpublic void add(String directory, Consumer<MavenResource.Builder> resource)
directory and
Consumer to customize the resource. If the resource has already been added,
the consumer can be used to further tune the existing resource configuration.directory - the directory to addresource - a Consumer to customize the MavenResourcepublic boolean remove(String directory)
directory.directory - the directory to removetrue if such a resource was registered, false otherwiseCopyright © 2020 Pivotal Software, Inc.. All rights reserved.