/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Keeps the runtime information like Service.Mode and erasure of Provider class
* about Provider endpoint. It proccess annotations to find about Service.Mode
* It also finds about parameterized type(e.g. Source, SOAPMessage, DataSource)
* of endpoint class.
*
* @author Jitendra Kotamraju
* @author Kohsuke Kawaguchi
*/
final class ProviderEndpointModel<T> {
/**
* True if this is {@link AsyncProvider}.
*/
final boolean isAsync;
/**
* In which mode does this provider operate?
*/
/**
* T of {@link Provider}<T>.
*/
/**
* User class that extends {@link Provider}.
*/
assert implementorClass != null;
? SOAPMessage.class : DataSource.class;
if (!(baseParam instanceof ParameterizedType))
throw new WebServiceException(ServerMessages.PROVIDER_NOT_PARAMETERIZED(implementorClass.getName()));
throw new WebServiceException(ServerMessages.PROVIDER_INVALID_PARAMETER_TYPE(implementorClass.getName(),types[0]));
// Illegal to have PAYLOAD && SOAPMessage
// Illegal to have PAYLOAD && DataSource
throw new IllegalArgumentException(
}
}
/**
* Is it PAYLOAD or MESSAGE ??
*
* @param c endpoint class
* @return Service.Mode.PAYLOAD or Service.Mode.MESSAGE
*/
}
}