- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<T>
-
- net.shibboleth.ext.spring.factory.AbstractComponentAwareFactoryBean<Pattern>
-
- net.shibboleth.ext.spring.factory.PatternFactoryBean
-
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<Pattern>,InitializingBean
public class PatternFactoryBean extends AbstractComponentAwareFactoryBean<Pattern>
Factory bean forPattern. Allows us to inject property based case sensitivity.
-
-
Field Summary
Fields Modifier and Type Field Description private StringcaseSensitiveWhether the we are case sensitive or not.private StringregexpThe regular expressions.-
Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
-
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description PatternFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PatterndoCreateInstance()Call the parent class to create the instance.StringgetCaseSensitive()set case sensitivity.Class<?>getObjectType()StringgetRegexp()Get the regular expression.voidsetCaseSensitive(String what)get case sensitivity.voidsetRegexp(String what)Set the regular expression.-
Methods inherited from class net.shibboleth.ext.spring.factory.AbstractComponentAwareFactoryBean
createInstance, destroyInstance
-
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
-
-
-
Method Detail
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectTypein interfaceFactoryBean<Pattern>- Specified by:
getObjectTypein classAbstractFactoryBean<Pattern>
-
getCaseSensitive
public String getCaseSensitive()
set case sensitivity.- Returns:
- Returns the caseSensitive.
-
setCaseSensitive
public void setCaseSensitive(@Nullable String what)get case sensitivity.- Parameters:
what- The value to set.
-
getRegexp
@Nullable public String getRegexp()
Get the regular expression.- Returns:
- Returns the regexp.
-
setRegexp
public void setRegexp(@Nonnull String what)Set the regular expression.- Parameters:
what- what to set.
-
doCreateInstance
protected Pattern doCreateInstance() throws Exception
Call the parent class to create the instance.- Specified by:
doCreateInstancein classAbstractComponentAwareFactoryBean<Pattern>- Returns:
- the bean.
- Throws:
Exception- if needed.
-
-