Class PatternFactoryBean
java.lang.Object
net.shibboleth.shared.spring.factory.AbstractFactoryBean<T>
net.shibboleth.shared.spring.factory.AbstractComponentAwareFactoryBean<Pattern>
net.shibboleth.shared.spring.factory.PatternFactoryBean
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<Pattern>,InitializingBean
Factory bean for
Pattern. Allows us to inject property based case sensitivity.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringWhether the we are case sensitive or not.private StringThe regular expressions.Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PatternCall the parent class to create the instance.Get case sensitivity.Class<?>This abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods.Get the regular expression.voidsetCaseSensitive(String what) Set case sensitivity.voidSet the regular expression.Methods inherited from class net.shibboleth.shared.spring.factory.AbstractComponentAwareFactoryBean
createInstance, destroyInstance, setThrowIfNullMethods inherited from class net.shibboleth.shared.spring.factory.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Field Details
-
caseSensitive
Whether the we are case sensitive or not. -
regexp
The regular expressions.
-
-
Constructor Details
-
PatternFactoryBean
public PatternFactoryBean()
-
-
Method Details
-
getObjectType
This abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods.- Specified by:
getObjectTypein interfaceFactoryBean<Pattern>- Specified by:
getObjectTypein classAbstractFactoryBean<Pattern>- See Also:
-
getCaseSensitive
Get case sensitivity.- Returns:
- the case sensitivity
-
setCaseSensitive
Set case sensitivity.- Parameters:
what- value to set
-
getRegexp
Get the regular expression.- Returns:
- the regexp
-
setRegexp
Set the regular expression.- Parameters:
what- what to set
-
doCreateInstance
Call the parent class to create the instance.- Specified by:
doCreateInstancein classAbstractComponentAwareFactoryBean<Pattern>- Returns:
- the bean.
- Throws:
Exception- if needed.
-