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

META-INF.spring.context.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:osgi="http://www.springframework.org/schema/osgi"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"
       default-autowire="autodetect">

    <context:component-scan base-package="com.servicerocket.confluence.randombits"/>

    <osgi:reference id="anyTypeDao" interface="com.atlassian.confluence.core.persistence.AnyTypeDao" />
    <osgi:reference id="attachmentManager" interface="com.atlassian.confluence.pages.AttachmentManager" />
    <osgi:reference id="bootstrapManager" interface="com.atlassian.confluence.setup.BootstrapManager"/>
    <osgi:reference id="cacheManager" interface="com.atlassian.cache.CacheManager" />
    <osgi:reference id="contentEntityManager" interface="com.atlassian.confluence.core.ContentEntityManager"/>
    <osgi:reference id="contentEntityObjectDao" interface="com.atlassian.confluence.core.persistence.ContentEntityObjectDao"/>
    <osgi:reference id="contentPropertyManager" interface="com.atlassian.confluence.core.ContentPropertyManager" />
    <osgi:reference id="contextPathHolder" interface="com.atlassian.confluence.core.ContextPathHolder" />
    <osgi:reference id="i18nResolver" interface="com.atlassian.sal.api.message.I18nResolver" />
    <osgi:reference id="labelManager" interface="com.atlassian.confluence.labels.LabelManager"/>
    <osgi:reference id="linkManager" interface="com.atlassian.confluence.links.LinkManager" />
    <osgi:reference id="localeResolver" interface="com.atlassian.sal.api.message.LocaleResolver" />
    <osgi:reference id="moduleFactory" interface="com.atlassian.plugin.module.ModuleFactory"/>
    <osgi:reference id="pageManager" interface="com.atlassian.confluence.pages.PageManager" />
    <osgi:reference id="pageTemplateManager" interface="com.atlassian.confluence.pages.templates.PageTemplateManager" />
    <osgi:reference id="permissionManager" interface="com.atlassian.confluence.security.PermissionManager" />
    <osgi:reference id="personalInformationManager" interface="com.atlassian.confluence.user.PersonalInformationManager"/>
    <osgi:reference id="pluginAccessor" interface="com.atlassian.plugin.PluginAccessor"/>
    <osgi:reference id="pluginEventManager" interface="com.atlassian.plugin.event.PluginEventManager" />
    <osgi:reference id="settingsManager" interface="com.atlassian.confluence.setup.settings.SettingsManager"/>
    <osgi:reference id="spaceManager" interface="com.atlassian.confluence.spaces.SpaceManager" />
    <osgi:reference id="themeManager" interface="com.atlassian.confluence.themes.ThemeManager" />
    <osgi:reference id="timeZoneManager" interface="com.atlassian.sal.api.timezone.TimeZoneManager" />
    <osgi:reference id="userAccessor" interface="com.atlassian.confluence.user.UserAccessor" />
    <osgi:reference id="userManager" interface="com.atlassian.sal.api.user.UserManager" />
    <osgi:reference id="xhtmlContent" interface="com.atlassian.confluence.xhtml.api.XhtmlContent" />

    <bean id="conveyorManager" name="ConveyorManager" class="com.servicerocket.confluence.randombits.conveyor.impl.DefaultConveyorManager">
        <constructor-arg index="0" ref="conveyorActionProxyFactory"/>
    </bean>

    <bean id="overrideManager" name="OverrideManager" class="com.servicerocket.confluence.randombits.conveyor.impl.DefaultOverrideManager">
        <constructor-arg index="0" ref="pluginAccessor"/>
    </bean>

    <!-- Environment Provider -->
    <bean id="userProfileProvider" class="com.servicerocket.confluence.randombits.support.core.env.atlassian.UserProfileProvider">
        <constructor-arg index="0" ref="userManager" />
    </bean>
    <bean id="localeProvider" class="com.servicerocket.confluence.randombits.support.core.env.general.LocaleProvider">
        <constructor-arg index="0" ref="localeResolver" />
    </bean>
    <bean id="timeZoneProvider" class="com.servicerocket.confluence.randombits.support.core.env.general.TimeZoneProvider">
        <constructor-arg index="0" ref="timeZoneManager" />
    </bean>
    <bean id="authenticatedUserProvider" class="com.servicerocket.confluence.randombits.support.confluence.env.AuthenticatedUserProvider" />
    <bean id="macroInfoConversionContextProvider" class="com.servicerocket.confluence.randombits.support.confluence.env.MacroInfoConversionContextProvider" />
    <bean id="pageInfoConfluenceContentProvider" class="com.servicerocket.confluence.randombits.support.confluence.env.PageInfoConfluenceContentProvider" />
    <bean id="springServletProvider" class="com.servicerocket.confluence.randombits.support.core.env.servlet.SpringServletProvider" />
    <bean id="xWorkServletProvider" class="com.servicerocket.confluence.randombits.support.confluence.env.XWorkServletProvider" />

    <!-- Converters -->
    <bean id="arrayToCollectionConverter" class="com.servicerocket.confluence.randombits.support.core.convert.collection.ArrayToCollectionConverter" />
    <bean id="arrayToIteratorConverter" class="com.servicerocket.confluence.randombits.support.core.convert.collection.ArrayToIteratorConverter" />
    <bean id="calendarToDateConverter" class="com.servicerocket.confluence.randombits.support.core.convert.date.CalendarToDateConverter" />
    <bean id="dateToCalendarConverter" class="com.servicerocket.confluence.randombits.support.core.convert.date.DateToCalendarConverter" />
    <bean id="dateToDateTimeConverter" class="com.servicerocket.confluence.randombits.support.confluence.convert.date.DateToDateTimeConverter" />
    <bean id="enumerationToCollectionConverter" class="com.servicerocket.confluence.randombits.support.core.convert.collection.EnumerationToCollectionConverter" />
    <bean id="enumerationToIteratorConverter" class="com.servicerocket.confluence.randombits.support.core.convert.collection.EnumerationToIteratorConverter" />
    <bean id="iterableToIteratorConverter" class="com.servicerocket.confluence.randombits.support.core.convert.collection.IterableToIteratorConverter" />
    <bean id="iteratorToCollectionConverter" class="com.servicerocket.confluence.randombits.support.core.convert.collection.IteratorToCollectionConverter" />
    <bean id="mapToIteratorConverter" class="com.servicerocket.confluence.randombits.support.core.convert.collection.MapToIteratorConverter" />
    <bean id="readableDateTimeToDateConverter" class="com.servicerocket.confluence.randombits.support.confluence.convert.date.ReadableDateTimeToDateConverter" />
    <bean id="searchResultToAttachmentConverter" class="com.servicerocket.confluence.randombits.support.confluence.convert.search.SearchResultToAttachmentConverter" />
    <bean id="searchResultToBlogPostConverter" class="com.servicerocket.confluence.randombits.support.confluence.convert.search.SearchResultToBlogPostConverter" />
    <bean id="searchResultToCommentConverter" class="com.servicerocket.confluence.randombits.support.confluence.convert.search.SearchResultToCommentConverter" />
    <bean id="searchResultToPageConverter" class="com.servicerocket.confluence.randombits.support.confluence.convert.search.SearchResultToPageConverter" />
    <bean id="searchResultToSpaceConverter" class="com.servicerocket.confluence.randombits.support.confluence.convert.search.SearchResultToSpaceConverter" />
    <bean id="sqlDateToDateConverter" class="com.servicerocket.confluence.randombits.support.core.convert.date.SqlDateToDateConverter" />
    <bean id="stringToUserConverter" class="com.servicerocket.confluence.randombits.support.confluence.convert.user.StringToUserConverter">
        <constructor-arg index="0" ref="userAccessor" />
    </bean>
    <bean id="stringToUserProfilerConverter" class="com.servicerocket.confluence.randombits.support.core.convert.atlassian.StringToUserProfileConverter">
        <constructor-arg index="0" ref="userManager" />
    </bean>
    <bean id="userProfileToUserConverter" class="com.servicerocket.confluence.randombits.support.confluence.convert.user.UserProfileToUserConverter">
        <constructor-arg index="0" ref="userAccessor" />
    </bean>
    <bean id="userToUserProfileConverter" class="com.servicerocket.confluence.randombits.support.confluence.convert.user.UserToUserProfileConverter">
        <constructor-arg index="0" ref="userManager" />
    </bean>

    <bean id="conveyorActionProxyFactory" name="ConveyorActionProxyFactory"
          class="com.servicerocket.confluence.randombits.conveyor.xwork.ConveyorActionProxyFactory">
    </bean>


    <!-- Bean/OSGI module factory -->
    <osgi:service id="conveyorModuleDescriptorFactory"
                  interface="com.atlassian.plugin.osgi.external.ListableModuleDescriptorFactory">
        <bean class="com.servicerocket.confluence.randombits.conveyor.impl.ConveyorModuleDescriptorFactory">
            <constructor-arg index="0">
                <bean class="com.atlassian.plugin.osgi.bridge.external.SpringHostContainer"/>
            </constructor-arg>
            <constructor-arg index="1">
                <ref bean="conveyorManager"/>
            </constructor-arg>
            <constructor-arg index="2">
                <ref bean="overrideManager"/>
            </constructor-arg>
            <constructor-arg index="3">
                <ref bean="moduleFactory"/>
            </constructor-arg>
        </bean>
    </osgi:service>

    <osgi:service id="environmentProviderModuleDescriptorFactory"
                  interface="com.atlassian.plugin.osgi.external.ListableModuleDescriptorFactory">
        <bean class="com.servicerocket.confluence.plugin.utility.library.EnvironmentProviderModuleDescriptorFactory">
            <constructor-arg index="0">
                <bean class="com.atlassian.plugin.osgi.bridge.external.SpringHostContainer"/>
            </constructor-arg>
            <constructor-arg index="1">
                <ref bean="moduleFactory"/>
            </constructor-arg>
        </bean>
    </osgi:service>

    <osgi:service id="converterModuleDescriptorFactory"
                  interface="com.atlassian.plugin.osgi.external.ListableModuleDescriptorFactory">
        <bean class="com.servicerocket.confluence.plugin.utility.library.ConverterModuleDescriptorFactory">
            <constructor-arg index="0">
                <bean class="com.atlassian.plugin.osgi.bridge.external.SpringHostContainer"/>
            </constructor-arg>
            <constructor-arg index="1">
                <ref bean="moduleFactory"/>
            </constructor-arg>
        </bean>
    </osgi:service>

    <osgi:service id="injectionAdaptorModuleDescriptorFactory"
                  interface="com.atlassian.plugin.osgi.external.ListableModuleDescriptorFactory">
        <bean class="com.servicerocket.confluence.plugin.utility.library.InjectionAdaptorModuleDescriptorFactory">
            <constructor-arg index="0">
                <bean class="com.atlassian.plugin.osgi.bridge.external.SpringHostContainer"/>
            </constructor-arg>
            <constructor-arg index="1">
                <ref bean="moduleFactory"/>
            </constructor-arg>
        </bean>
    </osgi:service>
</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy