jdk/src/share/classes/javax/naming/spi/ContinuationContext.java
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
child 5506 202f599c92aa
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
 * Copyright 1999-2004 Sun Microsystems, Inc.  All Rights Reserved.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Sun designates this
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
 * by Sun in the LICENSE file that accompanied this code.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
 * CA 95054 USA or visit www.sun.com if you need additional information or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
 * have any questions.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package javax.naming.spi;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.util.Hashtable;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import javax.naming.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
  * This class is for dealing with federations/continuations.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
  *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
  * @author Rosanna Lee
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
  * @author Scott Seligman
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
  * @since 1.3
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
  */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
class ContinuationContext implements Context, Resolver {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
    protected CannotProceedException cpe;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
    protected Hashtable env;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
    protected Context contCtx = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
    protected ContinuationContext(CannotProceedException cpe,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
                        Hashtable env) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
        this.cpe = cpe;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
        this.env = env;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
    protected Context getTargetContext() throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
        if (contCtx == null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
            if (cpe.getResolvedObj() == null)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
                throw (NamingException)cpe.fillInStackTrace();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
            contCtx = NamingManager.getContext(cpe.getResolvedObj(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
                                               cpe.getAltName(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
                                               cpe.getAltNameCtx(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
                                               env);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
            if (contCtx == null)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
                throw (NamingException)cpe.fillInStackTrace();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
        return contCtx;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
    public Object lookup(Name name) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
        return ctx.lookup(name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
    public Object lookup(String name) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
        return ctx.lookup(name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
    public void bind(Name name, Object newObj) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
        ctx.bind(name, newObj);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    public void bind(String name, Object newObj) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
        ctx.bind(name, newObj);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
    public void rebind(Name name, Object newObj) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
        ctx.rebind(name, newObj);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    public void rebind(String name, Object newObj) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
        ctx.rebind(name, newObj);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
    public void unbind(Name name) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
        ctx.unbind(name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
    public void unbind(String name) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
        ctx.unbind(name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
90ce3da70b43 Initial load
duke
parents:
diff changeset
   103
    public void rename(Name name, Name newName) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   104
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
        ctx.rename(name, newName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   107
    public void rename(String name, String newName) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   108
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
        ctx.rename(name, newName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
90ce3da70b43 Initial load
duke
parents:
diff changeset
   112
    public NamingEnumeration list(Name name) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   113
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
        return ctx.list(name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
    public NamingEnumeration list(String name) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
        return ctx.list(name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
    public NamingEnumeration listBindings(Name name)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
        throws NamingException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
    {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
        return ctx.listBindings(name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
    public NamingEnumeration listBindings(String name) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
        return ctx.listBindings(name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
    public void destroySubcontext(Name name) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
        ctx.destroySubcontext(name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   138
    public void destroySubcontext(String name) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   140
        ctx.destroySubcontext(name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
90ce3da70b43 Initial load
duke
parents:
diff changeset
   143
    public Context createSubcontext(Name name) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   144
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   145
        return ctx.createSubcontext(name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   146
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
    public Context createSubcontext(String name) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   149
        return ctx.createSubcontext(name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   150
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   151
90ce3da70b43 Initial load
duke
parents:
diff changeset
   152
    public Object lookupLink(Name name) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   153
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   154
        return ctx.lookupLink(name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   155
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   156
    public Object lookupLink(String name) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
        return ctx.lookupLink(name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
    public NameParser getNameParser(Name name) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   163
        return ctx.getNameParser(name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   164
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
    public NameParser getNameParser(String name) throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   167
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
        return ctx.getNameParser(name);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   169
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
    public Name composeName(Name name, Name prefix)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
        throws NamingException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
    {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
        return ctx.composeName(name, prefix);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
    public String composeName(String name, String prefix)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
            throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
        return ctx.composeName(name, prefix);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
    public Object addToEnvironment(String propName, Object value)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
        throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
        return ctx.addToEnvironment(propName, value);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
    public Object removeFromEnvironment(String propName)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
        throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
        return ctx.removeFromEnvironment(propName);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
    public Hashtable getEnvironment() throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
        return ctx.getEnvironment();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
    public String getNameInNamespace() throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
        Context ctx = getTargetContext();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
        return ctx.getNameInNamespace();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
    public ResolveResult
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
        resolveToClass(Name name, Class<? extends Context> contextType)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
        throws NamingException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
    {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
        if (cpe.getResolvedObj() == null)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
            throw (NamingException)cpe.fillInStackTrace();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
        Resolver res = NamingManager.getResolver(cpe.getResolvedObj(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
                                                 cpe.getAltName(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
                                                 cpe.getAltNameCtx(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
                                                 env);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
        if (res == null)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
            throw (NamingException)cpe.fillInStackTrace();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
        return res.resolveToClass(name, contextType);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
    public ResolveResult
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
        resolveToClass(String name, Class<? extends Context> contextType)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
        throws NamingException
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
    {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
        if (cpe.getResolvedObj() == null)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
            throw (NamingException)cpe.fillInStackTrace();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
        Resolver res = NamingManager.getResolver(cpe.getResolvedObj(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
                                                 cpe.getAltName(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
                                                 cpe.getAltNameCtx(),
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
                                                 env);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
        if (res == null)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
            throw (NamingException)cpe.fillInStackTrace();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
        return res.resolveToClass(name, contextType);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
    public void close() throws NamingException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
        cpe = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
        env = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
        if (contCtx != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
            contCtx.close();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
            contCtx = null;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
}