Tabnine Logo
PluginInterface.getPluginType
Code IndexAdd Tabnine to your IDE (free)

How to use
getPluginType
method
in
org.pentaho.di.core.plugins.PluginInterface

Best Java code snippets using org.pentaho.di.core.plugins.PluginInterface.getPluginType (Showing top 12 results out of 315)

origin: pentaho/pentaho-kettle

public void addClassLoader( URLClassLoader ucl, PluginInterface plugin ) {
 lock.writeLock().lock();
 try {
  Map<PluginInterface, URLClassLoader> classLoaders =
   classLoaderMap.computeIfAbsent( plugin.getPluginType(), k -> new HashMap<>() );
  classLoaders.put( plugin, ucl );
 } finally {
  lock.writeLock().unlock();
 }
}
origin: pentaho/pentaho-kettle

public static String getHelpDialogTitle( PluginInterface plugin ) {
 if ( plugin == null ) {
  return "";
 }
 String msgKey = "";
 // TODO currently support only Step and JobEntry - extend if required.
 if ( plugin.getPluginType().equals( StepPluginType.class ) ) {
  msgKey = "System.ShowHelpDialog.StepPluginType.Title";
 } else {
  msgKey = "System.ShowHelpDialog.JobEntryPluginType.Title";
 }
 return BaseMessages.getString( PKG, msgKey, plugin.getName() );
}
origin: pentaho/pentaho-kettle

Map<PluginInterface, URLClassLoader> classLoaders = classLoaderMap.get( plugin.getPluginType() );
if ( classLoaders != null ) {
 classLoaders.remove( plugin );
origin: pentaho/pentaho-kettle

try {
 Map<PluginInterface, URLClassLoader> classLoaders =
  classLoaderMap.computeIfAbsent( plugin.getPluginType(), k -> new HashMap<>() );
 ucl = classLoaders.get( plugin );
origin: pentaho/pentaho-kettle

 classLoaderMap.computeIfAbsent( plugin.getPluginType(), k -> new HashMap<>() );
ucl = classLoaders.get( plugin );
origin: pentaho/pentaho-kettle

 @Override
 Object doCall() throws Exception {
  List<PluginInterface> registered = new ArrayList<PluginInterface>( cycles );
  try {
   for ( int i = 0; i < cycles; i++ ) {
    String id = nameSeed + '_' + i;
    PluginInterface mock = mock( PluginInterface.class );
    when( mock.getName() ).thenReturn( id );
    when( mock.getIds() ).thenReturn( new String[] { id } );
    when( mock.getPluginType() ).thenAnswer( new Answer<Object>() {
     @Override public Object answer( InvocationOnMock invocation ) throws Throwable {
      return type;
     }
    } );
    registered.add( mock );
    PluginRegistry.getInstance().registerPlugin( type, mock );
   }
  } finally {
   // push up registered instances for future clean-up
   addUsedPlugins( type, registered );
  }
  return null;
 }
}
origin: pentaho/pentaho-kettle

@BeforeClass
public static void setUpBeforeClass() throws Exception {
 KettleClientEnvironment.init();
 dbMap.put( DatabaseInterface.class, DBMockIface.class.getName() );
 dbMap.put( InfobrightDatabaseMeta.class, InfobrightDatabaseMeta.class.getName() );
 PluginRegistry preg = PluginRegistry.getInstance();
 mockDbPlugin = mock( PluginInterface.class );
 when( mockDbPlugin.matches( anyString() ) ).thenReturn( true );
 when( mockDbPlugin.isNativePlugin() ).thenReturn( true );
 when( mockDbPlugin.getMainType() ).thenAnswer( (Answer<Class<?>>) invocation -> DatabaseInterface.class );
 when( mockDbPlugin.getPluginType() ).thenAnswer(
  (Answer<Class<? extends PluginTypeInterface>>) invocation -> DatabasePluginType.class );
 when( mockDbPlugin.getIds() ).thenReturn( new String[] { "Oracle", "mock-db-id" } );
 when( mockDbPlugin.getName() ).thenReturn( "mock-db-name" );
 when( mockDbPlugin.getClassMap() ).thenReturn( dbMap );
 preg.registerPlugin( DatabasePluginType.class, mockDbPlugin );
}
origin: pentaho/pentaho-kettle

T aClass = loadClass( plugin.getPluginType(), createSupplemantalKey( plugin.getPluginType().getName(), id ), pluginClass );
if ( aClass != null ) {
 return aClass;
origin: pentaho/pentaho-kettle

if ( plugin.getPluginType().equals( StepPluginType.class ) ) {
 TransGraph transGraph = getActiveTransGraph();
 if ( transGraph != null ) {
if ( plugin.getPluginType().equals( JobEntryPluginType.class ) ) {
 JobGraph jobGraph = getActiveJobGraph();
 if ( jobGraph != null ) {
origin: pentaho/pentaho-kettle

/**
 * @param pluginType the type of plugin to get information for
 * @return a row buffer containing plugin information for the given plugin type
 * @throws KettlePluginException
 */
public RowBuffer getPluginInformation( Class<? extends PluginTypeInterface> pluginType )
  throws KettlePluginException {
 RowBuffer rowBuffer = new RowBuffer( getPluginInformationRowMeta() );
 for ( PluginInterface plugin : getPlugins( pluginType ) ) {
  Object[] row = new Object[getPluginInformationRowMeta().size()];
  int rowIndex = 0;
  row[rowIndex++] = getPluginType( plugin.getPluginType() ).getName();
  row[rowIndex++] = plugin.getIds()[0];
  row[rowIndex++] = plugin.getName();
  row[rowIndex++] = Const.NVL( plugin.getDescription(), "" );
  row[rowIndex++] = Utils.isEmpty( plugin.getLibraries() ) ? "" : plugin.getLibraries().toString();
  row[rowIndex++] = Const.NVL( plugin.getImageFile(), "" );
  row[rowIndex++] = plugin.getClassMap().values().toString();
  row[rowIndex] = Const.NVL( plugin.getCategory(), "" );
  rowBuffer.getBuffer().add( row );
 }
 return rowBuffer;
}
origin: pentaho/pentaho-kettle

public static ShowHelpDialog openHelpDialog( Shell shell, PluginInterface plugin ) {
 if ( shell == null || plugin == null ) {
  return null;
 }
 if ( isPluginDocumented( plugin ) ) {
  return openHelpDialog( shell, getHelpDialogTitle( plugin ), plugin.getDocumentationUrl(),
    plugin.getName()  );
 } else {
  MessageBox mb = new MessageBox( shell, SWT.OK | SWT.ICON_ERROR );
  String msgKey = "";
  // TODO currently support only Step and JobEntry - extend if required.
  if ( plugin.getPluginType().equals( StepPluginType.class ) ) {
   msgKey = "System.ShowHelpDialog.Step.HelpIsNotAvailable";
  } else {
   msgKey = "System.ShowHelpDialog.JobEntry.HelpIsNotAvailable";
  }
  mb.setMessage( BaseMessages.getString( PKG, msgKey, plugin.getName() ) );
  mb.setText( BaseMessages.getString( PKG, "System.Dialog.Error.Title" ) );
  mb.open();
 }
 return null;
}
origin: pentaho/pentaho-kettle

Class<? extends PluginTypeInterface> pluginType = plugin.getPluginType();
if ( Const.classIsOrExtends( pluginType, StepPluginType.class ) ) {
 type = DragAndDropContainer.TYPE_BASE_STEP_TYPE;
org.pentaho.di.core.pluginsPluginInterfacegetPluginType

Popular methods of PluginInterface

  • getIds
  • getName
  • getDescription
  • getPluginDirectory
  • getClassMap
  • getImageFile
  • getCategory
  • getDocumentationUrl
  • getErrorHelpFile
  • getMainType
  • isNativePlugin
  • matches
  • isNativePlugin,
  • matches,
  • getCasesUrl,
  • getClassLoaderGroup,
  • getForumUrl,
  • getLibraries,
  • getSuggestion,
  • isSeparateClassLoaderNeeded,
  • merge

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • getSharedPreferences (Context)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • URI (java.net)
    A Uniform Resource Identifier that identifies an abstract or physical resource, as specified by RFC
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JFileChooser (javax.swing)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now