Package org.laxture.sbp.mock
Class MockSpringExtensionFactory
java.lang.Object
org.laxture.sbp.mock.MockSpringExtensionFactory
- All Implemented Interfaces:
org.pf4j.ExtensionFactory
Pf4j ExtensionFactory to retrieve extension bean from spring context.
This is used for plugin unit test mocking.
ApplicationContext-
Constructor Summary
ConstructorsConstructorDescriptionMockSpringExtensionFactory(org.springframework.context.ApplicationContext applicationContext) -
Method Summary
Modifier and TypeMethodDescription<T> TvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
MockSpringExtensionFactory
public MockSpringExtensionFactory(org.springframework.context.ApplicationContext applicationContext)
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) -
create
- Specified by:
createin interfaceorg.pf4j.ExtensionFactory
-