public class MavenExtension extends Object implements Extension
RepositorySystem,
RepositorySystemSession| Constructor and Description |
|---|
MavenExtension()
Creates a new
MavenExtension. |
| Modifier and Type | Method and Description |
|---|---|
static URL |
getBeanArchiveLocation(Bean<?> bean)
|
Properties |
getGroupArtifactVersionCoordinates(URL location)
Returns a
Properties object containing the contents of a pom.properties file as
commonly installed in .jar files by Maven. |
public MavenExtension()
MavenExtension.public Properties getGroupArtifactVersionCoordinates(URL location) throws IOException, URISyntaxException
Properties object containing the contents of a pom.properties file as
commonly installed in .jar files by Maven.
This method may return null.
This method is not final due to CDI specification
restrictions only.
location - the location of the classpath element (a .jar file, or, perhaps, a directory); may be null in
which case null will be returnedProperties object, or nullIOException - if an input/output error occursURISyntaxException - if there was a problem constructing
a URIpublic static final URL getBeanArchiveLocation(Bean<?> bean)
Bean, returns a URL representing the
classpath root from which its bean class originates.
This method may return null.
bean - the Bean whose classpath root should be
returned; may be null in which case null will be
returnedURL representing a classpath root from which
the supplied Bean's bean
class originates, or nullgetGroupArtifactVersionCoordinates(URL),
Bean.getBeanClass(),
Class.getProtectionDomain(),
ProtectionDomain.getCodeSource(),
CodeSource.getLocation()Copyright © 2019–2019, microBean™. All rights reserved.