org.apache.wicket.markup
Class MarkupParserFactory
java.lang.Object
org.apache.wicket.markup.MarkupParserFactory
- All Implemented Interfaces:
- IMarkupParserFactory
public class MarkupParserFactory
- extends Object
- implements IMarkupParserFactory
Default implementation of IMarkupParserFactory. It creates a MarkupParser with a standard set of
IMarkupFilter. You may add IMarkupFilters like shown below, but don't forget to register your own
MarkupParserFactory with Settings to become activated.
class MyMarkupParserFactory
{
...
public MarkupParser newMarkupParser(final MarkupResourceStream resource)
{
MarkupParser parser = new MarkupParser(new XmlPullParser(), resource);
parser.appendMarkupFilter(new MyOwnFilter());
return parser;
}
...
}
- Author:
- Igor Vaynberg (ivaynberg), Juergen Donnerstag
- See Also:
IMarkupFilter
,
MarkupParser
,
IMarkupSettings
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MarkupParserFactory
public MarkupParserFactory()
- Construct.
newMarkupParser
public MarkupParser newMarkupParser(MarkupResourceStream resource)
- Specified by:
newMarkupParser
in interface IMarkupParserFactory
- Parameters:
resource
- The markup resource (file)
- Returns:
- new instance of
MarkupParser
- See Also:
IMarkupParserFactory.newMarkupParser(org.apache.wicket.markup.MarkupResourceStream)
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.