Studio Developer Manual / Version 2207
Table Of Contents
Any preview provider must be created as a Spring bean. The most convenient way is, to create an additional Spring
Boot configuration class and provide a factory method for all additional providers. The preview URL service
'sees' all beans of the type PreviewProvider
and registers them. To use them, you have to use the
providers bean name (in this example 'myCustomPreviewProvider') in the corresponding configuration document.
@Configuration(proxyBeanMethods = false) public class CustomPreviewUrlServiceConfig { @Bean public PreviewProvider<Content> myCustomPreviewProvider( SitesService sitesService ) { return new CustomPreviewProvider(sitesService); } }