@Service @Rank(value=13) public class FactoryWithRanks extends Object implements Factory<SimpleInterface>
| Constructor and Description |
|---|
FactoryWithRanks() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose(SimpleInterface instance)
This method will dispose of objects created with this scope.
|
SimpleInterface |
provide()
This method will create instances of the type of this factory.
|
@Rank(value=-1) public SimpleInterface provide()
Factoryprovide in interface Factory<SimpleInterface>public void dispose(SimpleInterface instance)
Factorydispose in interface Factory<SimpleInterface>instance - The instance to dispose ofCopyright © 2009–2017 Oracle Corporation. All rights reserved.