Example usage for org.springframework.context Lifecycle toString

List of usage examples for org.springframework.context Lifecycle toString

Introduction

In this page you can find the example usage for org.springframework.context Lifecycle toString.

Prototype

public String toString() 

Source Link

Document

Returns a string representation of the object.

Usage

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);
}