Annotation Type AlfrescoPlatform
-
@Target(TYPE) @Retention(RUNTIME) public @interface AlfrescoPlatform
Indicates that a bean should be instantiated only for specific Alfresco platforms.This annotation is mainly intended for extensions that must support backwards-compatibility with earlier Alfresco versions. Effectively it allows you to avoid
ClassNotFoundException
s for types that do not exist in earlier versions of the Alfresco API.This example illustrates a class that uses an Alfresco 4-specific service:
@ManagedBean @AlfrescoPlatform(minVersion = "4.0") public Alfresco4SpecificClass { @Inject private BulkFilesystemImporter importer; }
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.String
maxVersion
The maximum version number in "<major>.<minor>.<micro>" format.java.lang.String
minVersion
The minimum version number in "<major>.<minor>.<micro>" format.
-