Class TurbineYaafiComponentService

    • Method Detail

      • initialize

        public void initialize()
                        throws Exception
        Initializes the container
        Specified by:
        initialize in interface org.apache.avalon.framework.activity.Initializable
        Throws:
        Exception - generic exception
      • dispose

        public void dispose()
        Disposes of the container and releases resources
        Specified by:
        dispose in interface org.apache.avalon.framework.activity.Disposable
      • lookup

        public Object lookup​(String roleName)
                      throws org.apache.avalon.framework.service.ServiceException
        Returns an instance of the named component
        Specified by:
        lookup in interface org.apache.avalon.framework.service.ServiceManager
        Parameters:
        roleName - Name of the role the component fills.
        Returns:
        an instance of the named component
        Throws:
        org.apache.avalon.framework.service.ServiceException
      • release

        public void release​(Object component)
        Releases the component.
        Specified by:
        release in interface org.apache.avalon.framework.service.ServiceManager
        Specified by:
        release in interface TurbineServiceProvider
        Parameters:
        component - the component to release
      • hasService

        public boolean hasService​(String roleName)
        Specified by:
        hasService in interface org.apache.avalon.framework.service.ServiceManager
        See Also:
        ServiceManager.hasService(java.lang.String)
      • createServiceContainerConfiguration

        protected org.apache.fulcrum.yaafi.framework.factory.ServiceContainerConfiguration createServiceContainerConfiguration​(org.apache.commons.configuration2.Configuration conf,
                                                                                                                               File applicationRoot)
                                                                                                                        throws IOException
        Create a ServiceContainerConfiguration based on the Turbine configuration
        Parameters:
        conf - the Turbine configuration
        applicationRoot - the application root directory
        Returns:
        the YAAFI configuration
        Throws:
        IOException - creating the YAAFI configuration failed
      • createAvalonLogger

        protected org.apache.avalon.framework.logger.Logger createAvalonLogger()
        Create the Avalon logger to be passed to YAAFI.
        Returns:
        an Avalon Logger