Package org.pentaho.di.core.plugins
Class BaseFragmentType
- java.lang.Object
-
- org.pentaho.di.core.plugins.BasePluginType
-
- org.pentaho.di.core.plugins.BaseFragmentType
-
- All Implemented Interfaces:
PluginTypeInterface
public abstract class BaseFragmentType extends BasePluginType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
BaseFragmentType.FragmentTypeListener
-
Field Summary
-
Fields inherited from class org.pentaho.di.core.plugins.BasePluginType
id, log, name, objectTypes, PKG, pluginFolders, registry, searchLibDir
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addExtraClasses(Map<Class<?>,String> classMap, Class<?> clazz, Annotation annotation)
Extract extra classes information from a plugin annotation.protected URLClassLoader
createUrlClassLoader(URL jarFileUrl, ClassLoader classLoader)
Create a new URL class loader with the jar file specified.protected String
extractCategory(Annotation annotation)
protected String
extractDesc(Annotation annotation)
protected String
extractI18nPackageName(Annotation annotation)
protected String
extractName(Annotation annotation)
protected boolean
extractSeparateClassLoader(Annotation annotation)
protected void
initListeners(Class<? extends PluginTypeInterface> aClass, Class<? extends PluginTypeInterface> typeToTrack)
boolean
isFragment()
protected void
registerNatives()
protected void
registerXmlPlugins()
-
Methods inherited from class org.pentaho.di.core.plugins.BasePluginType
addObjectType, extractCasesUrl, extractClassLoaderGroup, extractDocumentationUrl, extractForumUrl, extractID, extractImageFile, extractSuggestion, findAnnotatedClassFiles, findPluginFiles, findPluginXmlFiles, getAdditionalRuntimeObjectTypes, getAlternativePluginFile, getAlternativeTranslation, getCodedTranslation, getFileInputStreamExternal, getId, getMainTag, getName, getPath, getPluginFolders, getPropertyExternal, getResAsStreamExternal, getSubTag, getTagOrAttribute, getTranslation, getXmlPluginFile, handlePluginAnnotation, isReturn, populateFolders, readPluginLocale, registerCustom, registerPluginFromXmlResource, registerPluginJars, registerPlugins, searchPlugins, setId, setName, setPluginFolders, setTransverseLibDirs, toString
-
-
-
-
Method Detail
-
initListeners
protected void initListeners(Class<? extends PluginTypeInterface> aClass, Class<? extends PluginTypeInterface> typeToTrack)
-
isFragment
public boolean isFragment()
-
createUrlClassLoader
protected URLClassLoader createUrlClassLoader(URL jarFileUrl, ClassLoader classLoader)
Description copied from class:BasePluginType
Create a new URL class loader with the jar file specified. Also include all the jar files in the lib folder next to that file.- Overrides:
createUrlClassLoader
in classBasePluginType
- Parameters:
jarFileUrl
- The jar file to includeclassLoader
- the parent class loader to use- Returns:
- The URL class loader
-
registerNatives
protected void registerNatives() throws KettlePluginException
- Overrides:
registerNatives
in classBasePluginType
- Throws:
KettlePluginException
-
registerXmlPlugins
protected void registerXmlPlugins() throws KettlePluginException
- Specified by:
registerXmlPlugins
in classBasePluginType
- Throws:
KettlePluginException
-
extractName
protected String extractName(Annotation annotation)
- Specified by:
extractName
in classBasePluginType
-
extractDesc
protected String extractDesc(Annotation annotation)
- Specified by:
extractDesc
in classBasePluginType
-
extractCategory
protected String extractCategory(Annotation annotation)
- Specified by:
extractCategory
in classBasePluginType
-
extractSeparateClassLoader
protected boolean extractSeparateClassLoader(Annotation annotation)
- Specified by:
extractSeparateClassLoader
in classBasePluginType
-
extractI18nPackageName
protected String extractI18nPackageName(Annotation annotation)
- Specified by:
extractI18nPackageName
in classBasePluginType
-
addExtraClasses
protected void addExtraClasses(Map<Class<?>,String> classMap, Class<?> clazz, Annotation annotation)
Description copied from class:BasePluginType
Extract extra classes information from a plugin annotation.- Specified by:
addExtraClasses
in classBasePluginType
-
-