- All Implemented Interfaces:
Factory
Creates a new instance of the service object for each call to create().
-
Constructor Summary
Constructors
-
Method Summary
Creates the object that will be used for the invoke
void
Post invoke, this is called to allow the factory to release
the object, store it, etc...
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
PerRequestFactory
public PerRequestFactory(Class<?> svcClass)
-
Method Details
-
create
Description copied from interface: Factory
Creates the object that will be used for the invoke
- Specified by:
create
in interface Factory
- Throws:
Throwable
-
release
Description copied from interface: Factory
Post invoke, this is called to allow the factory to release
the object, store it, etc...
- Specified by:
release
in interface Factory
o
- object created from the create method