Exemplo n.º 1
0
 def wrapper(*args,**kwargs):
     fromScala = False
     if "fromScala" in kwargs:
         kwargs.pop("fromScala")
         fromScala = True
     retValue = func(*args, **kwargs)
     if fromScala and retValue is not None:
         from pixiedust.utils.javaBridge import JavaWrapper
         from pixiedust.utils.scalaBridge import ConverterRegistry
         import uuid
         id = str(uuid.uuid4())[:8]
         JavaWrapper("com.ibm.pixiedust.Pixiedust").addEntity( id, ConverterRegistry.toJava( retValue )[0] )
         return id
     return retValue
Exemplo n.º 2
0
 def javaClassPath(self):
     return JavaWrapper("java.lang.System").getProperty(
         "java.class.path")
Exemplo n.º 3
0
 def javaClassPath(self):
     from pixiedust.utils.javaBridge import JavaWrapper
     return JavaWrapper("java.lang.System").getProperty("java.class.path")