Package org.xwiki.filter
Class AbstractBeanFilterStreamFactory<P>
- java.lang.Object
-
- org.xwiki.filter.AbstractFilterStreamFactory
-
- org.xwiki.filter.AbstractBeanFilterStreamFactory<P>
-
- Type Parameters:
P- the type of the class containing the parameters of the filter
- All Implemented Interfaces:
Initializable,FilterStreamFactory
- Direct Known Subclasses:
AbstractBeanInputFilterStreamFactory,AbstractBeanOutputFilterStreamFactory
public abstract class AbstractBeanFilterStreamFactory<P> extends AbstractFilterStreamFactory implements FilterStreamFactory, Initializable
- Since:
- 6.2M1
- Version:
- $Id: ecf60442a209e2bf2b004bad900ead51d065d405 $
-
-
Field Summary
Fields Modifier and Type Field Description protected BeanManagerbeanManagerTheBeanManagercomponent.-
Fields inherited from class org.xwiki.filter.AbstractFilterStreamFactory
descriptor, type
-
-
Constructor Summary
Constructors Constructor Description AbstractBeanFilterStreamFactory(FilterStreamType type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PcreatePropertiesBean(Map<String,Object> properties)StringgetDescription()StringgetName()Class<P>getPropertiesBeanClass()voidinitialize()voidsetDescription(String description)voidsetName(String name)voidsetPropertiesBeanClass(Class<P> propertiesBeanClass)-
Methods inherited from class org.xwiki.filter.AbstractFilterStreamFactory
getDescriptor, getType, setDescriptor
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.xwiki.filter.FilterStreamFactory
getDescriptor, getFilterInterfaces, getType
-
-
-
-
Field Detail
-
beanManager
@Inject protected BeanManager beanManager
TheBeanManagercomponent.
-
-
Constructor Detail
-
AbstractBeanFilterStreamFactory
public AbstractBeanFilterStreamFactory(FilterStreamType type)
-
-
Method Detail
-
initialize
public void initialize() throws InitializationException- Specified by:
initializein interfaceInitializable- Throws:
InitializationException
-
createPropertiesBean
protected P createPropertiesBean(Map<String,Object> properties) throws FilterException
- Throws:
FilterException
-
setName
public void setName(String name)
- Parameters:
name- the name to set
-
getName
public String getName()
- Returns:
- the name
-
setDescription
public void setDescription(String description)
- Parameters:
description- the description to set
-
getDescription
public String getDescription()
- Returns:
- the description
-
setPropertiesBeanClass
public void setPropertiesBeanClass(Class<P> propertiesBeanClass)
- Parameters:
propertiesBeanClass- the parametersBeanClass to set
-
-