12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.oracle.tools.packager;
27
28 import java.util.Collection;
29 import java.util.Iterator;
30 import java.util.ServiceLoader;
31
32
33 public interface Bundlers {
34
35 /**
36 * This convenience method will call {@link #createBundlersInstance(ClassLoader)}
37 * with the classloader that this Bundlers is loaded from.
38 *
39 * @return an instance of Bundlers loaded and configured from the current ClassLoader.
40 */
41 public static Bundlers createBundlersInstance() {
42 return createBundlersInstance(Bundlers.class.getClassLoader());
43 }
44
45 /**
46 * This convenience method will automatically load a Bundlers instance
47 * from either META-INF/services or the default
48 * {@link BasicBundlers} if none are found in
49 * the services meta-inf.
50 *
51 * After instantiating the bundlers instance it will load the default
52 * bundlers via {@link #loadDefaultBundlers()} as well as requesting
|
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25
26 package com.oracle.tools.packager;
27
28 import java.util.Collection;
29 import java.util.Iterator;
30 import java.util.ServiceLoader;
31
32 @Deprecated
33 public interface Bundlers {
34
35 /**
36 * This convenience method will call {@link #createBundlersInstance(ClassLoader)}
37 * with the classloader that this Bundlers is loaded from.
38 *
39 * @return an instance of Bundlers loaded and configured from the current ClassLoader.
40 */
41 public static Bundlers createBundlersInstance() {
42 return createBundlersInstance(Bundlers.class.getClassLoader());
43 }
44
45 /**
46 * This convenience method will automatically load a Bundlers instance
47 * from either META-INF/services or the default
48 * {@link BasicBundlers} if none are found in
49 * the services meta-inf.
50 *
51 * After instantiating the bundlers instance it will load the default
52 * bundlers via {@link #loadDefaultBundlers()} as well as requesting
|