@Test public void testFilenameCreator() throws Exception { WriteMetadataToFilesystem service = new WriteMetadataToFilesystem(); assertEquals(FormattedFilenameCreator.class, service.filenameCreator().getClass()); service.setFilenameCreator(new EmptyFileNameCreator()); assertEquals(EmptyFileNameCreator.class, service.getFilenameCreator().getClass()); service.setFilenameCreator(null); assertEquals(FormattedFilenameCreator.class, service.filenameCreator().getClass()); }
FileNameCreator filenameCreator() { return ObjectUtils.defaultIfNull(getFilenameCreator(), new FormattedFilenameCreator()); }
WriteMetadataToFilesystem extends ServiceImp { FileNameCreator filenameCreator() { return ObjectUtils.defaultIfNull(getFilenameCreator(), new FormattedFilenameCreator()); } }
WriteMetadataToFilesystem extends ServiceImp { FileNameCreator filenameCreator() { return ObjectUtils.defaultIfNull(getFilenameCreator(), new FormattedFilenameCreator()); } WriteMetadataToFilesystem();  WriteMetadataToFilesystem(MessageDrivenDestination d); }
WriteMetadataToFilesystem extends ServiceImp { FileNameCreator filenameCreator() { return ObjectUtils.defaultIfNull(getFilenameCreator(), new FormattedFilenameCreator()); } WriteMetadataToFilesystem();  WriteMetadataToFilesystem(MessageDrivenDestination d); @Override void doService(AdaptrisMessage msg); FileNameCreator getFilenameCreator(); void setFilenameCreator(FileNameCreator creator); OutputStyle getOutputStyle(); void setOutputStyle(OutputStyle style); MessageDrivenDestination getDestination(); void setDestination(MessageDrivenDestination d); Boolean getOverwriteIfExists(); void setOverwriteIfExists(Boolean b); boolean overwriteIfExists(); MetadataFilter getMetadataFilter(); void setMetadataFilter(MetadataFilter filter); @Override void prepare(); }
WriteMetadataToFilesystem extends ServiceImp { FileNameCreator filenameCreator() { return ObjectUtils.defaultIfNull(getFilenameCreator(), new FormattedFilenameCreator()); } WriteMetadataToFilesystem();  WriteMetadataToFilesystem(MessageDrivenDestination d); @Override void doService(AdaptrisMessage msg); FileNameCreator getFilenameCreator(); void setFilenameCreator(FileNameCreator creator); OutputStyle getOutputStyle(); void setOutputStyle(OutputStyle style); MessageDrivenDestination getDestination(); void setDestination(MessageDrivenDestination d); Boolean getOverwriteIfExists(); void setOverwriteIfExists(Boolean b); boolean overwriteIfExists(); MetadataFilter getMetadataFilter(); void setMetadataFilter(MetadataFilter filter); @Override void prepare();  }