Package net.bytebuddy.dynamic.loading
Interface PackageDefinitionStrategy.Definition
-
- All Known Implementing Classes:
PackageDefinitionStrategy.Definition.Simple
,PackageDefinitionStrategy.Definition.Trivial
,PackageDefinitionStrategy.Definition.Undefined
- Enclosing interface:
- PackageDefinitionStrategy
public static interface PackageDefinitionStrategy.Definition
A definition of a package.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
PackageDefinitionStrategy.Definition.Simple
A simple package definition where any property is represented by a value.static class
PackageDefinitionStrategy.Definition.Trivial
A package definer that defines packages without any meta data.static class
PackageDefinitionStrategy.Definition.Undefined
A canonical implementation of an undefined package.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getImplementationTitle()
Returns the package implementation's title ornull
if no such title exists.java.lang.String
getImplementationVendor()
Returns the package implementation's vendor ornull
if no such vendor exists.java.lang.String
getImplementationVersion()
Returns the package implementation's version ornull
if no such version exists.java.net.URL
getSealBase()
The URL representing the seal base.java.lang.String
getSpecificationTitle()
Returns the package specification's title ornull
if no such title exists.java.lang.String
getSpecificationVendor()
Returns the package specification's vendor ornull
if no such vendor exists.java.lang.String
getSpecificationVersion()
Returns the package specification's version ornull
if no such version exists.boolean
isCompatibleTo(java.lang.Package definedPackage)
Validates that this package definition is compatible to a previously defined package.boolean
isDefined()
Indicates if a package should be defined at all.
-
-
-
Method Detail
-
isDefined
boolean isDefined()
Indicates if a package should be defined at all.- Returns:
true
if the package is to be defined.
-
getSpecificationTitle
java.lang.String getSpecificationTitle()
Returns the package specification's title ornull
if no such title exists. This method must only be called for defined package definitions.- Returns:
- The package specification's title.
-
getSpecificationVersion
java.lang.String getSpecificationVersion()
Returns the package specification's version ornull
if no such version exists. This method must only be called for defined package definitions.- Returns:
- The package specification's version.
-
getSpecificationVendor
java.lang.String getSpecificationVendor()
Returns the package specification's vendor ornull
if no such vendor exists. This method must only be called for defined package definitions.- Returns:
- The package specification's vendor.
-
getImplementationTitle
java.lang.String getImplementationTitle()
Returns the package implementation's title ornull
if no such title exists. This method must only be called for defined package definitions.- Returns:
- The package implementation's title.
-
getImplementationVersion
java.lang.String getImplementationVersion()
Returns the package implementation's version ornull
if no such version exists. This method must only be called for defined package definitions.- Returns:
- The package implementation's version.
-
getImplementationVendor
java.lang.String getImplementationVendor()
Returns the package implementation's vendor ornull
if no such vendor exists. This method must only be called for defined package definitions.- Returns:
- The package implementation's vendor.
-
getSealBase
java.net.URL getSealBase()
The URL representing the seal base. This method must only be called for defined package definitions.- Returns:
- The seal base of the package.
-
isCompatibleTo
boolean isCompatibleTo(java.lang.Package definedPackage)
Validates that this package definition is compatible to a previously defined package. This method must only be called for defined package definitions.- Parameters:
definedPackage
- The previously defined package.- Returns:
false
if this package and the defined package's sealing information are not compatible.
-
-