-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://github.com/Aelphaeis/Jmo/issues/2
Moved InMemoryContext and created supporting classes and tests for its initialization
- Loading branch information
Showing
4 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package jmo.util.naming; | ||
|
||
import java.util.Hashtable; | ||
|
||
import javax.naming.Context; | ||
import javax.naming.NamingException; | ||
import javax.naming.spi.InitialContextFactory; | ||
|
||
public class JmoInitContextFactory implements InitialContextFactory { | ||
|
||
@Override | ||
public Context getInitialContext(Hashtable<?, ?> environment) throws NamingException { | ||
// TODO Auto-generated method stub | ||
return new InMemoryContext(); | ||
} | ||
|
||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
java.naming.factory.initial=jmo.util.naming.JmoInitContextFactory | ||
#java.naming.factory.object= | ||
#java.naming.factory.state= | ||
#java.naming.factory.url.pkgs= | ||
#java.naming.provider.url= | ||
#java.naming.dns.url= | ||
#java.naming.authoritative= | ||
#java.naming.batchsize= | ||
#java.naming.referral= | ||
#java.naming.security.protocol= | ||
#java.naming.security.authentication= | ||
#java.naming.security.principal= | ||
#java.naming.security.credentials= | ||
#java.naming.language= | ||
#java.naming.applet= |
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