Package io.wcm.handler.media.spi
Class MediaFormatProvider
- java.lang.Object
-
- io.wcm.handler.media.spi.MediaFormatProvider
-
- All Implemented Interfaces:
io.wcm.sling.commons.caservice.ContextAwareService
@ConsumerType public abstract class MediaFormatProvider extends Object implements io.wcm.sling.commons.caservice.ContextAwareService
MediaFormatProviderOSGi services provide media formats for the media handler. Applications can set service properties or bundle headers as defined inContextAwareServiceto apply this configuration only for resources that match the relevant resource paths.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMediaFormatProvider(Class<?> type)protectedMediaFormatProvider(Set<MediaFormat> mediaFormats)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<MediaFormat>getMediaFormats()
-
-
-
Constructor Detail
-
MediaFormatProvider
protected MediaFormatProvider(Set<MediaFormat> mediaFormats)
- Parameters:
mediaFormats- Set of media formats for parameter provider
-
MediaFormatProvider
protected MediaFormatProvider(Class<?> type)
- Parameters:
type- Type containing media format definitions as public static fields.
-
-
Method Detail
-
getMediaFormats
public Set<MediaFormat> getMediaFormats()
- Returns:
- Media formats that the application defines
-
-