public class SingletonProvider<T> extends ProviderDecorator<T>
Constructor and Description |
---|
SingletonProvider(ObjectProvider<? extends T> inner)
Create a new SingletonProvider instance.
|
Modifier and Type | Method and Description |
---|---|
T |
getObject()
Returns an object.
|
getInner, setInner
public SingletonProvider(ObjectProvider<? extends T> inner)
inner
- public T getObject()
ObjectProviderException
if any problems arise while
constructing/finding the object.getObject
in interface ObjectProvider<T>
getObject
in class ProviderDecorator<T>
Copyright © 2005–2014 The Apache Software Foundation. All rights reserved.