public abstract class AbstractDefaultValueUpdateProcessorFactory extends UpdateRequestProcessorFactory
Base class that can be extended by any
UpdateRequestProcessorFactory
designed to add a default value
to the document in an AddUpdateCommand
when that field is not
already specified.
This base class handles initialization of the fieldName
init
param, and provides an AbstractDefaultValueUpdateProcessorFactory.DefaultValueUpdateProcessor
that Factory
subclasses may choose to return from their getInstance
implementation.
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractDefaultValueUpdateProcessorFactory.DefaultValueUpdateProcessor
A simple processor that adds the results of
AbstractDefaultValueUpdateProcessorFactory.DefaultValueUpdateProcessor.getDefaultValue()
to any document which does not already have a value in
fieldName |
Constructor and Description |
---|
AbstractDefaultValueUpdateProcessorFactory() |
Modifier and Type | Method and Description |
---|---|
void |
init(NamedList args) |
getInstance
protected String fieldName
public AbstractDefaultValueUpdateProcessorFactory()
public void init(NamedList args)
init
in interface NamedListInitializedPlugin
init
in class UpdateRequestProcessorFactory
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.