Class MockSpringExtensionFactory

  • All Implemented Interfaces:
    org.pf4j.ExtensionFactory

    public class MockSpringExtensionFactory
    extends java.lang.Object
    implements org.pf4j.ExtensionFactory
    Pf4j ExtensionFactory to retrieve extension bean from spring context. This is used for plugin unit test mocking. ApplicationContext
    • Constructor Summary

      Constructors 
      Constructor Description
      MockSpringExtensionFactory​(org.springframework.context.ApplicationContext applicationContext)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T create​(java.lang.Class<T> extensionClass)  
      void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MockSpringExtensionFactory

        public MockSpringExtensionFactory​(org.springframework.context.ApplicationContext applicationContext)
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
      • create

        public <T> T create​(java.lang.Class<T> extensionClass)
        Specified by:
        create in interface org.pf4j.ExtensionFactory