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 java.lang.Object implements io.wcm.sling.commons.caservice.ContextAwareService
MediaFormatProvider
OSGi services provide media formats for the media handler. Applications can set service properties or bundle headers as defined inContextAwareService
to apply this configuration only for resources that match the relevant resource paths.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MediaFormatProvider(java.lang.Class<?> type)
protected
MediaFormatProvider(java.util.Set<MediaFormat> mediaFormats)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
finalize()
Deprecated.Prevent finalize attack (PMD CT_CONSTRUCTOR_THROW / SEI CERT Rule OBJ-11)@NotNull java.util.Set<MediaFormat>
getMediaFormats()
-
-
-
Constructor Detail
-
MediaFormatProvider
protected MediaFormatProvider(java.util.Set<MediaFormat> mediaFormats)
- Parameters:
mediaFormats
- Set of media formats for parameter provider
-
MediaFormatProvider
protected MediaFormatProvider(java.lang.Class<?> type)
- Parameters:
type
- Type containing media format definitions as public static fields.
-
-
Method Detail
-
getMediaFormats
@NotNull public @NotNull java.util.Set<MediaFormat> getMediaFormats()
- Returns:
- Media formats that the application defines
-
finalize
@Deprecated(since="2.0.0") protected final void finalize()
Deprecated.Prevent finalize attack (PMD CT_CONSTRUCTOR_THROW / SEI CERT Rule OBJ-11)- Overrides:
finalize
in classjava.lang.Object
-
-