diff options
Diffstat (limited to 'nashorn/org.eclipse.wst.jsdt.nashorn.extension/src/org/eclipse/wst/jsdt/nashorn/extension/loader/NashornClassLoaderConfigurator.java')
-rw-r--r-- | nashorn/org.eclipse.wst.jsdt.nashorn.extension/src/org/eclipse/wst/jsdt/nashorn/extension/loader/NashornClassLoaderConfigurator.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/nashorn/org.eclipse.wst.jsdt.nashorn.extension/src/org/eclipse/wst/jsdt/nashorn/extension/loader/NashornClassLoaderConfigurator.java b/nashorn/org.eclipse.wst.jsdt.nashorn.extension/src/org/eclipse/wst/jsdt/nashorn/extension/loader/NashornClassLoaderConfigurator.java new file mode 100644 index 000000000..e4b87f33c --- /dev/null +++ b/nashorn/org.eclipse.wst.jsdt.nashorn.extension/src/org/eclipse/wst/jsdt/nashorn/extension/loader/NashornClassLoaderConfigurator.java @@ -0,0 +1,26 @@ +/******************************************************************************* + * Copyright (c) 2016 Red Hat, Inc. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Red Hat Inc. - initial API and implementation and/or initial documentation + *******************************************************************************/ +package org.eclipse.wst.jsdt.nashorn.extension.loader; + + +import org.eclipse.osgi.internal.hookregistry.HookConfigurator; +import org.eclipse.osgi.internal.hookregistry.HookRegistry; +/** + * Registers {@link NashornLoaderHook} + * + */ +public class NashornClassLoaderConfigurator implements HookConfigurator { + + @Override + public void addHooks(HookRegistry hookRegistry) { + hookRegistry.addClassLoaderHook(new NashornLoaderHook()); + } +} |