{
pool = TurbinePool.getService();
if (pool == null)
{
throw new InitializationException("Pull Service requires"
+ " configured Pool Service!");
}
initPullService();
// Make sure to setInit(true) because Tools may
// make calls back to the TurbinePull static methods
// which causes an init loop.
setInit(true);
// Do _NOT_ move this before the setInit(true)
velocity = TurbineVelocity.getService();
if (velocity != null)
{
initPullTools();
}
else
{
log.info("Velocity Service not configured, skipping pull tools!");
}
}
catch (Exception e)
{
throw new InitializationException(
"TurbinePullService failed to initialize", e);
}
}