Namedpublic interface Bundling extends Named
external, the default, where dependencies, if any, are found transitivelyembedded, where dependencies are found inside the component, but using the same namespace as the original dependenciesshadowed, where dependencies are found inside the component, but within a different namespace to avoid name clashesAs a practical example, let's consider the Java ecosystem:
external indicates that transitive dependencies are themselves component jarsembedded indicates that transitive dependencies have been included inside the component jar, without modifying their packagesshadowed indicates that transitive dependencies have been included inside the component jar, under different packages to prevent conflictsexternal indicates that the source of transitive dependencies are themselves source jarsembedded indicates that the source of transitive dependencies have been included inside the component source jar, without modifying their packagesshadowed indicates that the source of transitive dependencies have been included inside the component source jar, under different packagesNamed.Namer| Modifier and Type | Field | Description |
|---|---|---|
static Attribute<Bundling> |
BUNDLING_ATTRIBUTE |
|
static String |
EMBEDDED |
Dependencies are packaged within the main component artifact.
|
static String |
EXTERNAL |
The most common case: dependencies are provided as individual components.
|
static String |
SHADOWED |
Dependencies are packaged within the main component artifact
but also in a different namespace to prevent conflicts.
|
static final String EXTERNAL
static final String EMBEDDED
static final String SHADOWED