Skip to content
This repository has been archived by the owner on May 26, 2020. It is now read-only.

Commit

Permalink
Add java docs
Browse files Browse the repository at this point in the history
  • Loading branch information
amckenzie authored and mapingo committed Mar 10, 2017
1 parent f7bf76f commit fb858d2
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,17 @@
import javax.naming.InitialContext;
import javax.naming.NamingException;

/**
* Simple wrapper class for getting an {@link InitialContext} to allow for mocking in tests
*/
public class InitialContextFactory {

/**
* Instantiates a new {@link InitialContext}
*
* @return a shiny new {@link InitialContext}
* @throws NamingException if instantiating the {@link InitialContext} fails
*/
public InitialContext create() throws NamingException {
return new InitialContext();
}
Expand Down

0 comments on commit fb858d2

Please sign in to comment.