public void service()

in src/java/org/apache/fulcrum/yaafi/framework/component/AvalonServiceComponentImpl.java [312:336]


    public void service(ServiceManager serviceManager) throws ServiceException
    {
        Object rawInstance = this.getRawInstance(false);

        if( rawInstance instanceof Serviceable )
        {
            try
            {
                this.getParentLogger().debug( "Serviceable.service() for " + this.getShorthand() );
                ((Serviceable) rawInstance).service(serviceManager);
            }
            catch (ServiceException e)
            {
                String msg = "Servicing the following service failed : " + this.getShorthand();
                this.getParentLogger().error(msg,e);
                throw e;
            }
            catch (Throwable t)
            {
                String msg = "Servicing the following service failed : " + this.getShorthand();
                this.getParentLogger().error(msg,t);
                throw new ServiceException(this.getShorthand(),msg,t);
            }
        }
    }