Class ResourceExtenderConfigService

  • All Implemented Interfaces:
    IResourceExtenderConfigService, org.springframework.beans.factory.InitializingBean

    public class ResourceExtenderConfigService
    extends java.lang.Object
    implements IResourceExtenderConfigService, org.springframework.beans.factory.InitializingBean
    ResourceExtenderConfigService
    • Constructor Detail

      • ResourceExtenderConfigService

        public ResourceExtenderConfigService()
    • Method Detail

      • setExtenderConfigDAO

        public void setExtenderConfigDAO​(IExtenderConfigDAO<IExtenderConfig> extenderConfigDAO)
        Set the extender config DAO
        Parameters:
        extenderConfigDAO - the extender config DAO
      • find

        public <T> T find​(int nIdExtender)
        Find an extender
        Specified by:
        find in interface IResourceExtenderConfigService
        Type Parameters:
        T - The extender type
        Parameters:
        nIdExtender - The extender ID
        Returns:
        The extender
      • find

        public <T> T find​(java.lang.String strExtenderType,
                          java.lang.String strIdExtendableResource,
                          java.lang.String strExtendableResourceType)
        Find a resource
        Specified by:
        find in interface IResourceExtenderConfigService
        Type Parameters:
        T - The resource type
        Parameters:
        strExtenderType - The extender
        strIdExtendableResource - The resource ID
        strExtendableResourceType - The resource type
        Returns:
        The resource
      • getConfigBean

        public static <T> T getConfigBean​(IExtenderConfig config)
        Get the config bean
        Type Parameters:
        T - The class of the bean
        Parameters:
        config - the config
        Returns:
        the config bean
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception