jdk/src/java.base/share/classes/java/util/spi/AbstractResourceBundleProvider.java
author mchung
Fri, 03 Jun 2016 12:26:45 -0700
changeset 38782 ff27bc5c278e
parent 36511 9d0388c6b336
child 42338 a60f280f803c
permissions -rw-r--r--
8158604: test/java/util/ResourceBundle/modules/appbasic missing @test Reviewed-by: alanb, okutsu
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     1
/*
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     2
 * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     4
 *
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    10
 *
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    15
 * accompanied this code).
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    16
 *
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    20
 *
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    23
 * questions.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    24
 */
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    25
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    26
package java.util.spi;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    27
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    28
import java.io.IOException;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    29
import java.io.UncheckedIOException;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    30
import java.lang.reflect.Module;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    31
import java.security.AccessController;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    32
import java.security.PrivilegedAction;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    33
import java.util.Locale;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    34
import java.util.ResourceBundle;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    35
import sun.util.locale.provider.ResourceBundleProviderSupport;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    36
import static sun.security.util.SecurityConstants.GET_CLASSLOADER_PERMISSION;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    37
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    38
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    39
/**
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    40
 * {@code AbstractResourceBundleProvider} is an abstract class for helping
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    41
 * implement the {@link ResourceBundleProvider} interface.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    42
 *
38782
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    43
 * <p>
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    44
 * Resource bundles can be packaged in a named module separated from
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    45
 * the <em>caller module</em> loading the resource bundle, i.e. the module
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    46
 * calling {@link ResourceBundle#getBundle(String)}.  For the caller module
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    47
 * to load a resource bundle "{@code com.example.app.MyResources}"
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    48
 * from another module and a service interface named
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    49
 * "{@code com.example.app.MyResourcesProvider}",
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    50
 * the <em>bundle provider module</em> can provide the implementation class
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    51
 * as follows:
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    52
 *
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    53
 * <pre><code>
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    54
 * import com.example.app.MyResourcesProvider;
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    55
 * class MyResourcesProviderImpl extends AbstractResourceBundleProvider
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    56
 *     implements MyResourcesProvider
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    57
 * {</code>
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    58
 *     {@code @Override
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    59
 *     public ResourceBundle getBundle(String baseName, Locale locale) {
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    60
 *         // this module only provides bundles in french
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    61
 *         if (locale.equals(Locale.FRENCH)) {
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    62
 *              return super.getBundle(baseName, locale);
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    63
 *         }
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    64
 *         return null;
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    65
 *     }
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    66
 * }}</pre>
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    67
 *
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    68
 * @see <a href="../ResourceBundle.html#bundleprovider">
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    69
 *     Resource Bundles in Named Modules</a>
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    70
 * @see <a href="../ResourceBundle.html#RBP_support">
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    71
 *     ResourceBundleProvider Service Providers</a>
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
    72
 *
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    73
 * @since 9
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    74
 */
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    75
public abstract class AbstractResourceBundleProvider implements ResourceBundleProvider {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    76
    private static final String FORMAT_CLASS = "java.class";
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    77
    private static final String FORMAT_PROPERTIES = "java.properties";
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    78
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    79
    private final String[] formats;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    80
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    81
    /**
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    82
     * Constructs an {@code AbstractResourceBundleProvider} with the
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    83
     * "java.properties" format. This constructor is equivalent to
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    84
     * {@code AbstractResourceBundleProvider("java.properties")}.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    85
     */
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    86
    protected AbstractResourceBundleProvider() {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    87
        this(FORMAT_PROPERTIES);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    88
    }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    89
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    90
    /**
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    91
     * Constructs an {@code AbstractResourceBundleProvider} with the specified
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    92
     * {@code formats}. The {@link #getBundle(String, Locale)} method looks up
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    93
     * resource bundles for the given {@code formats}. {@code formats} must
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    94
     * be "java.class" or "java.properties".
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    95
     *
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    96
     * @param formats the formats to be used for loading resource bundles
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    97
     * @throws NullPointerException if the given {@code formats} is null
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    98
     * @throws IllegalArgumentException if the given {@code formats} is not
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
    99
     *         "java.class" or "java.properties".
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   100
     */
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   101
    protected AbstractResourceBundleProvider(String... formats) {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   102
        this.formats = formats.clone();  // defensive copy
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   103
        if (this.formats.length == 0) {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   104
            throw new IllegalArgumentException("empty formats");
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   105
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   106
        for (String f : this.formats) {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   107
            if (!FORMAT_CLASS.equals(f) && !FORMAT_PROPERTIES.equals(f)) {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   108
                throw new IllegalArgumentException(f);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   109
            }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   110
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   111
    }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   112
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   113
    /**
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   114
     * Returns the bundle name for the given {@code baseName} and {@code
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   115
     * locale}.  This method is called from the default implementation of the
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   116
     * {@link #getBundle(String, Locale)} method.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   117
     *
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   118
     * @implNote The default implementation of this method is the same as the
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   119
     * implementation of
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   120
     * {@link java.util.ResourceBundle.Control#toBundleName(String, Locale)}.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   121
     *
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   122
     * @param baseName the base name of the resource bundle, a fully qualified
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   123
     *                 class name
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   124
     * @param locale   the locale for which a resource bundle should be loaded
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   125
     * @return the bundle name for the resource bundle
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   126
     */
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   127
    protected String toBundleName(String baseName, Locale locale) {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   128
        return ResourceBundle.Control.getControl(ResourceBundle.Control.FORMAT_DEFAULT)
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   129
                   .toBundleName(baseName, locale);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   130
    }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   131
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   132
    /**
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   133
     * Returns a {@code ResourceBundle} for the given {@code baseName} and
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   134
     * {@code locale}. This method calls the
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   135
     * {@link #toBundleName(String, Locale) toBundleName} method to get the
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   136
     * bundle name for the {@code baseName} and {@code locale}. The formats
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   137
     * specified by the constructor will be searched to find the resource
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   138
     * bundle.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   139
     *
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   140
     * @implNote
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   141
     * The default implementation of this method will find the resource bundle
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   142
     * local to the module of this provider.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   143
     *
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   144
     * @param baseName the base bundle name of the resource bundle, a fully
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   145
     *                 qualified class name.
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   146
     * @param locale the locale for which the resource bundle should be instantiated
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   147
     * @return {@code ResourceBundle} of the given {@code baseName} and {@code locale},
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   148
     *         or null if no resource bundle is found
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   149
     * @throws NullPointerException if {@code baseName} or {@code locale} is null
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   150
     * @throws UncheckedIOException if any IO exception occurred during resource
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   151
     *         bundle loading
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   152
     */
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   153
    @Override
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   154
    public ResourceBundle getBundle(String baseName, Locale locale) {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   155
        Module module = this.getClass().getModule();
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   156
        String bundleName = toBundleName(baseName, locale);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   157
        ResourceBundle bundle = null;
38782
ff27bc5c278e 8158604: test/java/util/ResourceBundle/modules/appbasic missing @test
mchung
parents: 36511
diff changeset
   158
36511
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   159
        for (String format : formats) {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   160
            try {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   161
                if (FORMAT_CLASS.equals(format)) {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   162
                    PrivilegedAction<ResourceBundle> pa = () ->
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   163
                                    ResourceBundleProviderSupport
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   164
                                         .loadResourceBundle(module, bundleName);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   165
                    bundle = AccessController.doPrivileged(pa, null, GET_CLASSLOADER_PERMISSION);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   166
                } else if (FORMAT_PROPERTIES.equals(format)) {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   167
                    bundle = ResourceBundleProviderSupport
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   168
                                 .loadPropertyResourceBundle(module, bundleName);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   169
                }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   170
                if (bundle != null) {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   171
                    break;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   172
                }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   173
            } catch (IOException e) {
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   174
                throw new UncheckedIOException(e);
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   175
            }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   176
        }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   177
        return bundle;
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   178
    }
9d0388c6b336 8142968: Module System implementation
alanb
parents:
diff changeset
   179
}