All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.atlassian.clientpluginsdemorefapp.osgi.ComponentImports Maven / Gradle / Ivy

Go to download

Demonstrates how product developers and plugin developers can make use of the Client-side Extensions APIs.

There is a newer version: 4.0.0-jakarta-m001-6cdaaa6-m5gf9rqt
Show newest version
package com.atlassian.clientpluginsdemorefapp.osgi;

import com.atlassian.plugin.spring.scanner.annotation.imports.ComponentImport;
import com.atlassian.plugin.web.api.DynamicWebInterfaceManager;
import com.atlassian.sal.api.message.I18nResolver;
import com.atlassian.soy.renderer.SoyTemplateRenderer;

/**
 * This class is never instantiated, it serves only to cause the necessary OSGi services to be imported as Spring proxy beans.
 */
@SuppressWarnings("unused")
final class ComponentImports {

    // Needed by ExtensionPageServlet to translate the title of the `web-page` plugin module
    @ComponentImport
    private final I18nResolver i18nResolver;

    // Needed by ExtensionPageServlet to render the Soy template of the `web-page` plugin module
    @ComponentImport
    private final SoyTemplateRenderer soyTemplateRenderer;

    // Needed by WebItemsToCSEMigrationExample
    @ComponentImport
    private final DynamicWebInterfaceManager webInterfaceManager;

    private ComponentImports() {
        throw new UnsupportedOperationException("Not for instantiation");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy