Skip to content

Instantly share code, notes, and snippets.

@geraldcroes
Created December 9, 2017 16:55
Show Gist options
  • Select an option

  • Save geraldcroes/e2b8d6009f2a7e24a29feeaf09436747 to your computer and use it in GitHub Desktop.

Select an option

Save geraldcroes/e2b8d6009f2a7e24a29feeaf09436747 to your computer and use it in GitHub Desktop.
Client of the object factory
//Works…
ObjectFileParserFactory.createFromFileName("filename.foo")
//...and this still works
val fileParser = ObjectFileParserFactory
fileParser.createFromFileName("filename.json")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment