public interface SpringBootContainer<T extends org.jboss.shrinkwrap.api.Archive<T>>
| Modifier and Type | Method and Description |
|---|---|
T |
addAsBootInfResource(org.jboss.shrinkwrap.api.asset.Asset resource,
org.jboss.shrinkwrap.api.ArchivePath target)
Adds the
Asset as a BOOT-INF resource to the container, returning the container itself. |
T |
addAsBootInfResource(org.jboss.shrinkwrap.api.asset.Asset resource,
String target)
Adds the
Asset as a BOOT-INF resource to the container, returning the container itself. |
T |
addAsBootInfResource(File resource)
Adds the
File as a BOOT-INF resource to the container, returning the container itself. |
T |
addAsBootInfResource(File resource,
org.jboss.shrinkwrap.api.ArchivePath target)
Adds the
File as a BOOT-INF resource to the container, returning the container itself. |
T |
addAsBootInfResource(File resource,
String target)
Adds the
File as a BOOT-INF resource to the container, returning the container itself. |
T |
addAsBootInfResource(Package resourcePackage,
String resourceName)
Adds the resource as a BOOT-INF resource to the container, returning the container itself.
|
T |
addAsBootInfResource(Package resourcePackage,
String resourceName,
org.jboss.shrinkwrap.api.ArchivePath target)
Adds the resource as a BOOT-INF resource to a specific path inside the container, returning the container itself.
|
T |
addAsBootInfResource(Package resourcePackage,
String resourceName,
String target)
Adds the resource as a BOOT-INF resource to a specific path inside the container, returning the container itself.
|
T |
addAsBootInfResource(String resourceName)
Adds the resource as a BOOT-INF resource to the container, returning the container itself.
|
T |
addAsBootInfResource(String resourceName,
org.jboss.shrinkwrap.api.ArchivePath target)
Adds the resource as a BOOT-INF resource to the container, returning the container itself.
|
T |
addAsBootInfResource(String resourceName,
String target)
Adds the resource as a BOOT-INF resource to the container, returning the container itself.
|
T |
addAsBootInfResource(URL resource,
org.jboss.shrinkwrap.api.ArchivePath target)
Adds the
URL as a BOOT-INF resource to the container, returning the container itself. |
T |
addAsBootInfResource(URL resource,
String target)
Adds the
URL as a BOOT-INF resource to the container, returning the container itself. |
T |
addAsBootInfResources(Package resourcePackage,
String... resourceNames)
Adds the resources inside the package as multiple BOOT-INF resources to the container, returning the container
itself.
|
T |
addAsLauncherLibraries(org.jboss.shrinkwrap.api.Archive<?>... archives)
Add multiple
Archives to this Archive as launcher libraries, returning the container itself. |
T |
addAsLauncherLibraries(org.jboss.shrinkwrap.api.Archive<?>[]... archives)
Add multiple
Archives to this Archive as llauncher libraries, returning the container itself. |
T |
addAsLauncherLibraries(Collection<? extends org.jboss.shrinkwrap.api.Archive<?>> archives)
Add multiple
Archives to this Archive as launcher libraries, returning the container itself. |
T |
addAsLauncherLibrary(org.jboss.shrinkwrap.api.Archive<?> archive)
Add another
Archive to this Archive as a launcher library, returning the container itself. |
T |
addDefaultLauncherPackage()
Adds all classes in the default
Package to the Archive as part of the launcher class path.SubPackages are excluded. |
T |
addLauncherClass(Class<?> clazz)
|
T |
addLauncherClass(String fullyQualifiedClassName)
Adds the
Class, and all member (inner) Classes, with the specified fully-qualified name, loaded
by the Thread Context ClassLoader, to the Archive as part of the launcher class path. |
T |
addLauncherClass(String fullyQualifiedClassName,
ClassLoader cl)
Adds the
Class, and all member (inner) @link{Class}es, with the specified fully-qualified name, loaded by
the specified ClassLoader, to the Archive as part of the launcher class path. |
T |
addLauncherClasses(Class<?>... classes)
|
T |
addLauncherPackage(String pack)
Adds all classes in the specified
Package to the Archive as part of the launcher class path.SubPackages are excluded. |
T |
addLauncherPackages(boolean recursive,
org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter,
Package... packages)
Adds all classes accepted by the filter in the specified
Packages to the Archive as part of the
launcher class path.The ArchivePath returned to the filter is the ArchivePath of the class, not the final location. |
T |
addLauncherPackages(boolean recursive,
org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter,
String... packages)
Adds all classes accepted by the filter in the specified
Packages to the Archive as part of the
launcher class path.The ArchivePath returned to the filter is the ArchivePath of the class, not the final location. |
T |
addLauncherPackages(boolean recursive,
Package... packages)
Adds all classes in the specified
Packages to the Archive as part of the launcher class path. |
T |
addLauncherPackages(boolean recursive,
String... packages)
Adds all classes in the specified
Packages to the Archive as part of the launcher class path. |
T |
addPackage(Package pack)
Adds all classes in the specified
Package to the Archive as part of the launcher class path.SubPackages are excluded. |
T |
deleteDefaultLauncherPackage()
Deletes all classes in the default
Package from the Archive launcher class path.SubPackages are excluded. |
T |
deleteLauncherClass(Class<?> clazz)
|
T |
deleteLauncherClass(String fullyQualifiedClassName)
Deletes the
Class, and all member (inner) Classes, with the specified fully-qualified name, loaded by the
Thread Context ClassLoader, from the Archive launcher class path. |
T |
deleteLauncherClasses(Class<?>... classes)
|
T |
deleteLauncherPackage(Package pack)
Deletes all classes in the specified
Package from the Archive launcher class path.SubPackages are excluded. |
T |
deleteLauncherPackage(String pack)
Deletes all classes in the specified
Package from the Archive launcher class path.SubPackages are excluded. |
T |
deleteLauncherPackages(boolean recursive,
org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter,
Package... packages)
Deletes all classes accepted by the filter in the specified
Packages from the Archive launcher
class path.The ArchivePath returned to the filter is the ArchivePath of the class, not the final location. |
T |
deleteLauncherPackages(boolean recursive,
org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter,
String... packages)
Delete all classes accepted by the filter in the specified
Packages from the Archive launcher
class path.The ArchivePath returned to the filter is the ArchivePath of the class, not the final location. |
T |
deleteLauncherPackages(boolean recursive,
Package... packages)
Deletes all classes in the specified
Packages from the Archive launcher class path. |
T |
deleteLauncherPackages(boolean recursive,
String... packages)
Delete all classes in the specified
Packages from the Archive launcher class path. |
T |
setSpringBootLayout(SpringBootLayout layout) |
T |
setSpringBootManifest(String applicationClassName) |
T |
setSpringBootManifest(String applicationClassName,
String springBootVersion) |
T setSpringBootLayout(SpringBootLayout layout)
T setSpringBootManifest(String applicationClassName, String springBootVersion)
T addAsBootInfResource(String resourceName) throws IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.resourceName - resource to addArchiveIllegalArgumentException - if resourceName is not specifiedT addAsBootInfResource(File resource) throws IllegalArgumentException
File as a BOOT-INF resource to the container, returning the container itself. File will be placed into the Container BOOT-INF path under File.getName().resource - Resource to addArchiveIllegalArgumentException - if File resource is nullT addAsBootInfResource(String resourceName, String target) throws IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.resourceName - resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
BOOT-INF path.ArchiveIllegalArgumentException - if resourceName or target is not specifiedT addAsBootInfResource(File resource, String target) throws IllegalArgumentException
File as a BOOT-INF resource to the container, returning the container itself.resource - File resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
BOOT-INF path.ArchiveIllegalArgumentException - If the resource or target is not specifiedT addAsBootInfResource(URL resource, String target) throws IllegalArgumentException
URL as a BOOT-INF resource to the container, returning the container itself.resource - URL resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
BOOT-INF path.ArchiveIllegalArgumentException - If the resource or target is not specifiedT addAsBootInfResource(org.jboss.shrinkwrap.api.asset.Asset resource, String target) throws IllegalArgumentException
Asset as a BOOT-INF resource to the container, returning the container itself.resource - Asset resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
BOOT-INF path.ArchiveIllegalArgumentException - If the resource or target is not specifiedT addAsBootInfResource(String resourceName, org.jboss.shrinkwrap.api.ArchivePath target) throws IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.resourceName - resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
BOOT-INF path.ArchiveIllegalArgumentException - If the resource or target is not specifiedT addAsBootInfResource(File resource, org.jboss.shrinkwrap.api.ArchivePath target) throws IllegalArgumentException
File as a BOOT-INF resource to the container, returning the container itself.resource - File resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
BOOT-INF path.ArchiveIllegalArgumentException - If the resource or target is not specifiedT addAsBootInfResource(URL resource, org.jboss.shrinkwrap.api.ArchivePath target) throws IllegalArgumentException
URL as a BOOT-INF resource to the container, returning the container itself.resource - URL resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
BOOT-INF path.ArchiveIllegalArgumentException - If the resource or target is not specifiedT addAsBootInfResource(org.jboss.shrinkwrap.api.asset.Asset resource, org.jboss.shrinkwrap.api.ArchivePath target) throws IllegalArgumentException
Asset as a BOOT-INF resource to the container, returning the container itself.resource - Asset resource to addtarget - The target path within the archive in which to add the resource, relative to the Archives
BOOT-INF path.ArchiveIllegalArgumentException - If the resource or target is not specifiedT addAsBootInfResources(Package resourcePackage, String... resourceNames) throws IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.resourcePackage - The package of the resourcesresourceNames - The names of the resources inside resourcePackageArchiveIllegalArgumentException - If resourcePackage is null, or if no resourceNames are specified or containing nullT addAsBootInfResource(Package resourcePackage, String resourceName) throws IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.resourcePackage - The package of the resourceresourceName - The name of the resource inside resourcePackageArchiveIllegalArgumentException - If the package or resource name is not specifiedT addAsBootInfResource(Package resourcePackage, String resourceName, String target) throws IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.resourcePackage - The package of the resourceresourceName - The name of the resource inside resoucePackagetarget - The target location inside the containerArchiveIllegalArgumentException - If the package, resource name, or target is not specifiedT addAsBootInfResource(Package resourcePackage, String resourceName, org.jboss.shrinkwrap.api.ArchivePath target) throws IllegalArgumentException
ClassLoader used to obtain the resource is up to the implementation.resourcePackage - The package of the resourceresourceName - The name of the resource inside resoucePackagetarget - The target location inside the containerArchiveIllegalArgumentException - If the package, resource name, or target is not specifiedT addLauncherClass(Class<?> clazz) throws IllegalArgumentException
clazz - The class to add to the ArchiveIllegalArgumentException - If no class were specifiedT addLauncherClass(String fullyQualifiedClassName) throws IllegalArgumentException
Class, and all member (inner) Classes, with the specified fully-qualified name, loaded
by the Thread Context ClassLoader, to the Archive as part of the launcher class path.fullyQualifiedClassName - The name of the Class to addIllegalArgumentException - If no class name was specifiedIllegalArgumentException - If the Class could not be loadedT addLauncherClass(String fullyQualifiedClassName, ClassLoader cl) throws IllegalArgumentException
Class, and all member (inner) @link{Class}es, with the specified fully-qualified name, loaded by
the specified ClassLoader, to the Archive as part of the launcher class path.fullyQualifiedClassName - The name of the Class to addcl - The ClassLoader used to load the ClassIllegalArgumentException - If no class name was specifiedIllegalArgumentException - If no ClassLoader was specifiedIllegalArgumentException - If the Class could not be loaded by the target ClassLoaderT addLauncherClasses(Class<?>... classes) throws IllegalArgumentException
classes - The classes to add to the ArchiveIllegalArgumentException - If no classes were specifiedT addPackage(Package pack) throws IllegalArgumentException
Package to the Archive as part of the launcher class path.pack - The Package to addIllegalArgumentException - If no package were specifiedaddLauncherPackages(boolean, Package...)T addDefaultLauncherPackage()
Package to the Archive as part of the launcher class path.T addLauncherPackages(boolean recursive, Package... packages) throws IllegalArgumentException
Packages to the Archive as part of the launcher class path.recursive - Should the sub packages be addedpackages - All the packages to addIllegalArgumentException - If no packages were specifiedaddLauncherPackages(boolean, Filter, Package...)T addLauncherPackages(boolean recursive, org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter, Package... packages) throws IllegalArgumentException
Packages to the Archive as part of the
launcher class path.ArchivePath returned to the filter is the ArchivePath of the class, not the final location. recursive - Should the sub packages be addedfilter - filter out specific classespackages - All the packages to addIllegalArgumentException - If no packages were specifiedT addLauncherPackage(String pack) throws IllegalArgumentException
Package to the Archive as part of the launcher class path.pack - Package to add represented by a String ("my/package")IllegalArgumentException - If no package were specifiedaddLauncherPackages(boolean, Package...)T addLauncherPackages(boolean recursive, String... packages) throws IllegalArgumentException
Packages to the Archive as part of the launcher class path.recursive - Should the sub packages be addedpackages - All the packages to add represented by a String ("my/package")IllegalArgumentException - If no packages were specifiedaddLauncherPackages(boolean, Filter, Package...)T addLauncherPackages(boolean recursive, org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter, String... packages) throws IllegalArgumentException
Packages to the Archive as part of the
launcher class path.ArchivePath returned to the filter is the ArchivePath of the class, not the final location. recursive - Should the sub packages be addedfilter - filter out specific classespackages - All the packages to add represented by a String ("my/package")IllegalArgumentException - If no packages were specifiedT deleteLauncherClass(Class<?> clazz) throws IllegalArgumentException
clazz - The class to be deleted from the ArchiveIllegalArgumentException - If no class was specifiedT deleteLauncherClass(String fullyQualifiedClassName) throws IllegalArgumentException
Class, and all member (inner) Classes, with the specified fully-qualified name, loaded by the
Thread Context ClassLoader, from the Archive launcher class path.fullyQualifiedClassName - The name of the Class to be deletedIllegalArgumentException - If no class name was specifiedIllegalArgumentException - If the Class could not be loadedT deleteLauncherClasses(Class<?>... classes) throws IllegalArgumentException
classes - The classes to be removed from the ArchiveIllegalArgumentException - If no classes were specifiedT deleteLauncherPackage(Package pack) throws IllegalArgumentException
Package from the Archive launcher class path.pack - The Package to be deletedIllegalArgumentException - If no package was specifieddeleteLauncherPackages(boolean, Package...)T deleteLauncherPackage(String pack) throws IllegalArgumentException
Package from the Archive launcher class path.pack - Package to be delete represented by a String ("my/package")IllegalArgumentException - If no package was specifieddeleteLauncherPackages(boolean, Package...)T deleteDefaultLauncherPackage()
Package from the Archive launcher class path.T deleteLauncherPackages(boolean recursive, Package... packages) throws IllegalArgumentException
Packages from the Archive launcher class path.recursive - Should the sub packages be deleted?packages - All the packages to be deletedIllegalArgumentException - If no packages were specifieddeleteLauncherPackages(boolean, Filter, Package...)T deleteLauncherPackages(boolean recursive, String... packages) throws IllegalArgumentException
Packages from the Archive launcher class path.recursive - Should the sub packages be deleted?packages - All the packages to be deleted represented by a String ("my/package")IllegalArgumentException - If no packages were specifieddeleteLauncherPackages(boolean, Filter, Package...)T deleteLauncherPackages(boolean recursive, org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter, Package... packages) throws IllegalArgumentException
Packages from the Archive launcher
class path.ArchivePath returned to the filter is the ArchivePath of the class, not the final location. recursive - Should the sub packages be deleted?filter - filter out specific classespackages - All the packages to be deletedIllegalArgumentException - If no packages were specified or if no filter was specifiedT deleteLauncherPackages(boolean recursive, org.jboss.shrinkwrap.api.Filter<org.jboss.shrinkwrap.api.ArchivePath> filter, String... packages) throws IllegalArgumentException
Packages from the Archive launcher
class path.ArchivePath returned to the filter is the ArchivePath of the class, not the final location. recursive - Should the sub packages be deleted?filter - filter out specific classespackages - All the packages to be deleted represented by a String ("my/package")IllegalArgumentException - If no packages were specified or if no filter was specifiedT addAsLauncherLibrary(org.jboss.shrinkwrap.api.Archive<?> archive) throws IllegalArgumentException
Archive to this Archive as a launcher library, returning the container itself.archive - Archive resource to addIllegalArgumentException - if Archive is nullT addAsLauncherLibraries(org.jboss.shrinkwrap.api.Archive<?>... archives) throws IllegalArgumentException
Archives to this Archive as launcher libraries, returning the container itself.archives - Archive resources to addIllegalArgumentException - if Archive resources are nulladdAsLauncherLibrary(Archive)T addAsLauncherLibraries(Collection<? extends org.jboss.shrinkwrap.api.Archive<?>> archives) throws IllegalArgumentException
Archives to this Archive as launcher libraries, returning the container itself.archives - Archive resources to addIllegalArgumentException - if Collection of archives is nulladdAsLauncherLibrary(Archive)T addAsLauncherLibraries(org.jboss.shrinkwrap.api.Archive<?>[]... archives) throws IllegalArgumentException
Archives to this Archive as llauncher libraries, returning the container itself.archives - Archive resources to addIllegalArgumentException - if Collection of archives is nulladdAsLauncherLibrary(Archive)Copyright © 2017 JBoss by Red Hat. All rights reserved.