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