- filters = new LinkedHashMap<Integer, Filter>();
- destinations = new LinkedHashMap<Integer, Destination>();
- }
-
- @Override
- public Id<DocumentType> addDocumentType(DocumentType aType) {
- int seqno = sequenceNumbers.getAndIncrement();
- documentTypes.put(seqno, aType);
- return new Id<DocumentType>(seqno);
- }
-
- @Override
- public void removeDocumentType(Id<DocumentType> aId) {
- documentTypes.remove(aId);
- }
-
- @Override
- public Collection<DocumentType> getDocumentTypes() {
- return Collections.unmodifiableCollection(documentTypes.values());
- }
-
- @Override
- public Id<Transformation> addTransformation(Transformation aTransformation) {
- return transformations.addTransformation(aTransformation);
- }
-
- @Override
- public void removeTransformation(Id<Transformation> aId) {
- transformations.removeTransformation(aId);
+ filters = new ConfigImpl<Filter>() {
+ @Override
+ public Filter wrap(Id<Filter> aId, Filter aFilter) {
+ return new RobustFilter(aId, aFilter);
+ }
+ };
+ destinations = new LinkedHashMap<Id<Destination>, Destination>();