Class Init

All Implemented Interfaces:
Init, LogEnabled, Serviceable

public class Init extends Init
Web plugin init class
  • Constructor Details

    • Init

      public Init()
  • Method Details

    • service

      public void service(ServiceManager manager) throws ServiceException
      Specified by:
      service in interface Serviceable
      Overrides:
      service in class Init
      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
      Overrides:
      init in class Init
      Throws:
      Exception - if an error occurs
    • createLiveWorkspace

      protected void createLiveWorkspace() throws javax.jcr.RepositoryException
      Create the live workspace.
      Throws:
      javax.jcr.RepositoryException - if a repository error occurred.
    • createSitesRootNode

      protected void createSitesRootNode(ModifiableTraversableAmetysObject rootNode) throws javax.jcr.RepositoryException
      Create the JCR root node for sites storage if needed
      Parameters:
      rootNode - The JCR root node
      Throws:
      javax.jcr.RepositoryException - Thrown if the node cannot be created
    • createSharedResourcesNode

      protected void createSharedResourcesNode(ModifiableTraversableAmetysObject rootNode) throws javax.jcr.RepositoryException
      Create the JCR root node for shared resources storage if needed
      Parameters:
      rootNode - The JCR root node
      Throws:
      javax.jcr.RepositoryException - Thrown if the node cannot be created