public void contextualize()

in src/java/org/apache/fulcrum/yaafi/framework/component/AvalonServiceComponentImpl.java [281:305]


    public void contextualize(Context context) throws ContextException
    {
        Object rawInstance = this.getRawInstance(false);

        if( rawInstance instanceof Contextualizable )
        {
            try
            {
                this.getParentLogger().debug( "Contextualizable.contextualize() for " + this.getShorthand() );
                ((Contextualizable) rawInstance).contextualize(context);
            }
            catch (ContextException e)
            {
                String msg = "Contextualizing the following service failed : " + this.getShorthand();
                this.getParentLogger().error(msg,e);
                throw e;
            }
            catch (Throwable t)
            {
                String msg = "Contextualizing the following service failed : " + this.getShorthand();
                this.getParentLogger().error(msg,t);
                throw new ContextException(msg,t);
            }
        }
    }