Class PluginAdapter

java.lang.Object
org.mybatis.generator.api.PluginAdapter
All Implemented Interfaces:
Plugin
Direct Known Subclasses:
CacheNamespacePlugin, CachePlugin, CaseInsensitiveLikePlugin, DisableDeletePlugin, DisableInsertPlugin, DisableUpdatePlugin, EqualsHashCodePlugin, FluentBuilderMethodsPlugin, IgnoreViewsPlugin, MapperAnnotationPlugin, MapperConfigPlugin, RenameExampleClassPlugin, RowBoundsPlugin, SerializablePlugin, ToStringPlugin, UnmergeableXmlMappersPlugin, VirtualPrimaryKeyPlugin

public abstract class PluginAdapter extends Object implements Plugin
This class is a convenient base class for implementing plugins.

This adapter does not implement the validate method - all plugins must perform validation.

Author:
Jeff Butler
  • Field Details

    • context

      protected Context context
    • properties

      protected final Properties properties
  • Constructor Details

    • PluginAdapter

      protected PluginAdapter()
  • Method Details

    • setContext

      public void setContext(Context context)
      Description copied from interface: Plugin
      Set the context under which this plugin is running.
      Specified by:
      setContext in interface Plugin
      Parameters:
      context - the new context
    • setProperties

      public void setProperties(Properties properties)
      Description copied from interface: Plugin
      Set properties from the plugin configuration.
      Specified by:
      setProperties in interface Plugin
      Parameters:
      properties - the new properties