Skip to content

Thread safety and state

DuyHai DOAN edited this page Aug 25, 2017 · 8 revisions

By design, Achilles ManagerFactory and Manager are stateless. They only contain references to meta data and pre-built prepared statements. For common operations the Manager delegates the job to underlying implementation classes.

Thus they are thread-safe and can be injected as a singleton in any of your DAO/Services.

Example:

	...
	@Inject
	private User_Manager userManager;
	...
	...

Home

Clone this wiki locally