Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose internal APIs for pluggable file systems. #1781

Merged
merged 1 commit into from
Aug 1, 2015

Conversation

swankjesse
Copy link
Collaborator

We aren't yet ready to make FileSystem a public type, but I don't mind
making it almost available via an internal API for those brave enough
to try that.

Also migrate all of our tests to use the in memory file system. It's simpler.

#1459

We aren't yet ready to make FileSystem a public type, but I don't mind
making it _almost_ available via an internal API for those brave enough
to try that.

Also migrate all of our tests to use the in memory file system. It's simpler.

#1459
this(directory, maxSize, FileSystem.SYSTEM);
}

Cache(File directory, long maxSize, FileSystem fileSystem) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the new seam that allows daring application developers to plug in their own file system wrappers.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

internal-only, but if it proves useful we can make it public later (possibly in okio).

JakeWharton added a commit that referenced this pull request Aug 1, 2015
Expose internal APIs for pluggable file systems.
@JakeWharton JakeWharton merged commit 1e5f3a9 into master Aug 1, 2015
@swankjesse swankjesse deleted the jwilson_0801_cache_filesystem branch August 26, 2015 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants