|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PackageTypeBehavior
The package types are either defined in the agent plugin descriptors or by the server-side package type plugins. The server-side plugins define a "behaviorClass" that implements this interface to provide additional runtime "hooks" controlling the package type behavior.
| Method Summary | |
|---|---|
Comparator<PackageVersion> |
getPackageVersionComparator(String packageTypeName)
This comparator will be used to determine the latest version of a package. |
PackageVersionFormatDescription |
getPackageVersionFormat(String packageTypeName)
Description of the package version format mandated by the package type. |
void |
validateDetails(ValidatablePackageDetailsKey key,
Subject origin)
Validate the package before it gets stored. |
| Method Detail |
|---|
void validateDetails(ValidatablePackageDetailsKey key,
Subject origin)
throws PackageDetailsValidationException
key - the package details keyorigin - who is uploading the package
PackageDetailsValidationExceptionComparator<PackageVersion> getPackageVersionComparator(String packageTypeName)
comparator.compare(older, younger)
packageTypeName - the name of the package type
PackageVersion.DEFAULT_COMPARATOR should be used.PackageVersionFormatDescription getPackageVersionFormat(String packageTypeName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||