@Override
    public void init (ExtendedProperties config)
    {
        // the web framework was kind enough to slip this into the runtime when it started up
        _sctx = (ServletContext)rsvc.getApplicationAttribute("ServletContext");
        if (_sctx == null) {
            rsvc.getLog().warn("ServletContextResourceLoader: servlet context was not supplied " +
                               "as application context. A user of the servlet context resource " +
                               "loader must call Velocity.setApplicationAttribute(" +
                               "\"ServletContext\", getServletContext()).");
        }
    }
@ Override public void init ( ExtendedProperties config ) { _sctx = ( ServletContext ) rsvc . getApplicationAttribute ( "ServletContext" ) ; if ( _sctx == null ) { rsvc . getLog ( ) . warn ( "ServletContextResourceLoader: servlet context was not supplied " + "as application context. A user of the servlet context resource " + "loader must call Velocity.setApplicationAttribute(" + "\"ServletContext\", getServletContext())." ) ; } }
Called by Velocity to initialize this resource loader.