List of usage examples for org.springframework.context Lifecycle toString
public String toString()
From source file:org.springframework.extensions.webscripts.DeclarativeRegistry.java
/** * Register a lifecycle/* w ww. j av a 2s.com*/ * * @param script WebScript */ private void registerLifecycle(WebScript script) { Description desc = script.getDescription(); Lifecycle lifecycle = desc.getLifecycle(); PathImpl path = lifecycleByPath.get("/"); PathImpl subpath = lifecycleByPath.get(PathImpl.concatPath(path.getPath(), lifecycle.toString())); if (subpath == null) { subpath = path.createChildPath(lifecycle.toString()); lifecycleByPath.put(subpath.getPath(), subpath); } subpath.addScript(script); }