@@ -0,0 +1,1590 @@
+/**%0A * Copyright (c) 2012 RedEngine Ltd, http://www.redengine.co.nz. All rights reserved.%0A *%0A * This program is licensed to you under the Apache License Version 2.0,%0A * and you may not use this file except in compliance with the Apache License Version 2.0.%0A * You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0.%0A *%0A * Unless required by applicable law or agreed to in writing,%0A * software distributed under the Apache License Version 2.0 is distributed on an%0A * %22AS IS%22 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.%0A */%0Apackage net.stickycode.stereotype;%0A%0Aimport java.lang.annotation.Documented;%0Aimport java.lang.annotation.ElementType;%0Aimport java.lang.annotation.Inherited;%0Aimport java.lang.annotation.Retention;%0Aimport java.lang.annotation.RetentionPolicy;%0Aimport java.lang.annotation.Target;%0A%0A/**%0A * This annotation stereotypes a class as being part of a domain and invariably being stateful and relating to the proessing%0A * of a request. It will be scoped to a thread by the container. %0A *%0A * %3Ch3%3EExample%3C/h3%3E%0A * In this example SomeComponent will be instantiated in any classpath scanned from net.stickycode.example.component or above.%0A * %3Cpre%3E%0A * package net.stickycode.example.component;%0A *%0A * &#064;StickyDomain%0A * public class SomeDomain %7B%0A * %7D%0A * %3C/pre%3E%0A */%0A@Target(ElementType.TYPE)%0A@Retention(RetentionPolicy.RUNTIME)%0A@Inherited%0A@Documented%0Apublic @interface StickyDomain %7B%0A%0A%7D%0A

Add a domain annotation for stereotyping stateful beans that have a lifecycle related to requests