@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()
Factory
provide
in interface Factory<SimpleInterface>
public void dispose(SimpleInterface instance)
Factory
dispose
in interface Factory<SimpleInterface>
instance
- The instance to dispose ofCopyright © 2009–2023 Oracle Corporation. All rights reserved.