Class Init

All Implemented Interfaces:
Init, LogEnabled, Serviceable

public class Init extends AbstractLogEnabled implements Init, Serviceable
Init class for trash.
  • Field Details

  • Constructor Details

    • Init

      public Init()
  • Method Details

    • service

      public void service(ServiceManager manager) throws ServiceException
      Specified by:
      service in interface Serviceable
      Throws:
      ServiceException
    • init

      public void init() throws Exception
      Description copied from interface: Init
      Method to be implemented by user Init class. Here you should manage the business part of your application init. As an Avalon component, class extending this interface have access to all Cocoon-managed components, all plugins, ...
      Specified by:
      init in interface Init
      Throws:
      Exception - if an error occurs
    • createWorkspace

      protected void createWorkspace() throws javax.jcr.RepositoryException
      Create the workspace "trash" if not exists.
      Throws:
      javax.jcr.RepositoryException - if a repository error occurred.