org.fabric3.binding.ws.metro.util.ClassLoaderUpdater Maven / Gradle / Ivy
/*
* Fabric3
* Copyright (c) 2009-2015 Metaform Systems
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.fabric3.binding.ws.metro.util;
/**
* Updates the application classloader with visibility to Metro classes. Metro requires a Metro proxy interface to be visible to the classloader that
* loaded the SEI class. To enable this, dynamically add the Metro extension classloader as a parent to the classloader that loaded the SEI class if
* the host supports classloader isolation. Note that the latter may be different than the application classloader (e.g. in the Maven iTest runtime,
* the SEI class will be loaded by the host classloader, not the classloader representing the application.
*/
public interface ClassLoaderUpdater {
/**
* Updates the application classloader.
*
* @param seiClass the service interface
*/
void updateClassLoader(Class> seiClass);
}