public interface AMImageScalerTracker
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
.
Modifier and Type | Method and Description |
---|---|
AMImageScaler |
getAMImageScaler(java.lang.String mimeType)
Returns the enabled image scaler for the specific MIME type.
|
AMImageScaler getAMImageScaler(java.lang.String mimeType)
mimeType
- the MIME type