Class PatternFactoryBean

All Implemented Interfaces:
Aware, BeanClassLoaderAware, BeanFactoryAware, DisposableBean, FactoryBean<Pattern>, InitializingBean

public class PatternFactoryBean extends AbstractComponentAwareFactoryBean<Pattern>
Factory bean for Pattern. Allows us to inject property based case sensitivity.
  • Field Details

    • caseSensitive

      @Nullable private String caseSensitive
      Whether the we are case sensitive or not.
    • regexp

      @Nullable private String regexp
      The regular expressions.
  • Constructor Details

    • PatternFactoryBean

      public PatternFactoryBean()
  • Method Details

    • getObjectType

      @Nonnull public Class<?> getObjectType()
      This abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods.
      Specified by:
      getObjectType in interface FactoryBean<Pattern>
      Specified by:
      getObjectType in class AbstractFactoryBean<Pattern>
      See Also:
    • getCaseSensitive

      @Nullable public String getCaseSensitive()
      Get case sensitivity.
      Returns:
      the case sensitivity
    • setCaseSensitive

      public void setCaseSensitive(@Nullable String what)
      Set case sensitivity.
      Parameters:
      what - value to set
    • getRegexp

      @Nullable public String getRegexp()
      Get the regular expression.
      Returns:
      the regexp
    • setRegexp

      public void setRegexp(@Nullable String what)
      Set the regular expression.
      Parameters:
      what - what to set
    • doCreateInstance

      @Nonnull protected Pattern doCreateInstance() throws Exception
      Call the parent class to create the instance.
      Specified by:
      doCreateInstance in class AbstractComponentAwareFactoryBean<Pattern>
      Returns:
      the bean.
      Throws:
      Exception - if needed.