diff options
Diffstat (limited to 'tags/java-stable-20060304/spec/sca/src/main/java/org')
24 files changed, 0 insertions, 1035 deletions
diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/CurrentModuleContext.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/CurrentModuleContext.java deleted file mode 100644 index 84fb9ba95a..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/CurrentModuleContext.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca; - -/** - * Class providing access to the current ModuleContext. - * <p/> - * The current context is set by the SCA container implementation before dispatching - * a request to any component in the module. - * - * @version $Rev$ $Date$ - */ -public final class CurrentModuleContext { - private static final ThreadLocal CURRENT_CONTEXT = new InheritableThreadLocal(); - - /** - * Return the current ModuleContext. - * - * @return the current ModuleContext - */ - public static ModuleContext getContext() { - return (ModuleContext) CURRENT_CONTEXT.get(); - } - - static void setContext(ModuleContext ctx) { - CURRENT_CONTEXT.set(ctx); - } -} diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/ModuleContext.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/ModuleContext.java deleted file mode 100644 index e48235be3b..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/ModuleContext.java +++ /dev/null @@ -1,85 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca; - - -/** - * @version $Rev$ $Date$ - */ -public interface ModuleContext { - - /** - * Returns the name of the module. - * - * @return the name of the module - */ - String getName(); - - /** - * Returns the absolute URI of the module component. - * - * @return the absolute URI of the module component - */ - String getURI(); - -//FIXME This is not implemented yet, we need the SCA spec to define the metadata model first. -// /** -// * Returns the Module metadata object. -// * This represents the root <module> element in the SCA module definition. -// * -// * @return the module metadata object -// */ -// Module getMetaData(); - - /** - * Returns the request context that corresponds to the last remotable service invocation. - * If this is invoked from outside an SCA component then <tt>null</tt> is returned. - * - * @return the current request context - */ - RequestContext getRequestContext(); - - /** - * Returns an object implementing the interface defined for the named service. - * - * @param serviceName the name of another service in the current module - * @return an object that implements the service's interface - */ - Object locateService(String serviceName); - - /** - * Create a reference to the supplied component. - * The component must define only one service. - * - * @param self the component to be referenced - * @return a reference to the component - */ - ServiceReference createServiceReferenceForSession(Object self); - - /** - * Create a reference to the named service implemented by the supplied component. - * - * @param self the component to be referenced - * @param serviceName the service to be referenced - * @return a reference to the service - */ - ServiceReference createServiceReferenceForSession(Object self, String serviceName); - - ServiceReference newSession(String serviceName); - - ServiceReference newSession(String serviceName, Object sessionId); -} diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/NoRegisteredCallbackException.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/NoRegisteredCallbackException.java deleted file mode 100644 index 11e693f603..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/NoRegisteredCallbackException.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca; - -/** - * @version $Rev$ $Date$ - */ -public class NoRegisteredCallbackException extends ServiceRuntimeException { - private static final long serialVersionUID = 3734864942222558406L; - - public NoRegisteredCallbackException() { - } - - public NoRegisteredCallbackException(String message) { - super(message); - } - - public NoRegisteredCallbackException(String message, Throwable cause) { - super(message, cause); - } - - public NoRegisteredCallbackException(Throwable cause) { - super(cause); - } -} diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/RequestContext.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/RequestContext.java deleted file mode 100644 index e5f3ee63b1..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/RequestContext.java +++ /dev/null @@ -1,47 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca; - -import javax.security.auth.Subject; - -/** - * Interface that provides information on the current request. - * - * @version $Rev$ $Date$ - */ -public interface RequestContext { - /** - * Returns the JAAS Subject of the current request. - * - * @return the Subject of the current request - */ - Subject getSecuritySubject(); - - /** - * Returns the name of the service that was invoked. - * - * @return the name of the service that was invoked - */ - String getServiceName(); - - /** - * Returns a reference to the service that was invoked. - * - * @return a reference to the service that was invoked - */ - ServiceReference getServiceReference(); -} diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/SCA.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/SCA.java deleted file mode 100644 index e74a3def11..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/SCA.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca; - -/** - * Class providing access to an SCA implementation. - * SCA implementation providers may allow applications to bootstrap an SCA environment - * by providing a publically available subclass. - * - * @version $Rev$ $Date$ - */ -public abstract class SCA { - /** - * Protected method that allows an SCA implementation to set the current module context - * that will be returned by {@link org.osoa.sca.CurrentModuleContext#getContext()}. - * - * @param ctx the new current module context - */ - protected static void setModuleContext(ModuleContext ctx) { - CurrentModuleContext.setContext(ctx); - } - - /** - * Start the SCA implementation. - * If this method completes successfully then a module context will be associated with the current thread. - */ - public abstract void start(); - - /** - * Stop the SCA implementation. - * Once this method completes (successfully or abnormally) then no module context will be associated - * with the current thread. - */ - public abstract void stop(); -} diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/ServiceReference.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/ServiceReference.java deleted file mode 100644 index 651b21a9b0..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/ServiceReference.java +++ /dev/null @@ -1,67 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca; - - -/** - * Interface that provides access to other services. - * Any ServiceReference can be cast to the business interface of the service to - * which it refers. - * - * @version $Rev$ $Date$ - */ -public interface ServiceReference { - /** - * Returns the session ID. - * - * @return the session ID - */ - Object getSessionID(); - - /** - * End the client's session with the referenced service. - */ - void endSession(); - - /** - * Returns the callback ID - * - * @return the callback ID - */ - Object getCallbackID(); - - /** - * Sets the callback ID. - * - * @param callbackID the callback ID - */ - void setCallbackID(Object callbackID); - - /** - * Returns the callback object - * - * @return the callback object - */ - Object getCallback(); - - /** - * Sets the callback object - * - * @param callback the callback object - */ - void setCallback(Object callback); -} diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/ServiceRuntimeException.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/ServiceRuntimeException.java deleted file mode 100644 index bea0af5f8d..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/ServiceRuntimeException.java +++ /dev/null @@ -1,40 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca; - - -/** - * @version $Rev$ $Date$ - */ -public class ServiceRuntimeException extends RuntimeException { - private static final long serialVersionUID = -3876058842262557092L; - - public ServiceRuntimeException() { - } - - public ServiceRuntimeException(String message) { - super(message); - } - - public ServiceRuntimeException(String message, Throwable cause) { - super(message, cause); - } - - public ServiceRuntimeException(Throwable cause) { - super(cause); - } -}
\ No newline at end of file diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/ServiceUnavailableException.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/ServiceUnavailableException.java deleted file mode 100644 index 8f51fc966c..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/ServiceUnavailableException.java +++ /dev/null @@ -1,64 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca; - -/** - * Exception used to indicate that a runtime exception occurred during the invocation of and external service. - * - * @version $Rev$ $Date$ - */ -public class ServiceUnavailableException extends ServiceRuntimeException { - - private static final long serialVersionUID = -5869397223249401047L; - - /** - * Constructs a new ServiceUnavailableException. - */ - public ServiceUnavailableException() { - super((Throwable) null); - } - - /** - * Constructs a new ServiceUnavailableException with the specified detail message. - * - * @param message The detail message (which is saved to later retrieval by the getMessage() method). - */ - public ServiceUnavailableException(String message) { - super(message); - } - - /** - * Constructs a new ServiceUnavailableException with the specified cause. - * - * @param cause The cause (which is saved to later retrieval by the getCause() method). - */ - public ServiceUnavailableException(Throwable cause) { - super(cause); - } - - /** - * Constructs a new ServiceUnavailableException with the specified detail message and cause. - * @param message - * The message (which is saved to later retrieval by the getMessage() method). - * @param cause - * The cause (which is saved to later retrieval by the getCause() method). - */ - public ServiceUnavailableException(String message, Throwable cause) { - super(message, cause); - } - -}
\ No newline at end of file diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/SessionEndedException.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/SessionEndedException.java deleted file mode 100644 index 4bdb82f9da..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/SessionEndedException.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca; - -/** - * @version $Rev$ $Date$ - */ -public class SessionEndedException extends ServiceRuntimeException { - private static final long serialVersionUID = 3734864942222558406L; - - public SessionEndedException() { - } - - public SessionEndedException(String message) { - super(message); - } - - public SessionEndedException(String message, Throwable cause) { - super(message, cause); - } - - public SessionEndedException(Throwable cause) { - super(cause); - } -} diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/Version.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/Version.java deleted file mode 100644 index 6f3ab8fb4e..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/Version.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca; - -/** - * Class providing information on the version of the specification - * supported by these API classes. - * - * @version $Rev$ $Date$ - */ -public final class Version { - /** - * Identifier for version 0.9 - */ - public static final String VERSION_0_9 = "0.9"; - - /** - * Identifier for the XML Namespace for version 0.9 - */ - public static final String XML_NAMESPACE_0_9 = "http://www.osoa.org/xmlns/sca/0.9"; - - /** - * The specification version of these API classes. - */ - public static final String API_VERSION = VERSION_0_9; - - private Version() { - } -} diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/AllowsPassByReference.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/AllowsPassByReference.java deleted file mode 100644 index c972c44468..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/AllowsPassByReference.java +++ /dev/null @@ -1,32 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca.annotations; - -import static java.lang.annotation.ElementType.METHOD; -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, METHOD}) -@Retention(RUNTIME) -public @interface AllowsPassByReference { -} - diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Callback.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Callback.java deleted file mode 100644 index 19bc9ab624..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Callback.java +++ /dev/null @@ -1,31 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca.annotations; - -import static java.lang.annotation.ElementType.*; -import java.lang.annotation.Retention; -import static java.lang.annotation.RetentionPolicy.RUNTIME; -import java.lang.annotation.Target; - -/** - * @version $Rev$ $Date$ - */ -@Target({TYPE, METHOD, FIELD}) -@Retention(RUNTIME) -public @interface Callback { - Class<?> value() default Void.class; -} diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/ComponentMetaData.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/ComponentMetaData.java deleted file mode 100644 index c35b023ea4..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/ComponentMetaData.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca.annotations; - -import static java.lang.annotation.ElementType.FIELD; -import static java.lang.annotation.ElementType.METHOD; -import java.lang.annotation.Retention; -import static java.lang.annotation.RetentionPolicy.RUNTIME; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate a field or method that is used to inject the component's metadata object. - * - * @version $Rev$ $Date$ - */ -@Target({METHOD, FIELD}) -@Retention(RUNTIME) -public @interface ComponentMetaData { -} diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/ComponentName.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/ComponentName.java deleted file mode 100644 index 46a117ea04..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/ComponentName.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca.annotations; - -import static java.lang.annotation.ElementType.FIELD; -import static java.lang.annotation.ElementType.METHOD; -import java.lang.annotation.Retention; -import static java.lang.annotation.RetentionPolicy.RUNTIME; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate a field or method that is used to inject the component's name. - * - * @version $Rev$ $Date$ - */ -@Target({METHOD, FIELD}) -@Retention(RUNTIME) -public @interface ComponentName { -} diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Context.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Context.java deleted file mode 100644 index 1139e97a96..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Context.java +++ /dev/null @@ -1,34 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca.annotations; - -import static java.lang.annotation.ElementType.FIELD; -import static java.lang.annotation.ElementType.METHOD; -import java.lang.annotation.Retention; -import static java.lang.annotation.RetentionPolicy.RUNTIME; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate a field or method that is used to inject the component's ModuleContext. - * - * @version $Rev$ $Date$ - */ -@Target({METHOD, FIELD}) -@Retention(RUNTIME) -public @interface Context { -} - diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Destroy.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Destroy.java deleted file mode 100644 index c75e0fc165..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Destroy.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca.annotations; - -import static java.lang.annotation.ElementType.METHOD; -import java.lang.annotation.Retention; -import static java.lang.annotation.RetentionPolicy.RUNTIME; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate a method that will be called by the container when the - * scope defined for the local service ends. - * - * @version $Rev$ $Date$ - */ -@Target(METHOD) -@Retention(RUNTIME) -public @interface Destroy { -} diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Init.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Init.java deleted file mode 100644 index 94745a64d2..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Init.java +++ /dev/null @@ -1,39 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca.annotations; - -import static java.lang.annotation.ElementType.METHOD; -import java.lang.annotation.Retention; -import static java.lang.annotation.RetentionPolicy.RUNTIME; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate a method that will be called by the container when the - * scope defined for the local service begins. - * - * @version $Rev$ $Date$ - */ -@Target(METHOD) -@Retention(RUNTIME) -public @interface Init { - /** - * Instructs the container when a component instance should be instantiated. - * If true, then the component will be instantiated when its scope begins; - * if false it will be instantiated when first referenced. - */ - public boolean eager() default false; -} diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Property.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Property.java deleted file mode 100644 index b9cee1765a..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Property.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca.annotations; - -import static java.lang.annotation.ElementType.FIELD; -import static java.lang.annotation.ElementType.METHOD; -import java.lang.annotation.Retention; -import static java.lang.annotation.RetentionPolicy.RUNTIME; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate a field or method that is used to inject a configuration property value. - * - * @version $Rev$ $Date$ - */ -@Target({METHOD, FIELD}) -@Retention(RUNTIME) -public @interface Property { - /** - * The name of the property. If not specified then the name will be derived from the annotated field. - */ - public String name() default ""; - - /** - * Indicates if a value must be specified. - */ - public boolean required() default false; -} - diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Reference.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Reference.java deleted file mode 100644 index f7f390da0d..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Reference.java +++ /dev/null @@ -1,43 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca.annotations; - -import static java.lang.annotation.ElementType.FIELD; -import static java.lang.annotation.ElementType.METHOD; -import java.lang.annotation.Retention; -import static java.lang.annotation.RetentionPolicy.RUNTIME; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate a field or method that is used to inject a reference. - * - * @version $Rev$ $Date$ - */ -@Target({METHOD, FIELD}) -@Retention(RUNTIME) -public @interface Reference { - /** - * The name of the reference. If not specified then the name will be derived from the annotated field. - */ - public String name() default ""; - - /** - * Indicates if a reference must be specified. - */ - public boolean required() default false; -} - diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Remotable.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Remotable.java deleted file mode 100644 index 4048e240b6..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Remotable.java +++ /dev/null @@ -1,34 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca.annotations; - -import static java.lang.annotation.ElementType.TYPE; -import java.lang.annotation.Retention; -import static java.lang.annotation.RetentionPolicy.RUNTIME; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate a Java interface as remotable. - * Remotable interfaces use pass-by-value semantics, can be published as entry points - * and used for external services. - * - * @version $Rev$ $Date$ - */ -@Target(TYPE) -@Retention(RUNTIME) -public @interface Remotable { -} diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Scope.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Scope.java deleted file mode 100644 index 2e0f474687..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Scope.java +++ /dev/null @@ -1,42 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca.annotations; - -import static java.lang.annotation.ElementType.TYPE; -import java.lang.annotation.Retention; -import static java.lang.annotation.RetentionPolicy.RUNTIME; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate a scoped service. - * - * @version $Rev$ $Date$ - */ -@Target(TYPE) -@Retention(RUNTIME) -public @interface Scope { - /** - * The name of the scope. Values currently defined by the specification are: - * <ul> - * <li>stateless (default)</li> - * <li>request</li> - * <li>session</li> - * <li>module</li> - * </ul> - */ - String value() default "stateless"; -} diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Service.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Service.java deleted file mode 100644 index 3c51316c14..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Service.java +++ /dev/null @@ -1,41 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca.annotations; - -import static java.lang.annotation.ElementType.TYPE; -import java.lang.annotation.Retention; -import static java.lang.annotation.RetentionPolicy.RUNTIME; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate the service interfaces exposed by a Java class. - * - * @version $Rev$ $Date$ - */ -@Target({TYPE}) -@Retention(RUNTIME) -public @interface Service { - /** - * Array of interfaces that should be exposed as services. - */ - Class<?>[] interfaces() default {}; - - /** - * Shortcut allowing a single interface to be exposed. - */ - Class<?> value() default Void.class; -} diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Session.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Session.java deleted file mode 100644 index 11a90d3159..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/Session.java +++ /dev/null @@ -1,49 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca.annotations; - -import static java.lang.annotation.ElementType.TYPE; -import java.lang.annotation.Retention; -import static java.lang.annotation.RetentionPolicy.RUNTIME; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate the characteristics of a session. - * - * @version $Rev$ $Date$ - */ -@Target(TYPE) -@Retention(RUNTIME) -public @interface Session { - /** - * The maximum time that can pass between operations in a single conversation. - * If this time is exceeded the container may end the conversation. - */ - public String maxIdleTime() default ""; - - /** - * The maximum time that a conversation may remain active. - * If this time is exceeded the container may end the conversation. - */ - public String maxAge() default ""; - - /** - * If true, indicates that only the user that initiated the conversation - * has the authority to continue it. - */ - public boolean singlePrincipal() default false; -} diff --git a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/SessionID.java b/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/SessionID.java deleted file mode 100644 index 86d9605bb6..0000000000 --- a/tags/java-stable-20060304/spec/sca/src/main/java/org/osoa/sca/annotations/SessionID.java +++ /dev/null @@ -1,33 +0,0 @@ -/** - * - * Copyright 2005 The Apache Software Foundation or its licensors, as applicable. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.osoa.sca.annotations; - -import static java.lang.annotation.ElementType.FIELD; -import static java.lang.annotation.ElementType.METHOD; -import java.lang.annotation.Retention; -import static java.lang.annotation.RetentionPolicy.RUNTIME; -import java.lang.annotation.Target; - -/** - * Annotation used to indicate a field or method that is used to inject the session ID. - * - * @version $Rev$ $Date$ - */ -@Target({METHOD, FIELD}) -@Retention(RUNTIME) -public @interface SessionID { -} |