Created
March 22, 2017 02:56
-
-
Save cjvirtucio87/fc3c9dbf47731cb1f4931099ab1d1252 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// org.yournamespace.Store.java | |
@Service | |
public class Store { | |
private Map<String, Info> fileState; | |
public Store(Map fileState) { | |
this.fileState = fileState; | |
} | |
@Bean | |
public void update(Info info) { | |
// ... | |
} | |
@Bean | |
public void peek(Info info) { | |
// ... | |
} | |
} | |
// org.yournamespace.WritingUtil.java | |
@Service | |
public class WritingUtil { | |
private Info fileInfo; | |
@Bean | |
public WritingUtil(Info info) { | |
this.fileInfo = info; | |
} | |
@Bean | |
public Long write() { | |
// ... | |
} | |
@Bean | |
public Long peek() { | |
// ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment