Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactored AdminFactory instances * created separate cache classes for Translators, Data Sources and RAs * Changed JNDI name workflow/entry to required java:/ prefix from user
- Loading branch information
Showing
61 changed files
with
5,837 additions
and
2,375 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
plugins/org.teiid.designer.core/src/org/teiid/designer/core/util/JndiUtil.java
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,24 @@ | ||
package org.teiid.designer.core.util; | ||
|
||
public class JndiUtil { | ||
public static final String JAVA_PREFIX = "java:/"; | ||
|
||
public static String addJavaPrefix(String name) { | ||
if( !name.startsWith(JAVA_PREFIX) ) { | ||
return JAVA_PREFIX + name; | ||
} | ||
|
||
return name; | ||
} | ||
|
||
public static String removeJavaPrefix(String nameWithPrefix) { | ||
if (nameWithPrefix.startsWith(JAVA_PREFIX)) { | ||
nameWithPrefix = nameWithPrefix.substring(6); | ||
} | ||
return nameWithPrefix; | ||
} | ||
|
||
public static boolean hasJavaPrefix(String jndiName) { | ||
return jndiName.startsWith(JAVA_PREFIX); | ||
} | ||
} |
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
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
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
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
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
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
Oops, something went wrong.