public class GlobalPentahoSessionHolderStrategy extends Object implements IPentahoSessionHolderStrategy
static
field-based implementation of IPentahoSessionHolderStrategy
.
This means that all instances in the JVM share the same IPentahoSession
. This is generally useful with
rich clients, such as Swing.
Constructor and Description |
---|
GlobalPentahoSessionHolderStrategy() |
Modifier and Type | Method and Description |
---|---|
org.pentaho.platform.api.engine.IPentahoSession |
getSession()
Returns the current session.
|
void |
removeSession()
Clears the current session.
|
void |
setSession(org.pentaho.platform.api.engine.IPentahoSession insession)
Sets the current session.
|
public org.pentaho.platform.api.engine.IPentahoSession getSession()
IPentahoSessionHolderStrategy
getSession
in interface IPentahoSessionHolderStrategy
public void removeSession()
IPentahoSessionHolderStrategy
removeSession
in interface IPentahoSessionHolderStrategy
public void setSession(org.pentaho.platform.api.engine.IPentahoSession insession)
IPentahoSessionHolderStrategy
setSession
in interface IPentahoSessionHolderStrategy
insession
- session to setCopyright © 2019 Hitachi Vantara. All rights reserved.