net.java.truecommons.services.Store Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truecommons-services Show documentation
Show all versions of truecommons-services Show documentation
Provides service location which is designed to work well in both JEE
and OSGi environments and perfectly fits the dependency injection idiom
with support for JSR 330.
/*
* Copyright (C) 2005-2012 Schlichtherle IT Services.
* All rights reserved. Use is subject to license terms.
*/
package net.java.truecommons.services;
import javax.inject.Provider;
/**
* @author Christian Schlichtherle
*/
final class Store implements Container
{
final P product;
Store(final Provider
provider) {
this.product = provider.get();
}
@Override
public P get() {
return product;
}
}