se.jbee.inject.Emergence Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of silk-di Show documentation
Show all versions of silk-di Show documentation
Silk Java dependency injection framework
/*
* Copyright (c) 2012, Jan Bernitt
*
* Licensed under the Apache License, Version 2.0, http://www.apache.org/licenses/LICENSE-2.0
*/
package se.jbee.inject;
/**
* A description of an {@link Instance} together with its duration of life ({@link Expiry}).
*
* @author Jan Bernitt ([email protected])
*
* @param
* The type of the instance
*/
public final class Emergence {
public static Emergence emergence( Instance instance, Expiry expiry ) {
return new Emergence( instance, expiry );
}
private final Instance instance;
private final Expiry expiry;
private Emergence( Instance instance, Expiry expiry ) {
super();
this.instance = instance;
this.expiry = expiry;
}
public Instance getInstance() {
return instance;
}
public Expiry getExpiry() {
return expiry;
}
@Override
public String toString() {
return expiry + " " + instance;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy