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