Uses of Class
ca.corbett.extensions.AppExtensionInfo
Packages that use AppExtensionInfo
Package
Description
Contains code that enables your applications to define dynamic extensions that can be
packaged into jar files and loaded at runtime to alter the behaviour of your application,
or even to supplement your application with additional behaviour.
-
Uses of AppExtensionInfo in ca.corbett.extensions
Methods in ca.corbett.extensions that return AppExtensionInfoModifier and TypeMethodDescriptionAppExtensionInfo.Builder.build()ExtensionManager.extractExtInfo(File jarFile) Invoked internally to look for an extInfo.json file inside the given jar file and attempt to parse an AppExtensionInfo object out of it.static AppExtensionInfoAppExtensionInfo.fromExtensionJar(Class<? extends AppExtension> extensionClass, String resource) Attempts to use the given Class to read extInfo from the given jar resource.static AppExtensionInfoAttempts to parse an AppExtensionInfo out of the given json.static AppExtensionInfoAppExtensionInfo.fromStream(InputStream stream) Attempts to parse an AppExtensionInfo instance out of json read from the given InputStream.abstract AppExtensionInfoAppExtension.getInfo()Should return an AppExtensionInfo object that describes this extension.Methods in ca.corbett.extensions that return types with arguments of type AppExtensionInfoModifier and TypeMethodDescriptionExtensionManager.findCandidateExtensionJars(File directory, String appName, String requiredVersion) Scans the given directory looking for Jar files that contain an extInfo.json file, and if one is found, will check its parameters against the given appName and requiredVersion to make sure the extension would work for that application.Methods in ca.corbett.extensions with parameters of type AppExtensionInfoModifier and TypeMethodDescriptionbooleanExtensionManager.jarFileMeetsRequirements(File jarFile, AppExtensionInfo extInfo, String appName, String requiredVersion) Checks if the given jar file and extension info meet the given requirements (that is, that the application name and version requirements are met).