Class PythonService

java.lang.Object
io.jans.service.PythonService
All Implemented Interfaces:
Serializable

@ApplicationScoped public class PythonService extends Object implements Serializable
Provides operations with python module
Author:
Yuriy Movchan Date: 08.21.2012
See Also:
  • Constructor Details

    • PythonService

      public PythonService()
  • Method Details

    • init

      @PostConstruct public void init()
    • configure

      public void configure()
    • initPythonInterpreter

      public boolean initPythonInterpreter(String pythonModulesDir)
    • destroy

      @PreDestroy public void destroy()
      When application undeploy we need clean up pythonInterpreter
    • loadPythonScript

      public <T> T loadPythonScript(String scriptName, String scriptPythonType, Class<T> scriptJavaType, org.python.core.PyObject[] constructorArgs) throws PythonException
      Throws:
      PythonException
    • loadPythonScript

      public <T> T loadPythonScript(InputStream scriptFile, String scriptName, String scriptPythonType, Class<T> scriptJavaType, org.python.core.PyObject[] constructorArgs) throws PythonException
      Throws:
      PythonException