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 ClassesModifier and TypeInterfaceDescriptionstatic classA simple package definition where any property is represented by a value.static enumA package definer that defines packages without any meta data.static enumA canonical implementation of an undefined package. -
Method Summary
Modifier and TypeMethodDescriptionReturns the package implementation's title ornullif no such title exists.Returns the package implementation's vendor ornullif no such vendor exists.Returns the package implementation's version ornullif no such version exists.The URL representing the seal base.Returns the package specification's title ornullif no such title exists.Returns the package specification's vendor ornullif no such vendor exists.Returns the package specification's version ornullif no such version exists.booleanisCompatibleTo(Package definedPackage) Validates that this package definition is compatible to a previously defined package.booleanIndicates if a package should be defined at all.
-
Method Details
-
isDefined
boolean isDefined()Indicates if a package should be defined at all.- Returns:
trueif the package is to be defined.
-
getSpecificationTitle
Returns the package specification's title ornullif no such title exists. This method must only be called for defined package definitions.- Returns:
- The package specification's title.
-
getSpecificationVersion
Returns the package specification's version ornullif no such version exists. This method must only be called for defined package definitions.- Returns:
- The package specification's version.
-
getSpecificationVendor
Returns the package specification's vendor ornullif no such vendor exists. This method must only be called for defined package definitions.- Returns:
- The package specification's vendor.
-
getImplementationTitle
Returns the package implementation's title ornullif no such title exists. This method must only be called for defined package definitions.- Returns:
- The package implementation's title.
-
getImplementationVersion
Returns the package implementation's version ornullif no such version exists. This method must only be called for defined package definitions.- Returns:
- The package implementation's version.
-
getImplementationVendor
Returns the package implementation's vendor ornullif no such vendor exists. This method must only be called for defined package definitions.- Returns:
- The package implementation's vendor.
-
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
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:
falseif this package and the defined package's sealing information are not compatible.
-