Normalize line endings VIVO-101
This commit is contained in:
parent
b097a4d754
commit
54f79f2ea7
587 changed files with 91501 additions and 91501 deletions
|
@ -1,30 +1,30 @@
|
|||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
package stubs.javax.naming.spi;
|
||||
|
||||
import java.util.Hashtable;
|
||||
|
||||
import javax.naming.Context;
|
||||
import javax.naming.NamingException;
|
||||
import javax.naming.spi.InitialContextFactory;
|
||||
|
||||
import stubs.javax.naming.InitialContextStub;
|
||||
|
||||
/**
|
||||
* In order to use this and the other naming stubs.javax.naming classes, do
|
||||
* this:
|
||||
*
|
||||
* <pre>
|
||||
* System.setProperty(Context.INITIAL_CONTEXT_FACTORY,
|
||||
* InitialContextFactoryStub.class.getName());
|
||||
* </pre>
|
||||
*/
|
||||
public class InitialContextFactoryStub implements InitialContextFactory {
|
||||
/**
|
||||
* It's just this easy.
|
||||
*/
|
||||
public Context getInitialContext(Hashtable<?, ?> environment)
|
||||
throws NamingException {
|
||||
return new InitialContextStub();
|
||||
}
|
||||
}
|
||||
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
|
||||
|
||||
package stubs.javax.naming.spi;
|
||||
|
||||
import java.util.Hashtable;
|
||||
|
||||
import javax.naming.Context;
|
||||
import javax.naming.NamingException;
|
||||
import javax.naming.spi.InitialContextFactory;
|
||||
|
||||
import stubs.javax.naming.InitialContextStub;
|
||||
|
||||
/**
|
||||
* In order to use this and the other naming stubs.javax.naming classes, do
|
||||
* this:
|
||||
*
|
||||
* <pre>
|
||||
* System.setProperty(Context.INITIAL_CONTEXT_FACTORY,
|
||||
* InitialContextFactoryStub.class.getName());
|
||||
* </pre>
|
||||
*/
|
||||
public class InitialContextFactoryStub implements InitialContextFactory {
|
||||
/**
|
||||
* It's just this easy.
|
||||
*/
|
||||
public Context getInitialContext(Hashtable<?, ?> environment)
|
||||
throws NamingException {
|
||||
return new InitialContextStub();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue