index int64 0 0 | repo_id stringlengths 9 205 | file_path stringlengths 31 246 | content stringlengths 1 12.2M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/WebServiceContext.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws;
import javax.xml.ws.handler.MessageContext;
import java.security.Principal;
public interface WebServiceContext {
public abstract EndpointReference getEndpointReference(org.w3c.dom.Element... referenceParameters);
public abstract <T extends EndpointReference> T getEndpointReference(Class<T> clazz, org.w3c.dom.Element... referenceParameters);
public abstract MessageContext getMessageContext();
public abstract Principal getUserPrincipal();
public abstract boolean isUserInRole(String s);
}
| 1,700 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/WebServiceRef.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface WebServiceRef {
public String name() default "";
public Class type() default Object.class;
public String mappedName() default "";
public Class value() default Object.class;
public String wsdlLocation() default "";
}
| 1,701 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/Dispatch.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws;
import java.util.concurrent.Future;
public interface Dispatch<T>
extends BindingProvider {
public abstract T invoke(T obj);
public abstract Response<T> invokeAsync(T obj);
public abstract Future<?> invokeAsync(T obj, AsyncHandler<T> asynchandler);
public abstract void invokeOneWay(T obj);
}
| 1,702 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/ProtocolException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws;
public class ProtocolException extends WebServiceException {
public ProtocolException() {
}
public ProtocolException(String message) {
super(message);
}
public ProtocolException(String message, Throwable cause) {
super(message, cause);
}
public ProtocolException(Throwable cause) {
super(cause);
}
}
| 1,703 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/ServiceMode.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
public @interface ServiceMode {
public Service.Mode value() default Service.Mode.PAYLOAD;
}
| 1,704 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/Service.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws;
import javax.xml.bind.JAXBContext;
import javax.xml.namespace.QName;
import javax.xml.ws.handler.HandlerResolver;
import javax.xml.ws.spi.Provider;
import javax.xml.ws.spi.ServiceDelegate;
import java.net.URL;
import java.util.Iterator;
import java.util.concurrent.Executor;
public class Service {
public enum Mode {
MESSAGE, PAYLOAD }
protected Service(URL wsdlDocumentLocation, QName serviceName) {
delegate = Provider.provider().createServiceDelegate(wsdlDocumentLocation, serviceName, getClass());
}
public <T> T getPort(QName portName, Class<T> serviceEndpointInterface) {
return (T) delegate.getPort(portName, serviceEndpointInterface);
}
public <T> T getPort(Class<T> serviceEndpointInterface) {
return (T) delegate.getPort(serviceEndpointInterface);
}
public <T> T getPort(QName portName, Class<T> serviceEndpointInterface, WebServiceFeature... features) {
return (T) delegate.getPort(portName, serviceEndpointInterface, features);
}
public <T> T getPort(Class<T> serviceEndpointInterface, WebServiceFeature... features) {
return (T) delegate.getPort(serviceEndpointInterface, features);
}
public <T> T getPort(EndpointReference endpointReference, Class<T> serviceEndpointInterface, WebServiceFeature... features) {
return (T) delegate.getPort(endpointReference, serviceEndpointInterface, features);
}
public void addPort(QName portName, String bindingId, String endpointAddress) {
delegate.addPort(portName, bindingId, endpointAddress);
}
public <T>Dispatch<T> createDispatch(QName portName, Class<T> type, Mode mode) {
return delegate.createDispatch(portName, type, mode);
}
public Dispatch<Object> createDispatch(QName portName, JAXBContext context, Mode mode) {
return delegate.createDispatch(portName, context, mode);
}
public <T> Dispatch<T> createDispatch(QName portName, Class<T> type, Service.Mode mode, WebServiceFeature... features) {
return delegate.createDispatch(portName, type, mode, features);
}
public <T> Dispatch<T> createDispatch(EndpointReference endpointReference, Class<T> type, Service.Mode mode, WebServiceFeature... features) {
return delegate.createDispatch(endpointReference, type, mode, features);
}
public Dispatch<Object> createDispatch(QName portName, JAXBContext context, Service.Mode mode, WebServiceFeature... features) {
return delegate.createDispatch(portName, context, mode, features);
}
public Dispatch<Object> createDispatch(EndpointReference endpointReference, JAXBContext context, Service.Mode mode, WebServiceFeature... features) {
return delegate.createDispatch(endpointReference, context, mode, features);
}
public QName getServiceName() {
return delegate.getServiceName();
}
public Iterator<QName> getPorts() {
return delegate.getPorts();
}
public URL getWSDLDocumentLocation() {
return delegate.getWSDLDocumentLocation();
}
public HandlerResolver getHandlerResolver() {
return delegate.getHandlerResolver();
}
public void setHandlerResolver(HandlerResolver handlerResolver) {
delegate.setHandlerResolver(handlerResolver);
}
public Executor getExecutor() {
return delegate.getExecutor();
}
public void setExecutor(Executor executor) {
delegate.setExecutor(executor);
}
public static Service create(URL wsdlDocumentLocation, QName serviceName) {
return new Service(wsdlDocumentLocation, serviceName);
}
public static Service create(QName serviceName) {
return new Service(null, serviceName);
}
private ServiceDelegate delegate;
}
| 1,705 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/Endpoint.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws;
import javax.xml.ws.spi.Provider;
import java.util.List;
import java.util.Map;
import java.util.concurrent.Executor;
public abstract class Endpoint {
public Endpoint() {
}
public static Endpoint create(Object implementor) {
return create(null, implementor);
}
public static Endpoint create(String bindingId, Object implementor) {
return Provider.provider().createEndpoint(bindingId, implementor);
}
public abstract Binding getBinding();
public abstract Object getImplementor();
public abstract void publish(String s);
public static Endpoint publish(String address, Object implementor) {
return Provider.provider().createAndPublishEndpoint(address, implementor);
}
public abstract void publish(Object obj);
public abstract void stop();
public abstract boolean isPublished();
public abstract List<javax.xml.transform.Source> getMetadata();
public abstract void setMetadata(List<javax.xml.transform.Source> list);
public abstract Executor getExecutor();
public abstract void setExecutor(Executor executor);
public abstract Map<java.lang.String, java.lang.Object> getProperties();
public abstract void setProperties(Map<java.lang.String, java.lang.Object> map);
public abstract EndpointReference getEndpointReference(org.w3c.dom.Element... referenceParameters);
public abstract <T extends EndpointReference> T getEndpointReference(Class<T> clazz, org.w3c.dom.Element... referenceParameters);
public static final String WSDL_SERVICE = "javax.xml.ws.wsdl.service";
public static final String WSDL_PORT = "javax.xml.ws.wsdl.port";
}
| 1,706 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/WebFault.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface WebFault {
public String name() default "";
public String targetNamespace() default "";
public String faultBean() default "";
}
| 1,707 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/Action.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Documented
@Retention(value=RetentionPolicy.RUNTIME)
@Target(value=ElementType.METHOD)
public @interface Action {
public FaultAction[] fault() default {};
public String input() default "";
public String output() default "";
}
| 1,708 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/WebServiceFeature.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws;
public abstract class WebServiceFeature {
protected boolean enabled;
protected WebServiceFeature() {
}
public abstract String getID();
public boolean isEnabled() {
return enabled;
}
}
| 1,709 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/Binding.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws;
import javax.xml.ws.handler.Handler;
import java.util.List;
public interface Binding {
public abstract String getBindingID();
public abstract List<Handler> getHandlerChain();
public abstract void setHandlerChain(List<Handler> list);
}
| 1,710 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/RespectBinding.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws;
import javax.xml.ws.spi.WebServiceFeatureAnnotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Documented
@Retention(value=RetentionPolicy.RUNTIME)
@Target(value=ElementType.TYPE)
@WebServiceFeatureAnnotation(id=RespectBindingFeature.ID, bean=RespectBindingFeature.class)
public @interface RespectBinding {
public boolean enabled() default true;
}
| 1,711 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/handler/PortInfo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.handler;
import javax.xml.namespace.QName;
public interface PortInfo {
public abstract QName getServiceName();
public abstract QName getPortName();
public abstract String getBindingID();
}
| 1,712 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/handler/MessageContext.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.handler;
import java.util.Map;
public interface MessageContext extends Map<String, Object> {
public enum Scope {
APPLICATION,
HANDLER
}
public abstract void setScope(String s, Scope scope);
public abstract Scope getScope(String s);
public static final String MESSAGE_OUTBOUND_PROPERTY = "javax.xml.ws.handler.message.outbound";
public static final String WSDL_DESCRIPTION = "javax.xml.ws.wsdl.description";
public static final String WSDL_SERVICE = "javax.xml.ws.wsdl.service";
public static final String WSDL_PORT = "javax.xml.ws.wsdl.port";
public static final String WSDL_INTERFACE = "javax.xml.ws.wsdl.interface";
public static final String WSDL_OPERATION = "javax.xml.ws.wsdl.operation";
public static final String HTTP_RESPONSE_CODE = "javax.xml.ws.http.response.code";
public static final String REFERENCE_PARAMETERS = "javax.xml.ws.reference.parameters";
public static final String HTTP_REQUEST_HEADERS = "javax.xml.ws.http.request.headers";
public static final String HTTP_RESPONSE_HEADERS = "javax.xml.ws.http.response.headers";
public static final String HTTP_REQUEST_METHOD = "javax.xml.ws.http.request.method";
public static final String SERVLET_REQUEST = "javax.xml.ws.servlet.request";
public static final String SERVLET_RESPONSE = "javax.xml.ws.servlet.response";
public static final String SERVLET_CONTEXT = "javax.xml.ws.servlet.context";
public static final String INBOUND_MESSAGE_ATTACHMENTS = "javax.xml.ws.binding.attachments.inbound";
public static final String OUTBOUND_MESSAGE_ATTACHMENTS = "javax.xml.ws.binding.attachments.outbound";
public static final String QUERY_STRING = "javax.xml.ws.http.request.querystring";
public static final String PATH_INFO = "javax.xml.ws.http.request.pathinfo";
}
| 1,713 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/handler/Handler.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.handler;
public interface Handler<C extends MessageContext> {
public abstract boolean handleMessage(C messagecontext);
public abstract boolean handleFault(C messagecontext);
public abstract void close(MessageContext messagecontext);
}
| 1,714 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/handler/LogicalMessageContext.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.handler;
import javax.xml.ws.LogicalMessage;
public interface LogicalMessageContext
extends MessageContext {
public abstract LogicalMessage getMessage();
}
| 1,715 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/handler/LogicalHandler.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.handler;
public interface LogicalHandler<C extends LogicalMessageContext>
extends Handler<C> {
}
| 1,716 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/handler/HandlerResolver.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.handler;
import java.util.List;
public interface HandlerResolver {
public abstract List<Handler> getHandlerChain(PortInfo portinfo);
}
| 1,717 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/handler | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/handler/soap/SOAPHandler.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.handler.soap;
import javax.xml.ws.handler.Handler;
import java.util.Set;
public interface SOAPHandler<T extends SOAPMessageContext>
extends Handler<T> {
public abstract Set<javax.xml.namespace.QName> getHeaders();
}
| 1,718 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/handler | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/handler/soap/SOAPMessageContext.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.handler.soap;
import javax.xml.bind.JAXBContext;
import javax.xml.namespace.QName;
import javax.xml.soap.SOAPMessage;
import javax.xml.ws.handler.MessageContext;
import java.util.Set;
public interface SOAPMessageContext
extends MessageContext {
public abstract SOAPMessage getMessage();
public abstract void setMessage(SOAPMessage soapmessage);
public abstract Object[] getHeaders(QName qname, JAXBContext jaxbcontext, boolean flag);
public abstract Set<String> getRoles();
}
| 1,719 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/wsaddressing/W3CEndpointReference.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.wsaddressing;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAnyAttribute;
import javax.xml.bind.annotation.XmlAnyElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.XmlValue;
import javax.xml.namespace.QName;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.ws.EndpointReference;
import javax.xml.ws.WebServiceException;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* <p>Java class for EndpointReferenceType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="EndpointReferenceType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <element name="Address" type="{http://www.w3.org/2005/08/addressing}AttributedURIType"/>
* <element ref="{http://www.w3.org/2005/08/addressing}ReferenceParameters" minOccurs="0"/>
* <element ref="{http://www.w3.org/2005/08/addressing}Metadata" minOccurs="0"/>
* <any/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlRootElement(name = "EndpointReference", namespace = W3CEndpointReference.NS)
@XmlType(name = "EndpointReferenceType", namespace = W3CEndpointReference.NS)
public final class W3CEndpointReference extends EndpointReference {
protected static final String NS = "http://www.w3.org/2005/08/addressing";
private static JAXBContext jaxbContext;
@XmlElement(name = "Address", namespace = NS, required = true)
private AttributedURIType address;
@XmlElement(name = "ReferenceParameters", namespace = NS)
private ReferenceParametersType referenceParameters;
@XmlElement(name = "Metadata", namespace = NS)
private MetadataType metadata;
@XmlAnyElement(lax = true)
private List<Object> any;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
static {
try {
jaxbContext = JAXBContext.newInstance(W3CEndpointReference.class);
}
catch (Exception e) {
//TODO NLS enable
throw new WebServiceException("JAXBContext creation failed.", e);
}
}
protected W3CEndpointReference() {
}
public W3CEndpointReference(Source eprInfoset) {
super();
try {
Unmarshaller um = jaxbContext.createUnmarshaller();
W3CEndpointReference w3cEPR = (W3CEndpointReference) um.unmarshal(eprInfoset);
address = w3cEPR.address;
referenceParameters = w3cEPR.referenceParameters;
metadata = w3cEPR.metadata;
any = w3cEPR.any;
otherAttributes.putAll(w3cEPR.otherAttributes);
}
catch (Exception e) {
//TODO NLS enable.
throw new WebServiceException("Unable to create W3C endpoint reference.", e);
}
}
@Override
public void writeTo(Result result) {
if (result == null) {
//TODO NLS enable
throw new IllegalArgumentException("Null is not allowed.");
}
try {
Marshaller m = jaxbContext.createMarshaller();
m.setProperty(Marshaller.JAXB_FRAGMENT, Boolean.TRUE);
m.marshal(this, result);
}
catch (Exception e) {
//TODO NLS enable
throw new WebServiceException("writeTo failure.", e);
}
}
/**
* <p>Java class for AttributedURIType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="AttributedURIType">
* <simpleContent>
* <extension base="<http://www.w3.org/2001/XMLSchema>anyURI">
* </extension>
* </simpleContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AttributedURIType", propOrder = {
"value"
})
private static class AttributedURIType {
@XmlValue
@XmlSchemaType(name = "anyURI")
protected String value;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
public AttributedURIType() {
}
}
/**
* <p>Java class for ReferenceParametersType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="ReferenceParametersType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <any/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ReferenceParametersType", propOrder = {
"any"
})
private static class ReferenceParametersType {
@XmlAnyElement(lax = true)
protected List<Object> any;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
public ReferenceParametersType() {
}
}
/**
* <p>Java class for MetadataType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <complexType name="MetadataType">
* <complexContent>
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* <sequence>
* <any/>
* </sequence>
* </restriction>
* </complexContent>
* </complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MetadataType", propOrder = {
"any"
})
private static class MetadataType {
@XmlAnyElement(lax = true)
protected List<Object> any;
@XmlAnyAttribute
private Map<QName, String> otherAttributes = new HashMap<QName, String>();
public MetadataType() {
}
}
}
| 1,720 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/wsaddressing/W3CEndpointReferenceBuilder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.wsaddressing;
import org.w3c.dom.Element;
import javax.xml.namespace.QName;
import javax.xml.ws.spi.Provider;
import java.util.ArrayList;
import java.util.List;
public final class W3CEndpointReferenceBuilder {
private String address;
private QName serviceName;
private QName endpointName;
private String wsdlDocumentLocation;
private List<Element> referenceParameters;
private List<Element> metadataElements;
public W3CEndpointReferenceBuilder() {
}
public W3CEndpointReferenceBuilder address(String address) {
this.address = address;
return this;
}
public W3CEndpointReferenceBuilder serviceName(QName serviceName) {
this.serviceName = serviceName;
return this;
}
public W3CEndpointReferenceBuilder endpointName(QName endpointName) {
//TODO NLS enable
if (this.serviceName == null) {
throw new IllegalStateException("The endpoint qname cannot be set before the service qname.");
}
this.endpointName = endpointName;
return this;
}
public W3CEndpointReferenceBuilder wsdlDocumentLocation(String wsdlDocumentLocation) {
this.wsdlDocumentLocation = wsdlDocumentLocation;
return this;
}
public W3CEndpointReferenceBuilder referenceParameter(Element referenceParameter) {
//TODO NLS enable
if (referenceParameter == null) {
throw new IllegalArgumentException("A reference parameter cannot be null.");
}
if (this.referenceParameters == null) {
this.referenceParameters = new ArrayList<Element>();
}
this.referenceParameters.add(referenceParameter);
return this;
}
public W3CEndpointReferenceBuilder metadata(Element metadataElement) {
//TODO NLS enable
if (metadataElement == null) {
throw new IllegalArgumentException("A metadata element cannot be null.");
}
if (this.metadataElements == null) {
this.metadataElements = new ArrayList<Element>();
}
this.metadataElements.add(metadataElement);
return this;
}
public W3CEndpointReference build() {
return Provider.provider().createW3CEndpointReference(address,
serviceName,
endpointName,
metadataElements,
wsdlDocumentLocation,
referenceParameters);
}
@Override
public String toString() {
// TODO Auto-generated method stub
return super.toString();
}
}
| 1,721 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/wsaddressing/package-info.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
@javax.xml.bind.annotation.XmlSchema(namespace = "http://www.w3.org/2005/08/addressing",
location = "http://www.w3.org/2006/03/addressing/ws-addr.xsd")
package javax.xml.ws.wsaddressing;
| 1,722 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/soap/SOAPBinding.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.soap;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPFactory;
import javax.xml.ws.Binding;
import java.util.Set;
public interface SOAPBinding
extends Binding {
public abstract Set<java.lang.String> getRoles();
public abstract void setRoles(Set<java.lang.String> set);
public abstract boolean isMTOMEnabled();
public abstract void setMTOMEnabled(boolean flag);
public abstract SOAPFactory getSOAPFactory();
public abstract MessageFactory getMessageFactory();
public static final String SOAP11HTTP_BINDING = "http://schemas.xmlsoap.org/wsdl/soap/http";
public static final String SOAP12HTTP_BINDING = "http://www.w3.org/2003/05/soap/bindings/HTTP/";
public static final String SOAP11HTTP_MTOM_BINDING = "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true";
public static final String SOAP12HTTP_MTOM_BINDING = "http://www.w3.org/2003/05/soap/bindings/HTTP/?mtom=true";
}
| 1,723 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/soap/Addressing.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.soap;
import javax.xml.ws.spi.WebServiceFeatureAnnotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Documented
@Retention(value=RetentionPolicy.RUNTIME)
@Target(value=ElementType.TYPE)
@WebServiceFeatureAnnotation(id=AddressingFeature.ID, bean=AddressingFeature.class)
public @interface Addressing {
public boolean enabled() default true;
public boolean required() default false;
}
| 1,724 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/soap/MTOMFeature.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.soap;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceFeature;
public final class MTOMFeature extends WebServiceFeature {
public static final String ID = "http://www.w3.org/2004/08/soap/features/http-optimization";
protected int threshold;
public MTOMFeature() {
this(true, 0);
}
public MTOMFeature(boolean enabled) {
this(enabled, 0);
}
public MTOMFeature(int threshold) {
this(true, threshold);
}
public MTOMFeature(boolean enabled, int threshold) {
super();
//TODO NLS enable
if (threshold < 0)
throw new WebServiceException("MTOM threshold size cannot be less than zero. It was " + threshold);
this.enabled = enabled;
this.threshold = threshold;
}
public int getThreshold() {
return threshold;
}
@Override
public String getID() {
return ID;
}
}
| 1,725 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/soap/AddressingFeature.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.soap;
import javax.xml.ws.WebServiceFeature;
public final class AddressingFeature extends WebServiceFeature {
public static final String ID = "http://www.w3.org/2005/08/addressing/module";
protected boolean required;
public AddressingFeature() {
this(true, false);
}
public AddressingFeature(boolean enabled) {
this(enabled, false);
}
public AddressingFeature(boolean enabled, boolean required) {
this.enabled = enabled;
this.required = required;
}
public boolean isRequired() {
return required;
}
@Override
public String getID() {
return ID;
}
}
| 1,726 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/soap/SOAPFaultException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.soap;
import javax.xml.soap.SOAPFault;
import javax.xml.ws.ProtocolException;
public class SOAPFaultException extends ProtocolException {
public SOAPFaultException(SOAPFault fault) {
super(fault.getFaultString());
this.fault = fault;
}
public SOAPFault getFault() {
return fault;
}
private SOAPFault fault;
}
| 1,727 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/soap/MTOM.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.soap;
import javax.xml.ws.spi.WebServiceFeatureAnnotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Documented
@Retention(value=RetentionPolicy.RUNTIME)
@Target(value=ElementType.TYPE)
@WebServiceFeatureAnnotation(id=MTOMFeature.ID, bean=MTOMFeature.class)
public @interface MTOM {
public boolean enabled() default true;
public int threshold() default 0;
}
| 1,728 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/spi/ServiceDelegate.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.spi;
import javax.xml.bind.JAXBContext;
import javax.xml.namespace.QName;
import javax.xml.ws.Dispatch;
import javax.xml.ws.EndpointReference;
import javax.xml.ws.Service;
import javax.xml.ws.WebServiceFeature;
import javax.xml.ws.handler.HandlerResolver;
import java.net.URL;
import java.util.Iterator;
import java.util.concurrent.Executor;
public abstract class ServiceDelegate {
protected ServiceDelegate() {
}
public abstract <T> T getPort(QName qname, Class<T> class1);
public abstract <T> T getPort(Class<T> class1);
public abstract <T> T getPort(QName portName, Class<T> serviceEndpointInterface, WebServiceFeature... features);
public abstract <T> T getPort(EndpointReference endpointReference, Class<T> serviceEndpointInterface, WebServiceFeature... features);
public abstract <T> T getPort(Class<T> serviceEndpointInterface, WebServiceFeature... features);
public abstract void addPort(QName qname, String bindingId, String s);
public abstract <T>Dispatch<T> createDispatch(QName qname, Class<T> class1, Service.Mode mode);
public abstract Dispatch<Object> createDispatch(QName qname, JAXBContext jaxbcontext, javax.xml.ws.Service.Mode mode);
public abstract <T> Dispatch<T> createDispatch(QName portName, Class<T> type, Service.Mode mode, WebServiceFeature... features);
public abstract <T> Dispatch<T> createDispatch(EndpointReference endpointReference, Class<T> type, Service.Mode mode, WebServiceFeature... features);
public abstract Dispatch<Object> createDispatch(QName portName, JAXBContext context, Service.Mode mode, WebServiceFeature... features);
public abstract Dispatch<Object> createDispatch(EndpointReference endpointReference, JAXBContext context, Service.Mode mode, WebServiceFeature... features);
public abstract QName getServiceName();
public abstract Iterator<QName> getPorts();
public abstract URL getWSDLDocumentLocation();
public abstract HandlerResolver getHandlerResolver();
public abstract void setHandlerResolver(HandlerResolver handlerresolver);
public abstract Executor getExecutor();
public abstract void setExecutor(Executor executor);
}
| 1,729 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/spi/Provider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.spi;
import org.w3c.dom.Element;
import javax.xml.namespace.QName;
import javax.xml.transform.Source;
import javax.xml.ws.Endpoint;
import javax.xml.ws.EndpointReference;
import javax.xml.ws.WebServiceFeature;
import javax.xml.ws.wsaddressing.W3CEndpointReference;
import java.net.URL;
import java.util.List;
public abstract class Provider {
protected Provider() {
}
public static Provider provider() {
return (Provider) FactoryFinder.find(JAXWSPROVIDER_PROPERTY, DEFAULT_JAXWSPROVIDER);
}
public abstract ServiceDelegate createServiceDelegate(URL url, QName qname, Class class1);
public abstract Endpoint createEndpoint(String s, Object obj);
public abstract Endpoint createAndPublishEndpoint(String s, Object obj);
public abstract EndpointReference readEndpointReference(Source eprInfoset);
public abstract <T> T getPort(EndpointReference endpointReference, Class<T> serviceEndpointInterface, WebServiceFeature... features);
public abstract W3CEndpointReference createW3CEndpointReference(String address,
QName serviceName,
QName portName,
List<Element> metadata,
String wsdlDocumentLocation,
List<Element> referenceParameters);
public static final String JAXWSPROVIDER_PROPERTY = "javax.xml.ws.spi.Provider";
private static final String DEFAULT_JAXWSPROVIDER = "org.apache.axis2.jaxws.spi.Provider";
}
| 1,730 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/spi/WebServiceFeatureAnnotation.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.spi;
import javax.xml.ws.WebServiceFeature;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Documented
@Retention(value=RetentionPolicy.RUNTIME)
@Target(value=ElementType.ANNOTATION_TYPE)
public @interface WebServiceFeatureAnnotation {
public String id();
public Class<? extends WebServiceFeature> bean();
}
| 1,731 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/spi/FactoryFinder.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.spi;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.security.PrivilegedAction;
import java.util.Properties;
/**
* This code is designed to implement the pluggability
* feature and is designed to both compile and run on JDK version 1.1 and
* later. The code also runs both as part of an unbundled jar file and
* when bundled as part of the JDK.
* <p/>
* This class is duplicated for each subpackage so keep it in sync.
* It is package private and therefore is not exposed as part of the JAXWS
* API.
*/
class FactoryFinder {
/**
* Set to true for debugging.
*/
private static final boolean debug = false;
private static void debugPrintln(String msg) {
if (debug) {
System.err.println("Factory Finder:" + msg);
}
}
/**
* Figure out which ClassLoader to use. For JDK 1.2 and later use
* the context ClassLoader.
*
* @return the <code>ClassLoader</code>
* @throws ConfigurationError if this class is unable to work with the
* host JDK
*/
private static ClassLoader findClassLoader()
throws ConfigurationError {
// REVIEW This doPriv block may be unnecessary because this method is private and
// the caller already has a doPriv. I added the doPriv in case someone changes the
// visibility of this method to non-private.
ClassLoader cl = (ClassLoader)
doPrivileged( new PrivilegedAction() {
public Object run() {
Method m = null;
try {
m = Thread.class.getMethod("getContextClassLoader", (Class []) null);
} catch (NoSuchMethodException e) {
// Assume that we are running JDK 1.1, use the current ClassLoader
debugPrintln("assuming JDK 1.1");
return FactoryFinder.class.getClassLoader();
}
try {
return (ClassLoader) m.invoke(Thread.currentThread(), (Object []) null);
} catch (IllegalAccessException e) {
// assert(false)
throw new ConfigurationError("Unexpected IllegalAccessException",
e);
} catch (InvocationTargetException e) {
// assert(e.getTargetException() instanceof SecurityException)
throw new ConfigurationError("Unexpected InvocationTargetException",
e);
}
}
}
);
return cl;
}
/**
* Create an instance of a class using the specified
* <code>ClassLoader</code>, or if that fails from the
* <code>ClassLoader</code> that loaded this class.
*
* @param className the name of the class to instantiate
* @param classLoader a <code>ClassLoader</code> to load the class from
* @return a new <code>Object</code> that is an instance of the class of
* the given name from the given class loader
* @throws ConfigurationError if the class could not be found or
* instantiated
*/
private static Object newInstance(String className,
ClassLoader classLoader)
throws ConfigurationError {
final ClassLoader iClassLoader = classLoader;
final String iClassName = className;
// REVIEW This doPriv block may be unnecessary because this method is private and
// the caller already has a doPriv. I added the doPriv in case someone changes the
// visibility of this method to non-private.
Object obj =
doPrivileged( new PrivilegedAction() {
public Object run() {
try {
if (iClassLoader != null) {
try {
return iClassLoader.loadClass(iClassName).newInstance();
} catch (ClassNotFoundException x) {
// try again
}
}
return Class.forName(iClassName).newInstance();
} catch (ClassNotFoundException x) {
throw new ConfigurationError(
"Provider " + iClassName + " not found", x);
} catch (Exception x) {
throw new ConfigurationError(
"Provider " + iClassName + " could not be instantiated: " + x,
x);
}
}
});
return obj;
}
/**
* Finds the implementation Class object in the specified order. Main
* entry point.
*
* @param factoryId Name of the factory to find, same as
* a property name
* @param fallbackClassName Implementation class name, if nothing else
* is found. Use null to mean no fallback.
* @return Class object of factory, never null
* @throws FactoryFinder.ConfigurationError
* Package private so this code can be shared.
*/
static Object find(String factoryId, String fallbackClassName)
throws ConfigurationError {
final String iFactoryId = factoryId;
final String iFallbackClassName = fallbackClassName;
Object obj =
doPrivileged( new PrivilegedAction() {
public Object run() {
debugPrintln("debug is on");
ClassLoader classLoader = findClassLoader();
// Use the system property first
try {
String systemProp =
System.getProperty(iFactoryId);
if (systemProp != null) {
debugPrintln("found system property " + systemProp);
return newInstance(systemProp, classLoader);
}
} catch (SecurityException se) {
}
// try to read from $java.home/lib/jaxws.properties
try {
String javah = System.getProperty("java.home");
String configFile = javah + File.separator +
"lib" + File.separator + "jaxws.properties";
File f = new File(configFile);
if (f.exists()) {
Properties props = new Properties();
props.load(new FileInputStream(f));
String factoryClassName = props.getProperty(iFactoryId);
debugPrintln("found java.home property " + factoryClassName);
return newInstance(factoryClassName, classLoader);
}
} catch (Exception ex) {
if (debug) ex.printStackTrace();
}
String serviceId = "META-INF/services/" + iFactoryId;
// try to find services in CLASSPATH
try {
InputStream is = null;
if (classLoader == null) {
is = ClassLoader.getSystemResourceAsStream(serviceId);
} else {
is = classLoader.getResourceAsStream(serviceId);
}
if (is != null) {
debugPrintln("found " + serviceId);
// Read the service provider name in UTF-8 as specified in
// the jar spec. Unfortunately this fails in Microsoft
// VJ++, which does not implement the UTF-8
// encoding. Theoretically, we should simply let it fail in
// that case, since the JVM is obviously broken if it
// doesn't support such a basic standard. But since there
// are still some users attempting to use VJ++ for
// development, we have dropped in a fallback which makes a
// second attempt using the platform's default encoding. In
// VJ++ this is apparently ASCII, which is a subset of
// UTF-8... and since the strings we'll be reading here are
// also primarily limited to the 7-bit ASCII range (at
// least, in English versions), this should work well
// enough to keep us on the air until we're ready to
// officially decommit from VJ++. [Edited comment from
// jkesselm]
BufferedReader rd;
try {
rd = new BufferedReader(new InputStreamReader(is, "UTF-8"));
} catch (java.io.UnsupportedEncodingException e) {
rd = new BufferedReader(new InputStreamReader(is));
}
String factoryClassName = rd.readLine();
rd.close();
if (factoryClassName != null &&
! "".equals(factoryClassName)) {
debugPrintln("loaded from services: " + factoryClassName);
return newInstance(factoryClassName, classLoader);
}
}
} catch (Exception ex) {
if (debug) ex.printStackTrace();
}
if (iFallbackClassName == null) {
throw new ConfigurationError(
"Provider for " + iFactoryId + " cannot be found", null);
}
debugPrintln("loaded from fallback value: " + iFallbackClassName);
return newInstance(iFallbackClassName, classLoader);
}
});
return obj;
}
private static Object doPrivileged(PrivilegedAction action) {
SecurityManager sm = System.getSecurityManager();
if (sm == null) {
return(action.run());
} else {
return java.security.AccessController.doPrivileged(action);
}
}
static class ConfigurationError extends Error {
// fixme: should this be refactored to use the jdk1.4 exception
// wrapping?
private Exception exception;
/**
* Construct a new instance with the specified detail string and
* exception.
*
* @param msg the Message for this error
* @param x an Exception that caused this failure, or null
*/
ConfigurationError(String msg, Exception x) {
super(msg);
this.exception = x;
}
Exception getException() {
return exception;
}
}
}
| 1,732 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/http/HTTPBinding.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.http;
import javax.xml.ws.Binding;
public interface HTTPBinding
extends Binding {
public static final String HTTP_BINDING = "http://www.w3.org/2004/08/wsdl/http";
}
| 1,733 |
0 | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws | Create_ds/geronimo-specs/geronimo-jaxws_2.1_spec/src/main/java/javax/xml/ws/http/HTTPException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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 javax.xml.ws.http;
import javax.xml.ws.ProtocolException;
public class HTTPException extends ProtocolException {
public HTTPException(int statusCode) {
this.statusCode = statusCode;
}
public int getStatusCode() {
return statusCode;
}
private int statusCode;
}
| 1,734 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/EJBTransactionRequiredException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Rev: 467742 $ $Date: 2006-10-25 12:30:38 -0700 (Wed, 25 Oct 2006) $
*/
public class EJBTransactionRequiredException extends EJBException {
public EJBTransactionRequiredException() {
super();
}
public EJBTransactionRequiredException(String message) {
super(message);
}
}
| 1,735 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/Local.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Local {
Class[] value() default {};
}
| 1,736 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/SessionBean.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.rmi.RemoteException;
/**
* @version $Rev$ $Date$
*/
public interface SessionBean extends EnterpriseBean {
void ejbActivate() throws EJBException, RemoteException;
void ejbPassivate() throws EJBException, RemoteException;
void ejbRemove() throws EJBException, RemoteException;
void setSessionContext(SessionContext ctx) throws EJBException, RemoteException;
}
| 1,737 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/DuplicateKeyException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Rev$ $Date$
*/
public class DuplicateKeyException extends CreateException {
public DuplicateKeyException() {
super();
}
public DuplicateKeyException(String message) {
super(message);
}
}
| 1,738 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/FinderException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Rev$ $Date$
*/
public class FinderException extends Exception {
public FinderException() {
super();
}
public FinderException(String message) {
super(message);
}
}
| 1,739 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/HomeHandle.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.io.Serializable;
import java.rmi.RemoteException;
/**
* @version $Rev$ $Date$
*/
public interface HomeHandle extends Serializable {
EJBHome getEJBHome() throws RemoteException;
}
| 1,740 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/ConcurrentAccessTimeoutException.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Revision$ $Date$
*/
public class ConcurrentAccessTimeoutException extends javax.ejb.ConcurrentAccessException {
public ConcurrentAccessTimeoutException() {
}
public ConcurrentAccessTimeoutException(String string) {
super(string);
}
}
| 1,741 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/Init.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Init {
String value() default "";
}
| 1,742 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/BeforeCompletion.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
@Target(value = METHOD)
@Retention(value = RUNTIME)
public @interface BeforeCompletion {
}
| 1,743 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/AsyncResult.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.TimeoutException;
public final class AsyncResult<V> implements Future<V> {
private final V result;
public AsyncResult(V result) {
this.result = result;
}
public boolean cancel(boolean mayInterruptIfRunning) {
throw new IllegalStateException();
}
public V get() throws InterruptedException, ExecutionException {
return result;
}
public V get(long timeout, TimeUnit unit) throws InterruptedException,
ExecutionException, TimeoutException {
return result;
}
public boolean isCancelled() {
return false;
}
public boolean isDone() {
return true;
}
}
| 1,744 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/LocalHome.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface LocalHome {
Class value();
}
| 1,745 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/EJBHome.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.rmi.Remote;
import java.rmi.RemoteException;
/**
* @version $Rev$ $Date$
*/
public interface EJBHome extends Remote {
EJBMetaData getEJBMetaData() throws RemoteException;
HomeHandle getHomeHandle() throws RemoteException;
void remove(Handle handle) throws RemoteException, RemoveException;
void remove(Object primaryKey) throws RemoteException, RemoveException;
}
| 1,746 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/NoSuchEntityException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Rev$ $Date$
*/
public class NoSuchEntityException extends EJBException {
public NoSuchEntityException() {
super();
}
public NoSuchEntityException(Exception ex) {
super(ex);
}
public NoSuchEntityException(String message) {
super(message);
}
}
| 1,747 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/Asynchronous.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
@Target(value = {METHOD, TYPE})
@Retention(value = RUNTIME)
public @interface Asynchronous {
}
| 1,748 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/TimedObject.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Rev$ $Date$
*/
public interface TimedObject {
void ejbTimeout(Timer timer);
}
| 1,749 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/AccessTimeout.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;
@Target(value = {METHOD, TYPE})
@Retention(value = RUNTIME)
public @interface AccessTimeout {
long value();
TimeUnit unit() default TimeUnit.MILLISECONDS;
}
| 1,750 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/TransactionManagementType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Rev$ $Date$
*/
public enum TransactionManagementType {
CONTAINER,
BEAN;}
| 1,751 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/DependsOn.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE})
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
public @interface DependsOn {
String[] value();
}
| 1,752 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/ConcurrencyManagement.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import static javax.ejb.ConcurrencyManagementType.CONTAINER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import static java.lang.annotation.ElementType.TYPE;
@java.lang.annotation.Target(value = {TYPE})
@java.lang.annotation.Retention(value = RUNTIME)
public @interface ConcurrencyManagement {
javax.ejb.ConcurrencyManagementType value() default CONTAINER;
}
| 1,753 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/AfterCompletion.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
@Target(value = METHOD)
@Retention(value = RUNTIME)
public @interface AfterCompletion {
}
| 1,754 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/ObjectNotFoundException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Rev$ $Date$
*/
public class ObjectNotFoundException extends FinderException {
public ObjectNotFoundException() {
super();
}
public ObjectNotFoundException(String message) {
super(message);
}
}
| 1,755 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/EJBs.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface EJBs {
EJB[] value();
}
| 1,756 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/Schedule.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
@Target(value = METHOD)
@Retention(value = RUNTIME)
public @interface Schedule {
String dayOfMonth() default "*";
String dayOfWeek() default "*";
String hour() default "0";
String info() default "";
String minute() default "0";
String month() default "*";
boolean persistent() default true;
String second() default "0";
java.lang.String timezone() default "";
java.lang.String year() default "*";
}
| 1,757 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/Remote.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Remote {
Class[] value() default {};
}
| 1,758 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/MessageDrivenContext.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.util.Map;
/**
* @version $Rev$ $Date$
*/
public interface MessageDrivenContext extends EJBContext {
}
| 1,759 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/IllegalLoopbackException.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Revision$ $Date$
*/
public class IllegalLoopbackException extends javax.ejb.ConcurrentAccessException {
public IllegalLoopbackException() {
}
public IllegalLoopbackException(String string) {
super(string);
}
}
| 1,760 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/ScheduleExpression.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.io.Serializable;
import java.util.Date;
public class ScheduleExpression implements Serializable {
private static final long serialVersionUID = -3813254457230997879L;
private String dayOfMonth = "*";
private String dayOfWeek = "*";
private String hour = "0";
private String minute = "0";
private String month = "*";
private String second = "0";
private String year = "*";
private String timezone;
private Date start;
private Date end;
public ScheduleExpression dayOfMonth(int d) {
dayOfMonth = Integer.toString(d);
return this;
}
public ScheduleExpression dayOfMonth(String d) {
dayOfMonth = d;
return this;
}
public ScheduleExpression dayOfWeek(int d) {
dayOfWeek = Integer.toString(d);
return this;
}
public ScheduleExpression dayOfWeek(String d) {
dayOfWeek = d;
return this;
}
public ScheduleExpression end(Date e) {
end = e;
return this;
}
public String getDayOfMonth() {
return dayOfMonth;
}
public String getDayOfWeek() {
return dayOfWeek;
}
public Date getEnd() {
return end;
}
public String getHour() {
return hour;
}
public String getMinute() {
return minute;
}
public String getMonth() {
return month;
}
public String getSecond() {
return second;
}
public Date getStart() {
return start;
}
public String getYear() {
return year;
}
public String getTimezone() {
return timezone;
}
public ScheduleExpression hour(int h) {
hour = Integer.toString(h);
return this;
}
public ScheduleExpression hour(String h) {
hour = h;
return this;
}
public ScheduleExpression minute(int m) {
minute = Integer.toString(m);
return this;
}
public ScheduleExpression minute(String m) {
minute = m;
return this;
}
public ScheduleExpression month(int m) {
month = Integer.toString(m);
return this;
}
public ScheduleExpression month(String m) {
month = m;
return this;
}
public ScheduleExpression second(int s) {
second = Integer.toString(s);
return this;
}
public ScheduleExpression second(String s) {
second = s;
return this;
}
public ScheduleExpression start(Date s) {
start = s;
return this;
}
public ScheduleExpression year(int y) {
year = Integer.toString(y);
return this;
}
public ScheduleExpression year(String y) {
year = y;
return this;
}
/**
* See http://en.wikipedia.org/wiki/List_of_zoneinfo_timezones for valid timezones
* @param t
* @return
*/
public ScheduleExpression timezone(String t) {
timezone = t;
return this;
}
}
| 1,761 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/EJBObject.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.rmi.Remote;
import java.rmi.RemoteException;
/**
* @version $Rev$ $Date$
*/
public interface EJBObject extends Remote {
EJBHome getEJBHome() throws RemoteException;
Handle getHandle() throws RemoteException;
Object getPrimaryKey() throws RemoteException;
boolean isIdentical(EJBObject obj) throws RemoteException;
void remove() throws RemoteException, RemoveException;
}
| 1,762 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/TimerService.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.io.Serializable;
import java.util.Collection;
import java.util.Date;
/**
* @version $Rev$ $Date$
*/
public interface TimerService {
Timer createTimer(Date initialExpiration, long intervalDuration, Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException;
Timer createTimer(Date expiration, Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException;
Timer createTimer(long initialDuration, long intervalDuration, Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException;
Timer createTimer(long duration, Serializable info) throws IllegalArgumentException, IllegalStateException, EJBException;
Collection<Timer> getTimers() throws IllegalStateException, EJBException;
Timer createSingleActionTimer(long duration, TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException;
Timer createSingleActionTimer(java.util.Date expiration, TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException;
Timer createIntervalTimer(long initialDuration, long intervalDuration, TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException;
Timer createIntervalTimer(java.util.Date initialExpiration, long intervalDuration, TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException;
Timer createCalendarTimer(ScheduleExpression schedule) throws IllegalArgumentException, IllegalStateException, EJBException;
Timer createCalendarTimer(ScheduleExpression schedule, TimerConfig timerConfig) throws IllegalArgumentException, IllegalStateException, EJBException;
}
| 1,763 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/Stateless.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import static java.lang.annotation.ElementType.TYPE;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Target;
/**
* @version $Rev$ $Date$
*/
@Target(TYPE)
@Retention(RUNTIME)
public @interface Stateless {
String name() default "";
String mappedName() default "";
String description() default "";
}
| 1,764 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/Remove.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Remove {
boolean retainIfException() default false;
}
| 1,765 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/Singleton.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE})
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
public @interface Singleton {
java.lang.String name() default "";
java.lang.String mappedName() default "";
java.lang.String description() default "";
}
| 1,766 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/EJBMetaData.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Rev$ $Date$
*/
public interface EJBMetaData {
EJBHome getEJBHome();
Class getHomeInterfaceClass();
Class getPrimaryKeyClass();
Class getRemoteInterfaceClass();
boolean isSession();
boolean isStatelessSession();
}
| 1,767 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/TransactionAttribute.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface TransactionAttribute {
TransactionAttributeType value()
default TransactionAttributeType.REQUIRED;
}
| 1,768 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/Schedules.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
@Target(value = METHOD)
@Retention(value = RUNTIME)
public @interface Schedules {
Schedule[] value();
}
| 1,769 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/AfterBegin.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
@Target(value = METHOD)
@Retention(value = RUNTIME)
public @interface AfterBegin {
}
| 1,770 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/PrePassivate.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface PrePassivate {
}
| 1,771 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/MessageDrivenBean.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Rev$ $Date$
*/
public interface MessageDrivenBean extends EnterpriseBean {
void ejbRemove() throws EJBException;
void setMessageDrivenContext(MessageDrivenContext ctx) throws EJBException;
}
| 1,772 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/Timeout.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Timeout {
}
| 1,773 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/NoSuchObjectLocalException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Rev$ $Date$
*/
public class NoSuchObjectLocalException extends EJBException {
public NoSuchObjectLocalException() {
super();
}
public NoSuchObjectLocalException(String message) {
super(message);
}
public NoSuchObjectLocalException(String message, Exception ex) {
super(message, ex);
}
}
| 1,774 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/Timer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.io.Serializable;
import java.util.Date;
/**
* @version $Rev$ $Date$
*/
public interface Timer {
void cancel() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
long getTimeRemaining() throws EJBException, IllegalStateException, NoSuchObjectLocalException, NoMoreTimeoutsException;
Date getNextTimeout() throws EJBException, IllegalStateException, NoSuchObjectLocalException, NoMoreTimeoutsException;
Serializable getInfo() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
TimerHandle getHandle() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
ScheduleExpression getSchedule() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
boolean isPersistent() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
boolean isCalendarTimer() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
}
| 1,775 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/NoMoreTimeoutsException.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Revision$ $Date$
*/
public class NoMoreTimeoutsException extends EJBException {
public NoMoreTimeoutsException() {
}
public NoMoreTimeoutsException(String s) {
super(s);
}
}
| 1,776 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/LockType.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
public enum LockType {
READ, WRITE;
}
| 1,777 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/EJBLocalObject.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Rev$ $Date$
*/
public interface EJBLocalObject {
EJBLocalHome getEJBLocalHome() throws EJBException;
Object getPrimaryKey() throws EJBException;
boolean isIdentical(EJBLocalObject obj) throws EJBException;
void remove() throws RemoveException, EJBException;
}
| 1,778 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/ApplicationException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface ApplicationException {
boolean rollback() default false;
boolean inherited() default true;
}
| 1,779 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/EJB.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface EJB {
String name() default "";
Class beanInterface() default Object.class;
String beanName() default "";
String mappedName() default "";
String description() default "";
String lookup() default "";
}
| 1,780 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/EntityContext.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Rev$ $Date$
*/
public interface EntityContext extends EJBContext {
EJBLocalObject getEJBLocalObject() throws IllegalStateException;
EJBObject getEJBObject() throws IllegalStateException;
Object getPrimaryKey() throws IllegalStateException;
}
| 1,781 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/EJBTransactionRolledbackException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Rev: 467742 $ $Date: 2006-10-25 12:30:38 -0700 (Wed, 25 Oct 2006) $
*/
public class EJBTransactionRolledbackException extends EJBException {
public EJBTransactionRolledbackException() {
super();
}
public EJBTransactionRolledbackException(String message, Exception ex) {
super(message, ex);
}
public EJBTransactionRolledbackException(String message) {
super(message);
}
}
| 1,782 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/TimerHandle.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.io.Serializable;
/**
* @version $Rev$ $Date$
*/
public interface TimerHandle extends Serializable {
Timer getTimer() throws EJBException, IllegalStateException, NoSuchObjectLocalException;
}
| 1,783 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/StatefulTimeout.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.util.concurrent.TimeUnit;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import static java.lang.annotation.ElementType.TYPE;
@Target(value = {TYPE})
@Retention(value = RUNTIME)
public @interface StatefulTimeout {
long value();
TimeUnit unit() default TimeUnit.MINUTES;
}
| 1,784 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/ConcurrentAccessException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Rev: 467742 $ $Date: 2006-10-25 12:30:38 -0700 (Wed, 25 Oct 2006) $
*/
public class ConcurrentAccessException extends EJBException {
public ConcurrentAccessException() {
super();
}
public ConcurrentAccessException(String message, Exception ex) {
super(message, ex);
}
public ConcurrentAccessException(String message) {
super(message);
}
}
| 1,785 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/EJBAccessException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Rev: 467742 $ $Date: 2006-10-25 12:30:38 -0700 (Wed, 25 Oct 2006) $
*/
public class EJBAccessException extends EJBException {
public EJBAccessException() {
super();
}
public EJBAccessException(String message) {
super(message);
}
}
| 1,786 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/NoSuchEJBException.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Rev: 467742 $ $Date: 2006-10-25 12:30:38 -0700 (Wed, 25 Oct 2006) $
*/
public class NoSuchEJBException extends EJBException {
public NoSuchEJBException() {
super();
}
public NoSuchEJBException(String message, Exception ex) {
super(message, ex);
}
public NoSuchEJBException(String message) {
super(message);
}
}
| 1,787 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/ConcurrencyManagementType.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Revision$ $Date$
*/
public enum ConcurrencyManagementType {
CONTAINER,
BEAN;
}
| 1,788 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/EJBContext.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.security.Identity;
import java.security.Principal;
import java.util.Properties;
import java.util.Map;
import javax.transaction.UserTransaction;
/**
* @version $Rev$ $Date$
*/
public interface EJBContext {
EJBHome getEJBHome();
EJBLocalHome getEJBLocalHome();
/**
* @deprecated
*/
Properties getEnvironment();
/**
* @deprecated
*/
Identity getCallerIdentity();
Principal getCallerPrincipal();
/**
* @deprecated
*/
boolean isCallerInRole(Identity role);
boolean isCallerInRole(String roleName);
UserTransaction getUserTransaction() throws IllegalStateException;
void setRollbackOnly() throws IllegalStateException;
boolean getRollbackOnly() throws IllegalStateException;
TimerService getTimerService() throws IllegalStateException;
Object lookup(String name);
Map<String,Object> getContextData();
}
| 1,789 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/RemoveException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Rev$ $Date$
*/
public class RemoveException extends Exception {
public RemoveException() {
super();
}
public RemoveException(String message) {
super(message);
}
}
| 1,790 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/TransactionManagement.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface TransactionManagement {
TransactionManagementType value()
default TransactionManagementType.CONTAINER;
}
| 1,791 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/LocalBean.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
@Target(value = TYPE)
@Retention(value = RUNTIME)
public @interface LocalBean {
}
| 1,792 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/ActivationConfigProperty.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({})
@Retention(RetentionPolicy.RUNTIME)
public @interface ActivationConfigProperty {
String propertyName();
String propertyValue();
}
| 1,793 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/EJBLocalHome.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
/**
* @version $Rev$ $Date$
*/
public interface EJBLocalHome {
void remove(Object primaryKey) throws RemoveException, EJBException;
}
| 1,794 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/TimerConfig.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.io.Serializable;
public class TimerConfig {
private Serializable info;
private boolean persistent;
public TimerConfig() {
persistent = true;
}
public TimerConfig(Serializable info, boolean persistent) {
this.info = info;
this.persistent = persistent;
}
public Serializable getInfo() {
return info;
}
public boolean isPersistent() {
return persistent;
}
public void setInfo(Serializable i) {
info = i;
}
public void setPersistent(boolean persistent) {
this.persistent = persistent;
}
}
| 1,795 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/EnterpriseBean.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.io.Serializable;
/**
* @version $Rev$ $Date$
*/
public interface EnterpriseBean extends Serializable {
}
| 1,796 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/PostActivate.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface PostActivate {
}
| 1,797 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/Stateful.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Stateful {
String name() default "";
String mappedName() default "";
String description() default "";
}
| 1,798 |
0 | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-ejb_3.1_spec/src/main/java/javax/ejb/Startup.java | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.ejb;
@java.lang.annotation.Target(value = {java.lang.annotation.ElementType.TYPE})
@java.lang.annotation.Retention(value = java.lang.annotation.RetentionPolicy.RUNTIME)
public @interface Startup {
} | 1,799 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.