Interface AMImageScalerRegistry
public interface AMImageScalerRegistry
Tracks the image scalers and returns the one used for a specific MIME type.
Every image scaler registered in OSGi with the mime.type
property is tracked. Multiple image scalers can be registered for the same
MIME type, but the tracker returns only one.
The image scalers are grouped by mime.type and ordered by the
service.ranking property. The image scaler returns the first
image scaler of the group whose AMImageScaler.isEnabled() method
returns true.
If no enabled image scalers are registered for the specific MIME type, it
searches for the enabled image scaler with the highest
service.ranking that's registered with the * MIME
type. If no enabled image scalers are registered for the * MIME
type, it returns null.
-
Method Summary
Modifier and TypeMethodDescriptiongetAMImageScaler(String mimeType) Returns the enabled image scaler for the specific MIME type.
-
Method Details
-
getAMImageScaler
Returns the enabled image scaler for the specific MIME type.- Parameters:
mimeType- the MIME type- Returns:
- the image scaler
-