Class ModuleComponentHelper

java.lang.Object
org.alfresco.repo.module.ModuleComponentHelper

public class ModuleComponentHelper extends Object
Helper class to split up some of the code for managing module components. This class handles the execution of the module components.
Author:
Derek Hulley
  • Field Details

  • Constructor Details

    • ModuleComponentHelper

      public ModuleComponentHelper()
      Default constructor
  • Method Details

    • setServiceRegistry

      public void setServiceRegistry(ServiceRegistry serviceRegistry)
      Parameters:
      serviceRegistry - provides access to the service APIs
    • setDescriptorService

      public void setDescriptorService(DescriptorService descriptorService)
      Parameters:
      descriptorService - gives access to the current repository version
    • setRegistryService

      public void setRegistryService(RegistryService registryService)
      Parameters:
      registryService - the service used to persist component execution details.
    • setModuleService

      public void setModuleService(ModuleService moduleService)
      Parameters:
      moduleService - the service from which to get the available modules.
    • setTenantAdminService

      public void setTenantAdminService(TenantAdminService tenantAdminService)
    • setApplyToTenants

      public void setApplyToTenants(boolean applyToTenants)
      Throws:
      UnsupportedOperationException - This feature was never active and cannot be used (ALF-19207)
    • registerComponent

      public void registerComponent(ModuleComponent component)
      Add a managed module component to the registry of components. These will be controlled by the startModules() method.
      Parameters:
      component - a module component to be executed
    • startModules

      public void startModules()
    • shutdownModules

      public void shutdownModules()
    • getModuleVersionNumber

      protected ModuleVersionNumber getModuleVersionNumber(Serializable moduleVersion)