public long generation() {
        return generation;
    }
@author Tony Vaagenes
@author gjoranv
@author ollivir

Not thread safe.
container-core/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentGraph.java