Package org.infinispan.factories
Class TestDelayFactory
- java.lang.Object
-
- org.infinispan.factories.AbstractComponentFactory
-
- org.infinispan.factories.TestDelayFactory
-
- All Implemented Interfaces:
AutoInstantiableFactory
public class TestDelayFactory extends AbstractComponentFactory implements AutoInstantiableFactory
Internal class, only used for testing. It has to reside in the production source tree because the component metadata persister doesn't parse test classes.- Since:
- 5.2
- Author:
- Dan Berindei
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestDelayFactory.Component
static class
TestDelayFactory.Control
-
Field Summary
-
Fields inherited from class org.infinispan.factories.AbstractComponentFactory
globalComponentRegistry, globalConfiguration
-
-
Constructor Summary
Constructors Constructor Description TestDelayFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> T
construct(Class<T> componentType)
Constructs a component.void
inject(TestDelayFactory.Control control)
-
Methods inherited from class org.infinispan.factories.AbstractComponentFactory
assertTypeConstructable
-
-
-
-
Method Detail
-
inject
public void inject(TestDelayFactory.Control control) throws InterruptedException
- Throws:
InterruptedException
-
construct
public <T> T construct(Class<T> componentType)
Description copied from class:AbstractComponentFactory
Constructs a component.- Specified by:
construct
in classAbstractComponentFactory
- Parameters:
componentType
- type of component- Returns:
- a component
-
-