1 | void setClassname(String classname)↵ | | 1 | void set↵
|
2 | {↵ | | |
|
3 | setProperty(CLASSNAME, classname);↵ | | |
|
4 | ↵ | | 2 | JNDIIntialContextFactory(String icf) {↵
|
| | | 3 | setProperty(JNDI_INITIAL_CONTEXT_FAC, icf);↵
|
5 | }↵ | | 4 | }↵
|
|
6 | /**↵ | | 5 | /**↵
|
7 | * Gets the Classname attribute of the JavaConfig object↵ | | |
|
8 | *↵ | | |
|
9 | ↵ | | 6 | * method returns the initial context factory for jndi initial context↵
|
| | | 7 | * lookup.↵
|
| | | 8 | * ↵
|
10 | * @return the Classname value↵ | | 9 | * @return the ↵
|
11 | ↵ | | 10 | initial context factory ↵
|
12 | */↵ | | 11 | */↵
|
13 | public String getClassname()↵ | | 12 | public String get↵
|
14 | {↵ | | |
|
15 | return getPropertyAsString(CLASSNAME);↵ | | |
|
16 | }↵ | | |
|
17 | ↵ | | |
|
18 | ↵ | | 13 | JNDIInitialContextFactory() {↵
|
| | | 14 | return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC);↵
|
| | | 15 | }↵
|
|
19 | /**↵ | | 16 | /**↵
|
20 | * Set the string label used to create an instance of the↵ | | 17 | * set the ↵
|
21 | * test with the string constructor.↵ | | |
|
22 | * @param constr↵ | | |
|
23 | ↵ | | 18 | provider user for jndi↵
|
| | | 19 | * ↵
|
| | | 20 | * @param url the provider URL↵
|
24 | */↵ | | 21 | */↵
|
25 | public void setConstructorString(String constr)↵ | | 22 | public void set↵
|
26 | {↵ | | |
|
27 | setProperty(CONSTRUCTORSTRING,constr);↵ | | |
|
28 | }↵ | | |
|
29 | ↵ | | |
|
30 | ↵ | | 23 | ProviderUrl(String url) {↵
|
| | | 24 | setProperty(PROVIDER_URL, url);↵
|
| | | 25 | }↵
|
|
31 | /**↵ | | 26 | /**↵
|
32 | * get the string passed to the string constructor↵ | | 27 | * method returns the provider url for jndi to connect to↵
|
33 | ↵ | | 28 | * ↵
|
| | | 29 | * @return the provider URL↵
|
34 | */↵ | | 30 | */↵
|
35 | public String getConstructorString()↵ | | 31 | public String get↵
|
36 | {↵ | | |
|
37 | ↵ | | 32 | ProviderUrl() {↵
|
38 | return getPropertyAsString(CONSTRUCTORSTRING);↵ | | 33 | return getPropertyAsString(↵
|
39 | ↵ | | 34 | PROVIDER_URL);↵
|
40 | } | | 35 | }
|