public class PerTestServiceLifecycle extends Object implements org.apache.tapestry5.ioc.ServiceLifecycle
ObjectCreator as a key in the PerTestDataStore.
Method invocations are delegated to the per-test service instance.
This scheme ensures that, although the service builder method will be invoked many times
over the life of the application, the service decoration process occurs only once.
The final calling chain is: Service Proxy --> Interceptor(s) (from Decorators) --> Advise Proxy (from Advisiors) --> PerTest Proxy --> (per test) instance.| Constructor and Description |
|---|
PerTestServiceLifecycle(PerTestDataStore perTestManager,
org.apache.tapestry5.ioc.services.PlasticProxyFactory proxyFactory) |
| Modifier and Type | Method and Description |
|---|---|
Object |
createService(org.apache.tapestry5.ioc.ServiceResources resources,
org.apache.tapestry5.ioc.ObjectCreator creator) |
boolean |
isSingleton()
Returns false; this lifecycle represents a service that will be created many times (by each thread).
|
public PerTestServiceLifecycle(@Builtin
PerTestDataStore perTestManager,
@Builtin
org.apache.tapestry5.ioc.services.PlasticProxyFactory proxyFactory)
public boolean isSingleton()
isSingleton in interface org.apache.tapestry5.ioc.ServiceLifecyclepublic Object createService(org.apache.tapestry5.ioc.ServiceResources resources, org.apache.tapestry5.ioc.ObjectCreator creator)
createService in interface org.apache.tapestry5.ioc.ServiceLifecycleCopyright © 2009-2012. All Rights Reserved.