Package org.pentaho.platform.osgi
Class ExceptionBasedClientTypeProvider
- java.lang.Object
-
- org.pentaho.platform.osgi.ExceptionBasedClientTypeProvider
-
- All Implemented Interfaces:
IClientTypeProvider
public class ExceptionBasedClientTypeProvider extends Object implements IClientTypeProvider
An implementation which determines the client type by looking of the call stack to the class which called KettleEnvironment.init() / KettleClientEnvironment.init() This will return Spoon/Pan/Kitchen/Carte in the case of a pdi-client execution. Others will return "default" Created by nbaker on 3/24/16.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<String>
disregardClassNames
protected List<String>
targetClassNames
-
Constructor Summary
Constructors Constructor Description ExceptionBasedClientTypeProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getClientType()
Get the PDI client type associated with this running instancevoid
setDisregardClass(Class disregardClass)
void
setTargetClass(Class targetClass)
-
-
-
Method Detail
-
setTargetClass
public void setTargetClass(Class targetClass)
-
setDisregardClass
public void setDisregardClass(Class disregardClass)
-
getClientType
public String getClientType()
Description copied from interface:IClientTypeProvider
Get the PDI client type associated with this running instance- Specified by:
getClientType
in interfaceIClientTypeProvider
- Returns:
- a PDI client-type identifier (spoon,pan,carte,kitchen) or "default"
-
-