├── impl └── src │ ├── main │ ├── resources │ │ └── META-INF │ │ │ ├── beans.xml │ │ │ └── services │ │ │ ├── org.jboss.solder.config.xml.bootstrap.XmlDocumentProvider │ │ │ ├── org.jboss.solder.resourceLoader.ResourceLoader │ │ │ ├── org.jboss.solder.servlet.webxml.WebXmlLocator │ │ │ ├── org.jboss.solder.servlet.resource.WebResourceLocationProvider │ │ │ ├── org.jboss.solder.beanManager.BeanManagerProvider │ │ │ └── javax.enterprise.inject.spi.Extension │ └── java │ │ └── org │ │ └── jboss │ │ └── solder │ │ ├── servlet │ │ ├── exception │ │ │ └── handler │ │ │ │ └── ExceptionResponses.java │ │ └── http │ │ │ └── TemporalConverters.java │ │ ├── exception │ │ └── control │ │ │ └── extension │ │ │ └── package-info.java │ │ ├── config │ │ └── xml │ │ │ ├── core │ │ │ ├── BeanResultType.java │ │ │ ├── VirtualProducerField.java │ │ │ ├── XmlConfiguredBean.java │ │ │ └── XmlId.java │ │ │ ├── model │ │ │ └── ResultType.java │ │ │ ├── fieldset │ │ │ └── InlineBeanIdCreator.java │ │ │ └── parser │ │ │ └── namespace │ │ │ ├── NamespaceElementResolver.java │ │ │ └── InvalidElementException.java │ │ ├── util │ │ └── collections │ │ │ ├── package-info.java │ │ │ └── Platform.java │ │ ├── resourceLoader │ │ └── servlet │ │ │ └── package-info.java │ │ ├── support │ │ └── package-info.java │ │ ├── properties │ │ ├── FieldProperty.java │ │ ├── MethodProperty.java │ │ └── package-info.java │ │ ├── bean │ │ ├── package-info.java │ │ └── generic │ │ │ ├── GenericMarkerLiteral.java │ │ │ └── InjectGenericLiteral.java │ │ ├── reflection │ │ └── annotated │ │ │ └── package-info.java │ │ └── literal │ │ ├── MapperLiteral.java │ │ ├── GenericLiteral.java │ │ └── ResolverLiteral.java │ └── test │ └── java │ └── org │ └── jboss │ └── solder │ └── test │ ├── reflection │ └── annotated │ │ ├── Cat.java │ │ └── NamedAnnotationRedefiner.java │ └── util │ ├── SimpleAnnotation.java │ ├── IntMemberAnnotation.java │ └── AnnotatedClass.java ├── testsuite ├── src │ └── test │ │ ├── resources │ │ ├── com │ │ │ └── acme │ │ │ │ ├── foo1 │ │ │ │ └── foo2.properties │ │ ├── META-INF │ │ │ ├── services │ │ │ │ ├── javax.el.ExpressionFactory │ │ │ │ └── org.jboss.solder.config.xml.bootstrap.XmlDocumentProvider │ │ │ └── config-beans.xml │ │ └── org │ │ │ └── jboss │ │ │ └── solder │ │ │ ├── test │ │ │ ├── messages │ │ │ │ └── BirdMessages.i18n_fr.properties │ │ │ └── bean │ │ │ │ └── generic │ │ │ │ └── alternative │ │ │ │ └── beans.xml │ │ │ ├── config │ │ │ └── xml │ │ │ │ └── test │ │ │ │ └── common │ │ │ │ ├── virtualproducer │ │ │ │ └── virtualproducer.xml │ │ │ │ ├── constructor │ │ │ │ ├── fieldset │ │ │ │ ├── el-set-field-value-beans.xml │ │ │ │ ├── array-set-field-value-beans.xml │ │ │ │ ├── colection-set-field-value-beans.xml │ │ │ │ ├── inline-bean-field-value-beans.xml │ │ │ │ ├── map-set-field-value-beans.xml │ │ │ │ └── properties-set-field-value-beans.xml │ │ │ │ ├── interceptor │ │ │ │ └── interceptor-beans.xml │ │ │ │ ├── injection │ │ │ │ ├── producer-field-value-beans.xml │ │ │ │ └── qualifier-attributes-test-beans.xml │ │ │ │ ├── types │ │ │ │ └── types-test-beans.xml │ │ │ │ ├── stereotype │ │ │ │ └── stereotype-beans.xml │ │ │ │ ├── method │ │ │ │ └── primitive-method-beans.xml │ │ │ │ └── simple │ │ │ │ ├── simple-beans.xml │ │ │ │ └── empty-root-namespace-beans.xml │ │ │ └── exception │ │ │ └── control │ │ │ └── test │ │ │ └── common │ │ │ └── interceptor │ │ │ └── beans.xml │ │ └── java │ │ ├── org │ │ └── jboss │ │ │ └── solder │ │ │ ├── servlet │ │ │ └── test │ │ │ │ └── weld │ │ │ │ └── http │ │ │ │ └── Suit.java │ │ │ ├── test │ │ │ ├── logging │ │ │ │ ├── BaldEagle.java │ │ │ │ ├── Owl.java │ │ │ │ ├── Hawk.java │ │ │ │ ├── NonBean.java │ │ │ │ └── Sparrow.java │ │ │ ├── core │ │ │ │ ├── package-info.java │ │ │ │ ├── Dog.java │ │ │ │ ├── veto │ │ │ │ │ ├── Tiger.java │ │ │ │ │ └── package-info.java │ │ │ │ ├── Greyhound.java │ │ │ │ ├── BorderCollie.java │ │ │ │ ├── requires │ │ │ │ │ ├── CommonInterface.java │ │ │ │ │ ├── beans │ │ │ │ │ │ ├── pkg │ │ │ │ │ │ │ ├── OptionalBeanWithPackageLevelDependencies.java │ │ │ │ │ │ │ └── package-info.java │ │ │ │ │ │ └── package-info.java │ │ │ │ │ ├── Lion.java │ │ │ │ │ └── Tiger.java │ │ │ │ ├── NamedBean.java │ │ │ │ ├── fullyqualified │ │ │ │ │ ├── package-info.java │ │ │ │ │ └── FullyQualifiedFromPackageNamedBean.java │ │ │ │ ├── FullyQualifiedNamedBean.java │ │ │ │ ├── InstalledService.java │ │ │ │ ├── FullyQualifiedCustomNamedBean.java │ │ │ │ ├── FullyQualifiedToTargetNamedBean.java │ │ │ │ └── RaceTrack.java │ │ │ ├── interceptor │ │ │ │ └── Foo.java │ │ │ ├── bean │ │ │ │ ├── generic │ │ │ │ │ ├── field │ │ │ │ │ │ ├── Burt.java │ │ │ │ │ │ ├── BurtSubclass.java │ │ │ │ │ │ ├── Wobble.java │ │ │ │ │ │ ├── Plugh.java │ │ │ │ │ │ └── Corge.java │ │ │ │ │ ├── method │ │ │ │ │ │ ├── Burt.java │ │ │ │ │ │ ├── Corge.java │ │ │ │ │ │ └── Kitchen.java │ │ │ │ │ └── tooManyGenericConfigurations │ │ │ │ │ │ ├── Baz.java │ │ │ │ │ │ ├── Corge.java │ │ │ │ │ │ └── Bar.java │ │ │ │ └── defaultbean │ │ │ │ │ ├── NonDefaultProducers.java │ │ │ │ │ ├── Vehicle.java │ │ │ │ │ └── Airplane.java │ │ │ ├── defaultbean │ │ │ │ ├── OpticalDrive.java │ │ │ │ ├── MagneticDrive.java │ │ │ │ ├── CPU.java │ │ │ │ ├── DVDDrive.java │ │ │ │ ├── GPU.java │ │ │ │ ├── HardDrive.java │ │ │ │ ├── SuperChargedCPU.java │ │ │ │ ├── BigLaptopHardDrive.java │ │ │ │ ├── WriteEvent.java │ │ │ │ └── HardDriveImpl.java │ │ │ ├── serviceHandler │ │ │ │ ├── HelloWorld.java │ │ │ │ ├── DecoratedHelloWorld.java │ │ │ │ ├── EchoDecorator.java │ │ │ │ ├── GoodbyeWorld.java │ │ │ │ ├── EchoService.java │ │ │ │ └── EchoServiceHandler.java │ │ │ ├── unwraps │ │ │ │ ├── ProducedInterface.java │ │ │ │ ├── MPType.java │ │ │ │ ├── ProducedBean.java │ │ │ │ └── Lion.java │ │ │ ├── util │ │ │ │ ├── Animals.java │ │ │ │ └── Animal.java │ │ │ └── messages │ │ │ │ ├── BirdMessages.java │ │ │ │ └── Jay.java │ │ │ ├── config │ │ │ └── xml │ │ │ │ └── test │ │ │ │ └── common │ │ │ │ ├── fieldset │ │ │ │ ├── HorseShoe.java │ │ │ │ ├── FieldValueProducer.java │ │ │ │ ├── ArrayFieldValue.java │ │ │ │ ├── MapFieldValue.java │ │ │ │ ├── PropertiesFieldValue.java │ │ │ │ ├── Sword.java │ │ │ │ └── CollectionFieldValue.java │ │ │ │ ├── simple │ │ │ │ ├── OverriddenBean.java │ │ │ │ ├── Bean3.java │ │ │ │ ├── ExtendedBean.java │ │ │ │ ├── ExtendedQualifier1.java │ │ │ │ └── ExtendedQualifier2.java │ │ │ │ ├── types │ │ │ │ ├── SomeInterface.java │ │ │ │ ├── AllowedType.java │ │ │ │ ├── RestrictedType.java │ │ │ │ └── TypeInjectedClass.java │ │ │ │ ├── method │ │ │ │ ├── DecoratedInterface.java │ │ │ │ ├── QualifierEnum.java │ │ │ │ ├── QualifiedType.java │ │ │ │ ├── MethodTarget.java │ │ │ │ ├── Decorator1.java │ │ │ │ ├── PrimitiveValueProducer.java │ │ │ │ ├── Qualifier1.java │ │ │ │ ├── Qualifier2.java │ │ │ │ ├── Qualifier3.java │ │ │ │ ├── MethodValueBean.java │ │ │ │ ├── MethodValueArrayProducer.java │ │ │ │ └── PrimitiveBean.java │ │ │ │ ├── injection │ │ │ │ ├── RecieverBean.java │ │ │ │ ├── ProducerBean.java │ │ │ │ ├── QualifierTestBean.java │ │ │ │ ├── QualifiedBean1.java │ │ │ │ └── QualifiedBean2.java │ │ │ │ ├── constructor │ │ │ │ ├── producer │ │ │ │ ├── Producer.java │ │ │ │ ├── Reciever.java │ │ │ │ └── ProducerQualifier.java │ │ │ │ ├── interceptor │ │ │ │ └── InterceptedBean.java │ │ │ │ └── stereotype │ │ │ │ └── Stereotype1.java │ │ │ └── exception │ │ │ └── control │ │ │ └── test │ │ │ └── common │ │ │ ├── interceptor │ │ │ └── CheckedException.java │ │ │ ├── extension │ │ │ ├── Account.java │ │ │ └── StereotypedHandler.java │ │ │ └── event │ │ │ └── EventQualifier.java │ │ └── NoPackageClass.java └── readme.md ├── tooling └── src │ └── main │ └── resources │ └── META-INF │ └── services │ ├── org.jboss.logging.generator.Loggers │ ├── org.jboss.logging.generator.Annotations │ ├── org.jboss.logging.generator.apt.AptHelper │ └── javax.annotation.processing.Processor ├── .gitignore ├── docs ├── readme.md └── src │ └── main │ └── docbook │ └── en-US │ └── solder-preface.xml ├── dist └── src │ └── main │ └── assembly │ ├── notice.txt │ └── readme.txt ├── api └── src │ └── main │ └── java │ └── org │ └── jboss │ └── solder │ ├── servlet │ ├── exception │ │ └── handler │ │ │ ├── SendErrorPage.java │ │ │ └── SendHttpError.java │ └── event │ │ └── Path.java │ ├── util │ ├── package-info.java │ └── service │ │ └── package-info.java │ ├── exception │ ├── filter │ │ └── package-info.java │ └── control │ │ ├── literal │ │ └── package-info.java │ │ └── package-info.java │ ├── literal │ ├── package-info.java │ ├── AnyLiteral.java │ ├── InjectLiteral.java │ ├── VetoLiteral.java │ ├── DisposesLiteral.java │ ├── ModelLiteral.java │ ├── ClientLiteral.java │ ├── DelegateLiteral.java │ ├── DefaultLiteral.java │ ├── DecoratorLiteral.java │ ├── ProducesLiteral.java │ ├── UnwrapsLiteral.java │ └── DependentLiteral.java │ └── unwraps │ └── package-info.java └── readme.md /impl/src/main/resources/META-INF/beans.xml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /testsuite/src/test/resources/com/acme/foo1: -------------------------------------------------------------------------------- 1 | foo1 -------------------------------------------------------------------------------- /testsuite/src/test/resources/com/acme/foo2.properties: -------------------------------------------------------------------------------- 1 | name Pete 2 | age=28 -------------------------------------------------------------------------------- /testsuite/src/test/resources/META-INF/services/javax.el.ExpressionFactory: -------------------------------------------------------------------------------- 1 | com.sun.el.ExpressionFactoryImpl 2 | -------------------------------------------------------------------------------- /tooling/src/main/resources/META-INF/services/org.jboss.logging.generator.Loggers: -------------------------------------------------------------------------------- 1 | org.jboss.solder.tooling.SolderLoggers -------------------------------------------------------------------------------- /testsuite/src/test/resources/org/jboss/solder/test/messages/BirdMessages.i18n_fr.properties: -------------------------------------------------------------------------------- 1 | numberOfJaysSpotted=Spotted %s geais -------------------------------------------------------------------------------- /tooling/src/main/resources/META-INF/services/org.jboss.logging.generator.Annotations: -------------------------------------------------------------------------------- 1 | org.jboss.solder.tooling.SolderAnnotations -------------------------------------------------------------------------------- /tooling/src/main/resources/META-INF/services/org.jboss.logging.generator.apt.AptHelper: -------------------------------------------------------------------------------- 1 | org.jboss.solder.tooling.AptHelperImpl -------------------------------------------------------------------------------- /tooling/src/main/resources/META-INF/services/javax.annotation.processing.Processor: -------------------------------------------------------------------------------- 1 | org.jboss.logging.generator.apt.LoggingToolsProcessor -------------------------------------------------------------------------------- /testsuite/src/test/resources/META-INF/services/org.jboss.solder.config.xml.bootstrap.XmlDocumentProvider: -------------------------------------------------------------------------------- 1 | org.jboss.solder.config.xml.test.common.NullXmlProvider 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | .settings 3 | .classpath 4 | *.iml 5 | *.ipr 6 | *.iws 7 | target 8 | test-output 9 | MANIFEST.MF 10 | transaction.log 11 | .idea 12 | *~ -------------------------------------------------------------------------------- /impl/src/main/resources/META-INF/services/org.jboss.solder.config.xml.bootstrap.XmlDocumentProvider: -------------------------------------------------------------------------------- 1 | org.jboss.solder.config.xml.bootstrap.ResourceLoaderXmlDocumentProvider 2 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/servlet/test/weld/http/Suit.java: -------------------------------------------------------------------------------- 1 | package org.jboss.solder.servlet.test.weld.http; 2 | 3 | public enum Suit { 4 | HEARTS, SPADES, CLUBS, DIAMONDS; 5 | } 6 | -------------------------------------------------------------------------------- /impl/src/main/resources/META-INF/services/org.jboss.solder.resourceLoader.ResourceLoader: -------------------------------------------------------------------------------- 1 | org.jboss.solder.resourceLoader.ClasspathResourceLoader 2 | org.jboss.solder.resourceLoader.DelegatingResourceLoader 3 | -------------------------------------------------------------------------------- /impl/src/test/java/org/jboss/solder/test/reflection/annotated/Cat.java: -------------------------------------------------------------------------------- 1 | package org.jboss.solder.test.reflection.annotated; 2 | 3 | import javax.inject.Named; 4 | 5 | @Named("cat") 6 | class Cat { 7 | 8 | } 9 | -------------------------------------------------------------------------------- /impl/src/main/resources/META-INF/services/org.jboss.solder.servlet.webxml.WebXmlLocator: -------------------------------------------------------------------------------- 1 | org.jboss.solder.servlet.webxml.URLClassLoaderWebXmlLocator 2 | org.jboss.solder.servlet.webxml.DirectoryNameWebXmlLocator 3 | -------------------------------------------------------------------------------- /impl/src/main/resources/META-INF/services/org.jboss.solder.servlet.resource.WebResourceLocationProvider: -------------------------------------------------------------------------------- 1 | org.jboss.solder.servlet.resource.DirectoryNameResourceProvider 2 | org.jboss.solder.servlet.resource.URLClassLoaderResourceProvider 3 | -------------------------------------------------------------------------------- /impl/src/main/resources/META-INF/services/org.jboss.solder.beanManager.BeanManagerProvider: -------------------------------------------------------------------------------- 1 | org.jboss.solder.beanManager.DefaultJndiBeanManagerProvider 2 | org.jboss.solder.beanManager.ServletContainerJndiBeanManagerProvider 3 | org.jboss.solder.servlet.beanManager.ServletContextAttributeProvider 4 | -------------------------------------------------------------------------------- /docs/readme.md: -------------------------------------------------------------------------------- 1 | To build the Seam Solder reference guide, execute the following command: 2 | 3 | mvn package 4 | 5 | If you want to build incremental changes to the reference guide, you can 6 | use this command after executing the build above at least once: 7 | 8 | mvn jdocbook:generate 9 | 10 | -------------------------------------------------------------------------------- /testsuite/readme.md: -------------------------------------------------------------------------------- 1 | #Seam Solder Test Suite 2 | 3 | ##Running the testsuite on the default container (Embedded Weld) 4 | 5 | mvn clean verify 6 | 7 | ##Running the testsuite on JBoss AS 7 8 | 9 | export JBOSS_HOME=/path/to/jboss-as-7.x 10 | mvn clean verify -Darquillian=jbossas-managed-7 11 | 12 | 13 | -------------------------------------------------------------------------------- /testsuite/src/test/resources/org/jboss/solder/config/xml/test/common/virtualproducer/virtualproducer.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | Hello World 9 | 10 | 11 | -------------------------------------------------------------------------------- /testsuite/src/test/resources/org/jboss/solder/test/bean/generic/alternative/beans.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | org.jboss.solder.test.bean.generic.alternative.EnabledAlternativeProducer 7 | 8 | 9 | -------------------------------------------------------------------------------- /testsuite/src/test/resources/org/jboss/solder/exception/control/test/common/interceptor/beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | org.jboss.solder.exception.control.ExceptionHandledInterceptor 6 | 7 | 8 | -------------------------------------------------------------------------------- /testsuite/src/test/java/NoPackageClass.java: -------------------------------------------------------------------------------- 1 | import org.jboss.solder.test.core.CoreTest; 2 | 3 | /** 4 | * Used by {@link CoreTest} to verify that Solder does not fail with NPE when 5 | * a BDA contains a no-package class. 6 | * 7 | * @author Jozef Hartinger 8 | * @see https://issues.jboss.org/browse/SOLDER-80 9 | */ 10 | public class NoPackageClass { 11 | } 12 | -------------------------------------------------------------------------------- /testsuite/src/test/resources/META-INF/config-beans.xml: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | org.jboss.solder.config.xml.test.common.interceptor.InterceptorBean 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /dist/src/main/assembly/notice.txt: -------------------------------------------------------------------------------- 1 | =================================================================================== 2 | == NOTICE file corresponding to section 4d of the Apache License, Version 2.0, == 3 | == in this case for the Seam Solder distribution. == 4 | =================================================================================== 5 | 6 | Seam Solder 7 | Copyright 2010 Red Hat, Inc., and individual contributors by the @authors tag 8 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/servlet/exception/handler/SendErrorPage.java: -------------------------------------------------------------------------------- 1 | package org.jboss.solder.servlet.exception.handler; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | @Retention(RetentionPolicy.RUNTIME) 9 | @Target(ElementType.METHOD) 10 | public @interface SendErrorPage { 11 | String value(); 12 | 13 | boolean redirect() default false; 14 | } 15 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/logging/BaldEagle.java: -------------------------------------------------------------------------------- 1 | package org.jboss.solder.test.logging; 2 | 3 | import java.io.Serializable; 4 | 5 | import javax.enterprise.context.SessionScoped; 6 | import javax.inject.Inject; 7 | 8 | import org.jboss.solder.logging.Category; 9 | 10 | @SessionScoped 11 | public class BaldEagle implements Serializable { 12 | @Inject 13 | @Category("Birds") 14 | private BirdLogger logger; 15 | 16 | public void generateLogMessage() { 17 | logger.logBaldEaglesSpotted(2); 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/servlet/exception/handler/ExceptionResponses.java: -------------------------------------------------------------------------------- 1 | package org.jboss.solder.servlet.exception.handler; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | import org.jboss.solder.serviceHandler.ServiceHandlerType; 9 | 10 | @Retention(RetentionPolicy.RUNTIME) 11 | @Target(ElementType.TYPE) 12 | @ServiceHandlerType(ExceptionResponseServiceHandler.class) 13 | public @interface ExceptionResponses { 14 | } 15 | -------------------------------------------------------------------------------- /testsuite/src/test/resources/org/jboss/solder/config/xml/test/common/constructor/constructor-beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 10 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/servlet/exception/handler/SendHttpError.java: -------------------------------------------------------------------------------- 1 | package org.jboss.solder.servlet.exception.handler; 2 | 3 | import java.lang.annotation.ElementType; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.RetentionPolicy; 6 | import java.lang.annotation.Target; 7 | 8 | import javax.servlet.http.HttpServletResponse; 9 | 10 | @Retention(RetentionPolicy.RUNTIME) 11 | @Target(ElementType.METHOD) 12 | public @interface SendHttpError { 13 | int status() default HttpServletResponse.SC_INTERNAL_SERVER_ERROR; 14 | 15 | String message() default ""; 16 | 17 | boolean useExceptionMessageAsDefault() default true; 18 | } 19 | -------------------------------------------------------------------------------- /impl/src/main/resources/META-INF/services/javax.enterprise.inject.spi.Extension: -------------------------------------------------------------------------------- 1 | org.jboss.solder.servlet.ServletExtension 2 | org.jboss.solder.servlet.logging.TypedMessageBundleAndLoggerExtension 3 | org.jboss.solder.config.xml.bootstrap.XmlConfigExtension 4 | org.jboss.solder.exception.control.extension.CatchExtension 5 | org.jboss.solder.bean.generic.GenericBeanExtension 6 | org.jboss.solder.bean.defaultbean.DefaultBeanExtension 7 | org.jboss.solder.core.CoreExtension 8 | org.jboss.solder.unwraps.UnwrapsExtension 9 | org.jboss.solder.messages.TypedMessageBundleExtension 10 | org.jboss.solder.logging.TypedMessageLoggerExtension 11 | org.jboss.solder.serviceHandler.ServiceHandlerExtension 12 | -------------------------------------------------------------------------------- /testsuite/src/test/resources/org/jboss/solder/config/xml/test/common/fieldset/el-set-field-value-beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | #{elValue} 8 | 9 | 10 | #{elValue} 11 | 12 | 13 | 14 | #{elValue} 15 | #{elValue} 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | #Seam Solder 2 | 3 | A portable CDI extension library for applications, frameworks and other 4 | extensions based on CDI. 5 | 6 | Seam Solder is independent of CDI implementation and fully portable between 7 | Java EE 6 and Servlet environments enhanced with CDI. 8 | 9 | For more information, see the [Seam Solder project page](http://seamframework.org/Seam3/Solder). 10 | 11 | ## Building 12 | 13 | mvn clean install -Pjboss-public-repository 14 | 15 | or 16 | 17 | mvn clean install -s settings.xml 18 | 19 | The profile is not required if the JBoss Nexus repository is setup in your settings.xml 20 | 21 | See the testsuite/readme.md file for information about running the testsuite in various containers. 22 | 23 | -------------------------------------------------------------------------------- /testsuite/src/test/resources/org/jboss/solder/config/xml/test/common/fieldset/array-set-field-value-beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 1 8 | 2 9 | 10 | 11 | java.lang.Integer 12 | java.lang.Long 13 | 14 | 15 | hello 16 | world 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /testsuite/src/test/resources/org/jboss/solder/config/xml/test/common/fieldset/colection-set-field-value-beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 1 9 | 2 10 | 11 | 12 | java.lang.Integer 13 | java.lang.Long 14 | 15 | 16 | 2 17 | 1 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /testsuite/src/test/resources/org/jboss/solder/config/xml/test/common/interceptor/interceptor-beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /testsuite/src/test/resources/org/jboss/solder/config/xml/test/common/injection/producer-field-value-beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | hello world 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /testsuite/src/test/resources/org/jboss/solder/config/xml/test/common/types/types-test-beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | org.jboss.solder.config.xml.test.common.types.AllowedType 11 | 12 | 13 | 14 | 15 | 16 | org.jboss.solder.config.xml.test.common.types.RestrictedType 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /testsuite/src/test/resources/org/jboss/solder/config/xml/test/common/fieldset/inline-bean-field-value-beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | billy 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/servlet/event/Path.java: -------------------------------------------------------------------------------- 1 | package org.jboss.solder.servlet.event; 2 | 3 | import java.lang.annotation.Documented; 4 | import java.lang.annotation.Retention; 5 | import java.lang.annotation.Target; 6 | 7 | import javax.inject.Qualifier; 8 | 9 | import static java.lang.annotation.ElementType.FIELD; 10 | import static java.lang.annotation.ElementType.PARAMETER; 11 | import static java.lang.annotation.RetentionPolicy.RUNTIME; 12 | 13 | /** 14 | * Qualifies observer methods to select HTTP lifecycle events for a particular Servlet path. A leading '/' should not be used in 15 | * the value as base URIs are treated as if they ended in '/'. 16 | * 17 | * @author Dan Allen 18 | */ 19 | @Qualifier 20 | @Target({PARAMETER, FIELD}) 21 | @Retention(RUNTIME) 22 | @Documented 23 | public @interface Path { 24 | String value(); 25 | } 26 | -------------------------------------------------------------------------------- /testsuite/src/test/resources/org/jboss/solder/config/xml/test/common/fieldset/map-set-field-value-beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 1 9 | hello 10 | 11 | 12 | 2 13 | world 14 | 15 | 16 | 17 | 18 | 1 19 | java.lang.Integer 20 | 21 | 22 | 2 23 | java.lang.Long 24 | 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/servlet/http/TemporalConverters.java: -------------------------------------------------------------------------------- 1 | package org.jboss.solder.servlet.http; 2 | 3 | import java.text.ParseException; 4 | import java.text.SimpleDateFormat; 5 | import java.util.Calendar; 6 | import java.util.Date; 7 | 8 | public class TemporalConverters { 9 | public static final String[] DATE_TIME_PATTERNS = {"yyyy-MM-dd HH:mm:ss", "yyyy-MM-dd HH:mm", "yyyy-MM-dd"}; 10 | 11 | public static Date parseDate(String source) { 12 | for (String pattern : DATE_TIME_PATTERNS) { 13 | try { 14 | return new SimpleDateFormat(pattern).parse(source); 15 | } catch (ParseException e) { 16 | } 17 | } 18 | return null; 19 | } 20 | 21 | public static Calendar parseCalendar(String source) { 22 | Calendar calendar = Calendar.getInstance(); 23 | calendar.setTime(parseDate(source)); 24 | return calendar; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /testsuite/src/test/resources/org/jboss/solder/config/xml/test/common/stereotype/stereotype-beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /testsuite/src/test/resources/org/jboss/solder/config/xml/test/common/fieldset/properties-set-field-value-beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 1 9 | hello 10 | 11 | 12 | 2 13 | world 14 | 15 | 16 | 17 | 18 | key1 19 | Value 1 20 | 21 | 22 | key2 23 | Value 2 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/core/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat, Inc., and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | @Named package org.jboss.solder.test.core; 18 | 19 | import javax.inject.Named; 20 | 21 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/core/Dog.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.core; 18 | 19 | public class Dog { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/core/veto/Tiger.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.core.veto; 18 | 19 | public class Tiger { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/interceptor/Foo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.interceptor; 18 | 19 | public class Foo { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/util/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | /** 20 | * A collection of utilities for Solder 21 | */ 22 | package org.jboss.solder.util; 23 | 24 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/core/Greyhound.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.core; 18 | 19 | public class Greyhound extends Dog { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/exception/filter/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc., and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * Classes related to filtering stack traces. 20 | */ 21 | package org.jboss.solder.exception.filter; 22 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/bean/generic/field/Burt.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.bean.generic.field; 18 | 19 | public class Burt { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/core/BorderCollie.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.core; 18 | 19 | public class BorderCollie extends Dog { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/core/veto/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | @Veto package org.jboss.solder.test.core.veto; 20 | 21 | import org.jboss.solder.core.Veto; 22 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/exception/control/extension/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright [2010], Red Hat, Inc., and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * CDI extensions for Catch. 20 | */ 21 | package org.jboss.solder.exception.control.extension; 22 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/defaultbean/OpticalDrive.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.defaultbean; 18 | 19 | public interface OpticalDrive { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/exception/control/literal/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc., and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * Annotation literals for Solder Catch. 20 | */ 21 | package org.jboss.solder.exception.control.literal; 22 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/exception/control/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright [2010], Red Hat, Inc., and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * An extensible exception handling handling framework. 20 | */ 21 | package org.jboss.solder.exception.control; 22 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/defaultbean/MagneticDrive.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.defaultbean; 18 | 19 | public interface MagneticDrive { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/core/requires/CommonInterface.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.core.requires; 18 | 19 | public interface CommonInterface { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/util/service/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | /** 20 | * The Java 6 ServiceLoader for use in Java SE 5. 21 | */ 22 | package org.jboss.solder.util.service; 23 | 24 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/defaultbean/CPU.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.defaultbean; 18 | 19 | public interface CPU { 20 | public String getSpeed(); 21 | } 22 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/defaultbean/DVDDrive.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.defaultbean; 18 | 19 | public class DVDDrive implements OpticalDrive { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/defaultbean/GPU.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.defaultbean; 18 | 19 | public interface GPU { 20 | public String getSpeed(); 21 | } 22 | -------------------------------------------------------------------------------- /docs/src/main/docbook/en-US/solder-preface.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Introduction 5 | 6 | Solder is a library of Generally Useful Stuff (TM), particularly if you are 7 | developing an application based on CDI (JSR-299 Java Contexts and Dependency Injection), 8 | or a CDI based library or framework. 9 | 10 | 11 | This guide is split into three parts. details extensions and 12 | utilities which are likely to be of use to any developer using CDI; 13 | describes utilities which are likely to be of 14 | use to developers writing libraries and frameworks that work with CDI; discusses 15 | extensions which can be used to implement configuration for a framework 16 | 17 | 20 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/config/xml/core/BeanResultType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.core; 18 | 19 | public enum BeanResultType { 20 | ADD, REPLACES, MODIFIES; 21 | } 22 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/fieldset/HorseShoe.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.fieldset; 18 | 19 | public class HorseShoe { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/core/NamedBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.core; 18 | 19 | import javax.inject.Named; 20 | 21 | @Named 22 | public class NamedBean { 23 | } 24 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/core/fullyqualified/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat, Inc., and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | @FullyQualified package org.jboss.solder.test.core.fullyqualified; 18 | 19 | import org.jboss.solder.core.FullyQualified; 20 | 21 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/defaultbean/HardDrive.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.defaultbean; 18 | 19 | public interface HardDrive { 20 | public String size(); 21 | } 22 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/util/collections/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | /** 20 | * A collection of collection related utilities for Solder 21 | */ 22 | package org.jboss.solder.util.collections; 23 | 24 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/simple/OverriddenBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.simple; 18 | 19 | public class OverriddenBean { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/types/SomeInterface.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.types; 18 | 19 | public interface SomeInterface { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/method/DecoratedInterface.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.method; 18 | 19 | public interface DecoratedInterface { 20 | } 21 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/method/QualifierEnum.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.method; 18 | 19 | public enum QualifierEnum { 20 | A, B, C; 21 | } 22 | -------------------------------------------------------------------------------- /testsuite/src/test/resources/org/jboss/solder/config/xml/test/common/injection/qualifier-attributes-test-beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | A 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | B 25 | 26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/resourceLoader/servlet/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | /** 20 | * Support for loading resources from the Servlet context 21 | */ 22 | package org.jboss.solder.resourceLoader.servlet; 23 | 24 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/types/AllowedType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.types; 18 | 19 | public class AllowedType implements SomeInterface { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/types/RestrictedType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.types; 18 | 19 | public class RestrictedType implements SomeInterface { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/injection/RecieverBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.injection; 18 | 19 | public class RecieverBean { 20 | public String value; 21 | } 22 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/serviceHandler/HelloWorld.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.serviceHandler; 18 | 19 | @EchoService 20 | public interface HelloWorld { 21 | public String helloWorld(); 22 | } 23 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/unwraps/ProducedInterface.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.unwraps; 18 | 19 | public interface ProducedInterface { 20 | 21 | public abstract String getValue(); 22 | 23 | } 24 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/config/xml/model/ResultType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.model; 18 | 19 | public enum ResultType { 20 | BEAN, INTERCEPTOR_BINDING, STEREOTYPE, QUALIFIER, VIRTUAL_PRODUCER; 21 | } 22 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/support/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | /** 20 | * Support classes for the Solder implementation, including typed message loggers 21 | * and bundles. 22 | */ 23 | package org.jboss.solder.support; 24 | 25 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/injection/ProducerBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.injection; 18 | 19 | public class ProducerBean { 20 | public String value; 21 | 22 | } 23 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/constructor/ValueProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.constructor; 18 | 19 | 20 | public class ValueProvider { 21 | public int value; 22 | } 23 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/fieldset/FieldValueProducer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.fieldset; 18 | 19 | public class FieldValueProducer { 20 | public String value; 21 | } 22 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/method/QualifiedType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.method; 18 | 19 | public interface QualifiedType { 20 | public int getBeanNumber(); 21 | 22 | } 23 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/simple/Bean3.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.simple; 18 | 19 | import org.jboss.solder.core.Veto; 20 | 21 | @Veto 22 | public class Bean3 { 23 | 24 | } 25 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/bean/generic/field/BurtSubclass.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.bean.generic.field; 18 | 19 | 20 | @Foo(5) 21 | @Message("hello5") 22 | public class BurtSubclass extends Burt { 23 | 24 | } 25 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/exception/control/test/common/interceptor/CheckedException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc., and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.exception.control.test.common.interceptor; 18 | 19 | @SuppressWarnings("serial") 20 | public class CheckedException extends Exception { 21 | } 22 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/core/requires/beans/pkg/OptionalBeanWithPackageLevelDependencies.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.core.requires.beans.pkg; 18 | 19 | public class OptionalBeanWithPackageLevelDependencies { 20 | 21 | } 22 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/serviceHandler/DecoratedHelloWorld.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.serviceHandler; 18 | 19 | @DecoratedEchoService 20 | public interface DecoratedHelloWorld { 21 | public String decoratedHelloWorld(); 22 | } 23 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/bean/generic/method/Burt.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.bean.generic.method; 18 | 19 | /** 20 | * The config type for the @Service annotation 21 | * 22 | * @author stuart 23 | */ 24 | public class Burt { 25 | 26 | } 27 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/core/fullyqualified/FullyQualifiedFromPackageNamedBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.core.fullyqualified; 18 | 19 | import javax.inject.Named; 20 | 21 | @Named 22 | public class FullyQualifiedFromPackageNamedBean { 23 | } 24 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/defaultbean/SuperChargedCPU.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.defaultbean; 18 | 19 | public class SuperChargedCPU implements CPU { 20 | 21 | public String getSpeed() { 22 | return "fast"; 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/serviceHandler/EchoDecorator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.serviceHandler; 18 | 19 | public class EchoDecorator { 20 | public String decorate(String message) { 21 | return "-" + message + "-"; 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/method/MethodTarget.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.method; 18 | 19 | public class MethodTarget { 20 | 21 | public int value1, value2, value3; 22 | 23 | public long longValue; 24 | } 25 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/core/requires/beans/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | @Requires({"org.jboss.solder.test.core.requires.Lion", "java.lang.RuntimeException"}) package org.jboss.solder.test.core.requires.beans; 20 | 21 | import org.jboss.solder.core.Requires; 22 | 23 | -------------------------------------------------------------------------------- /dist/src/main/assembly/readme.txt: -------------------------------------------------------------------------------- 1 | 2 | Solder 3 | ${project.version} 4 | 5 | What is it? 6 | =========== 7 | 8 | a library of portable CDI utilities for use in developing applications, 9 | frameworks and other extensions based on CDI (JSR-299) 10 | 11 | Contents of distribution 12 | ======================== 13 | 14 | artifacts/ 15 | 16 | Provided libraries 17 | 18 | doc/ 19 | 20 | API Docs and reference guide. 21 | 22 | source/ 23 | 24 | Source code for this module 25 | 26 | Licensing 27 | ========= 28 | 29 | This distribution, as a whole, is licensed under the terms of the Apache 30 | Software License, Version 2.0 (ASL). 31 | 32 | Solder URLs 33 | ================ 34 | 35 | Solder: http://sfwk.org/Seam3/Solder 36 | Seam 3 project: http://sfwk.org/Seam3 37 | Downloads: http://sfwk.org/Seam3/DistributionDownloads 38 | Forums: http://sfwk.org/Community/Seam3Users 39 | Source Code: http://github.com/seam/solder 40 | Issue Tracking: http://issues.jboss.org/browse/SOLDER 41 | 42 | Release Notes 43 | ============= 44 | 45 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/properties/FieldProperty.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | package org.jboss.solder.properties; 20 | 21 | import java.lang.reflect.Field; 22 | 23 | 24 | public interface FieldProperty extends Property { 25 | 26 | public Field getAnnotatedElement(); 27 | 28 | } 29 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/properties/MethodProperty.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.properties; 18 | 19 | import java.lang.reflect.Method; 20 | 21 | 22 | public interface MethodProperty extends Property { 23 | 24 | public Method getAnnotatedElement(); 25 | 26 | } 27 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/method/Decorator1.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.method; 18 | 19 | public class Decorator1 { 20 | 21 | DecoratedInterface decoratedObject; 22 | 23 | public void a() { 24 | 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/producer/Producer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.producer; 18 | 19 | public class Producer { 20 | public int value; 21 | 22 | public int meth() { 23 | return value; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/config/xml/fieldset/InlineBeanIdCreator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.fieldset; 18 | 19 | public class InlineBeanIdCreator { 20 | static int count = 0; 21 | 22 | public static int getId() { 23 | return count++; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/fieldset/ArrayFieldValue.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.fieldset; 18 | 19 | public class ArrayFieldValue { 20 | public int[] iarray; 21 | public Class[] carray; 22 | public String[] sarray; 23 | } 24 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/method/PrimitiveValueProducer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.method; 18 | 19 | public class PrimitiveValueProducer { 20 | public int value = 0; 21 | 22 | public int[] value2 = {1, 2, 3}; 23 | 24 | } 25 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/exception/control/test/common/extension/Account.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc., and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | /** 19 | * 20 | * @author Jason Porter 21 | */ 22 | package org.jboss.solder.exception.control.test.common.extension; 23 | 24 | public class Account { 25 | } 26 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/core/FullyQualifiedNamedBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.core; 18 | 19 | import javax.inject.Named; 20 | 21 | import org.jboss.solder.core.FullyQualified; 22 | 23 | @FullyQualified 24 | @Named 25 | public class FullyQualifiedNamedBean { 26 | } 27 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/util/Animals.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.util; 18 | 19 | public class Animals { 20 | 21 | @Animal(species = "Dog") 22 | public void dog() { 23 | 24 | } 25 | 26 | @Cat 27 | public void cat() { 28 | 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/literal/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | /** 20 | *

21 | * A collection of annotation literals for all annotations from the Contexts and Dependency Injection 22 | * specification and from Solder. 23 | *

24 | */ 25 | package org.jboss.solder.literal; 26 | 27 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/bean/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | /** 20 | *

21 | * A collection of base classes and builders for working with {@link javax.enterprise.inject.spi.Bean} metadata objects. 22 | *

23 | * 24 | * @author Pete Muir 25 | */ 26 | package org.jboss.solder.bean; 27 | 28 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/defaultbean/BigLaptopHardDrive.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.defaultbean; 18 | 19 | @LaptopHardDrive 20 | public class BigLaptopHardDrive implements HardDrive { 21 | 22 | public String size() { 23 | return "200MB"; 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /impl/src/test/java/org/jboss/solder/test/util/SimpleAnnotation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.util; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | 22 | @Retention(RetentionPolicy.RUNTIME) 23 | public @interface SimpleAnnotation { 24 | 25 | } 26 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/interceptor/InterceptedBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.interceptor; 18 | 19 | @Binding 20 | public class InterceptedBean { 21 | 22 | public String method() { 23 | return "hello"; 24 | } 25 | 26 | } 27 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/config/xml/core/VirtualProducerField.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.core; 18 | 19 | /** 20 | * The class used to register virtual producer fields 21 | * 22 | * @author stuart 23 | */ 24 | public class VirtualProducerField { 25 | public Object field; 26 | } 27 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/core/InstalledService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.core; 18 | 19 | import org.jboss.solder.core.Requires; 20 | 21 | @Requires({"org.jboss.solder.test.core.Greyhound", "org.jboss.solder.test.core.CoreTest"}) 22 | public class InstalledService { 23 | 24 | } 25 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/producer/Reciever.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.producer; 18 | 19 | 20 | public class Reciever { 21 | public int val1; 22 | 23 | public int val2; 24 | 25 | public int meth1; 26 | 27 | public int meth2; 28 | } 29 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/unwraps/MPType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.unwraps; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | 22 | @Retention(RetentionPolicy.RUNTIME) 23 | public @interface MPType { 24 | String value(); 25 | } 26 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/fieldset/MapFieldValue.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.fieldset; 18 | 19 | import java.util.Map; 20 | 21 | public class MapFieldValue { 22 | public Map map1; 23 | 24 | public Map> map2; 25 | } 26 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/bean/generic/field/Wobble.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.bean.generic.field; 18 | 19 | /** 20 | * A normal bean 21 | * 22 | * @author pmuir 23 | */ 24 | public class Wobble { 25 | 26 | public String getName() { 27 | return "bill"; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/bean/generic/method/Corge.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.bean.generic.method; 18 | 19 | /** 20 | * A normal bean 21 | * 22 | * @author pmuir 23 | */ 24 | public class Corge { 25 | 26 | public String getName() { 27 | return "fred"; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/core/FullyQualifiedCustomNamedBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.core; 18 | 19 | import javax.inject.Named; 20 | 21 | import org.jboss.solder.core.FullyQualified; 22 | 23 | @FullyQualified 24 | @Named("custom") 25 | public class FullyQualifiedCustomNamedBean { 26 | } 27 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/util/Animal.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.util; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | 22 | @Retention(RetentionPolicy.RUNTIME) 23 | public @interface Animal { 24 | 25 | String species(); 26 | 27 | } 28 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/bean/generic/tooManyGenericConfigurations/Baz.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.bean.generic.tooManyGenericConfigurations; 18 | 19 | 20 | /** 21 | * The config type for the config annotation Message 22 | * 23 | * @author pmuir 24 | */ 25 | 26 | public class Baz { 27 | 28 | } 29 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/core/requires/Lion.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.core.requires; 18 | 19 | /** 20 | * The entire "beans" package depends on this class. 21 | * 22 | * @author Jozef Hartinger 23 | */ 24 | public class Lion { 25 | 26 | } 27 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/core/requires/Tiger.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.core.requires; 18 | 19 | /** 20 | * Every bean in the "beans" package depends on this class. 21 | * 22 | * @author Jozef Hartinger 23 | */ 24 | public class Tiger { 25 | } 26 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/logging/Owl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.logging; 18 | 19 | import javax.inject.Inject; 20 | 21 | public class Owl { 22 | @Inject 23 | private BirdLogger logger; 24 | 25 | public void generateLogMessage() { 26 | logger.logOwlsSpotted(5); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/method/Qualifier1.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.method; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | 22 | @Retention(RetentionPolicy.RUNTIME) 23 | public @interface Qualifier1 { 24 | 25 | } 26 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/method/Qualifier2.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.method; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | 22 | @Retention(RetentionPolicy.RUNTIME) 23 | public @interface Qualifier2 { 24 | 25 | } 26 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/method/Qualifier3.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.method; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | 22 | @Retention(RetentionPolicy.RUNTIME) 23 | public @interface Qualifier3 { 24 | 25 | } 26 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/bean/defaultbean/NonDefaultProducers.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat, Inc., and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.bean.defaultbean; 18 | 19 | import javax.enterprise.inject.Produces; 20 | 21 | public class NonDefaultProducers { 22 | @Produces 23 | public Vehicle createVehicle() { 24 | return new Vehicle("Seat Ibiza"); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/bean/defaultbean/Vehicle.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat, Inc., and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.bean.defaultbean; 18 | 19 | public class Vehicle { 20 | private String name; 21 | 22 | public Vehicle(String name) { 23 | this.name = name; 24 | } 25 | 26 | public String getName() { 27 | return name; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/fieldset/PropertiesFieldValue.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.fieldset; 18 | 19 | import java.util.Properties; 20 | 21 | public class PropertiesFieldValue { 22 | 23 | public Properties properties1; 24 | 25 | public Properties properties2; 26 | } 27 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/bean/defaultbean/Airplane.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat, Inc., and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.bean.defaultbean; 18 | 19 | public class Airplane { 20 | private String name; 21 | 22 | public Airplane(String name) { 23 | this.name = name; 24 | } 25 | 26 | public String getName() { 27 | return name; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/core/requires/beans/pkg/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | @Requires({"org.jboss.solder.test.core.requires.Lion", "java.lang.RuntimeException", 20 | "org.jboss.solder.test.core.requires.Jaguar"}) package org.jboss.solder.test.core.requires.beans.pkg; 21 | 22 | import org.jboss.solder.core.Requires; 23 | 24 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/defaultbean/WriteEvent.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.defaultbean; 18 | 19 | public class WriteEvent { 20 | private int count = 0; 21 | 22 | public void increment() { 23 | count++; 24 | } 25 | 26 | public int getCount() { 27 | return count; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/serviceHandler/GoodbyeWorld.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.serviceHandler; 18 | 19 | @EchoService 20 | public abstract class GoodbyeWorld { 21 | public String otherMethod() { 22 | return "not saying goodbye"; 23 | } 24 | 25 | public abstract String goodbyeWorld(); 26 | 27 | } 28 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/exception/control/test/common/event/EventQualifier.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc., and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.exception.control.test.common.event; 18 | 19 | import javax.inject.Qualifier; 20 | 21 | /** 22 | * @author Jason Porter 23 | */ 24 | @Qualifier 25 | public @interface EventQualifier { 26 | } 27 | -------------------------------------------------------------------------------- /testsuite/src/test/resources/org/jboss/solder/config/xml/test/common/method/primitive-method-beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/bean/generic/tooManyGenericConfigurations/Corge.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.bean.generic.tooManyGenericConfigurations; 18 | 19 | /** 20 | * A normal bean 21 | * 22 | * @author pmuir 23 | */ 24 | public class Corge { 25 | 26 | public String getName() { 27 | return "fred"; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /impl/src/test/java/org/jboss/solder/test/util/IntMemberAnnotation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.util; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | 22 | @Retention(RetentionPolicy.RUNTIME) 23 | public @interface IntMemberAnnotation { 24 | int value() default 1; 25 | 26 | int someMember(); 27 | } 28 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/messages/BirdMessages.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.messages; 18 | 19 | import org.jboss.solder.messages.Message; 20 | import org.jboss.solder.messages.MessageBundle; 21 | 22 | @MessageBundle 23 | public interface BirdMessages { 24 | @Message("Spotted %s jays") 25 | String numberOfJaysSpotted(int number); 26 | } 27 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/fieldset/Sword.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.fieldset; 18 | 19 | public class Sword { 20 | String type; 21 | 22 | public String getType() { 23 | return type; 24 | } 25 | 26 | public void setType(String type) { 27 | this.type = type; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/injection/QualifierTestBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.injection; 18 | 19 | import org.jboss.solder.config.xml.test.common.method.QualifiedType; 20 | 21 | public class QualifierTestBean { 22 | 23 | public QualifiedType bean1; 24 | 25 | public QualifiedType bean2; 26 | 27 | } 28 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/bean/generic/method/Kitchen.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.bean.generic.method; 18 | 19 | public class Kitchen { 20 | private final String size; 21 | 22 | public Kitchen(String size) { 23 | this.size = size; 24 | } 25 | 26 | public String getSize() { 27 | return size; 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/injection/QualifiedBean1.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.injection; 18 | 19 | import org.jboss.solder.config.xml.test.common.method.QualifiedType; 20 | 21 | public class QualifiedBean1 implements QualifiedType { 22 | 23 | public int getBeanNumber() { 24 | return 1; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/injection/QualifiedBean2.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.injection; 18 | 19 | import org.jboss.solder.config.xml.test.common.method.QualifiedType; 20 | 21 | public class QualifiedBean2 implements QualifiedType { 22 | 23 | public int getBeanNumber() { 24 | return 2; 25 | } 26 | 27 | } 28 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/core/FullyQualifiedToTargetNamedBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.core; 18 | 19 | import javax.inject.Named; 20 | 21 | import org.jboss.solder.core.CoreExtension; 22 | import org.jboss.solder.core.FullyQualified; 23 | 24 | @FullyQualified(CoreExtension.class) 25 | @Named 26 | public class FullyQualifiedToTargetNamedBean { 27 | } 28 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/core/RaceTrack.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.core; 18 | 19 | import javax.inject.Inject; 20 | 21 | import org.jboss.solder.core.Exact; 22 | 23 | public class RaceTrack { 24 | @Inject 25 | @Exact(Greyhound.class) 26 | private Dog dog; 27 | 28 | public Dog getDog() { 29 | return dog; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /testsuite/src/test/resources/org/jboss/solder/config/xml/test/common/simple/simple-beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | test value 28 | 29 | 30 | 31 | 32 | someBean 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/util/collections/Platform.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | package org.jboss.solder.util.collections; 20 | 21 | import java.util.List; 22 | 23 | public class Platform { 24 | 25 | private Platform() { 26 | } 27 | 28 | static List subList(List list, int fromIndex, int toIndex) { 29 | return list.subList(fromIndex, toIndex); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/method/MethodValueBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.method; 18 | 19 | public class MethodValueBean { 20 | public int value = 10; 21 | 22 | public int getValue() { 23 | return value; 24 | } 25 | 26 | public void setValue(int value) { 27 | this.value = value; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/types/TypeInjectedClass.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.types; 18 | 19 | 20 | public class TypeInjectedClass { 21 | SomeInterface createValue; 22 | 23 | public void create(SomeInterface value) { 24 | this.createValue = value; 25 | } 26 | 27 | public SomeInterface value; 28 | 29 | } 30 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/bean/generic/field/Plugh.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.bean.generic.field; 18 | 19 | public class Plugh { 20 | 21 | private Message message; 22 | 23 | public Message getMessage() { 24 | return message; 25 | } 26 | 27 | public void setMessage(Message message) { 28 | this.message = message; 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/defaultbean/HardDriveImpl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.defaultbean; 18 | 19 | public class HardDriveImpl implements HardDrive { 20 | 21 | public HardDriveImpl(String size) { 22 | this.size = size; 23 | } 24 | 25 | private final String size; 26 | 27 | public String size() { 28 | return size; 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/unwraps/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | /** 20 | *

21 | * Provides stateless producer methods where each method invocation on the produced object will cause the annotated 22 | * method to be invoked to produce the object. 23 | *

24 | * 25 | * @author Pete Muir 26 | * 27 | * @see org.jboss.solder.unwraps.Unwraps 28 | */ 29 | package org.jboss.solder.unwraps; 30 | 31 | -------------------------------------------------------------------------------- /testsuite/src/test/resources/org/jboss/solder/config/xml/test/common/simple/empty-root-namespace-beans.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | test value 26 | 27 | 28 | 29 | 30 | someBean 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/simple/ExtendedBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.simple; 18 | 19 | import java.util.List; 20 | 21 | import javax.enterprise.context.ApplicationScoped; 22 | 23 | @ExtendedQualifier1 24 | @ApplicationScoped 25 | public class ExtendedBean { 26 | public List getData() { 27 | return null; 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/simple/ExtendedQualifier1.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.simple; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | 22 | import javax.inject.Qualifier; 23 | 24 | @Retention(RetentionPolicy.RUNTIME) 25 | @Qualifier 26 | public @interface ExtendedQualifier1 { 27 | 28 | } 29 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/simple/ExtendedQualifier2.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.simple; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | 22 | import javax.inject.Qualifier; 23 | 24 | @Retention(RetentionPolicy.RUNTIME) 25 | @Qualifier 26 | public @interface ExtendedQualifier2 { 27 | 28 | } 29 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/logging/Hawk.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.logging; 18 | 19 | import javax.inject.Inject; 20 | 21 | import org.jboss.solder.logging.Category; 22 | 23 | public class Hawk { 24 | @Inject 25 | @Category("Birds") 26 | private BirdLogger logger; 27 | 28 | public void generateLogMessage() { 29 | logger.logHawksSpotted(3); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/config/xml/core/XmlConfiguredBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.core; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | 22 | /** 23 | * marker for XML configured annotated types 24 | * 25 | * @author stuart 26 | */ 27 | @Retention(RetentionPolicy.RUNTIME) 28 | public @interface XmlConfiguredBean { 29 | 30 | } 31 | -------------------------------------------------------------------------------- /impl/src/test/java/org/jboss/solder/test/util/AnnotatedClass.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.util; 18 | 19 | @SimpleAnnotation 20 | @IntMemberAnnotation(someMember = 0, value = 1) 21 | @MultipleMembers(booleanMember = true, byteMember = 1, charMember = 'c', doubleMember = 0, floatMember = 0, intMember = 1, intArrayMember = {0, 1}, longMember = 1, shortMember = 1) 22 | public class AnnotatedClass { 23 | 24 | } 25 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/fieldset/CollectionFieldValue.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.fieldset; 18 | 19 | import java.util.List; 20 | import java.util.Set; 21 | import java.util.SortedSet; 22 | 23 | public class CollectionFieldValue { 24 | public Set iset; 25 | public SortedSet sset; 26 | public List> clist; 27 | } 28 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/messages/Jay.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.messages; 18 | 19 | import javax.inject.Inject; 20 | 21 | import org.jboss.solder.messages.MessageBundle; 22 | 23 | public class Jay { 24 | 25 | @Inject 26 | @MessageBundle 27 | BirdMessages messages; 28 | 29 | String getMessage() { 30 | return messages.numberOfJaysSpotted(8); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /impl/src/test/java/org/jboss/solder/test/reflection/annotated/NamedAnnotationRedefiner.java: -------------------------------------------------------------------------------- 1 | package org.jboss.solder.test.reflection.annotated; 2 | 3 | import javax.inject.Named; 4 | 5 | import org.jboss.solder.literal.AlternativeLiteral; 6 | import org.jboss.solder.literal.ApplicationScopedLiteral; 7 | import org.jboss.solder.literal.NamedLiteral; 8 | import org.jboss.solder.reflection.annotated.AnnotationBuilder; 9 | import org.jboss.solder.reflection.annotated.AnnotationRedefiner; 10 | import org.jboss.solder.reflection.annotated.RedefinitionContext; 11 | 12 | class NamedAnnotationRedefiner implements AnnotationRedefiner { 13 | 14 | @Override 15 | public void redefine(RedefinitionContext ctx) { 16 | Named named = ctx.getAnnotatedElement().getAnnotation(Named.class); 17 | if ("cat".equals(named.value())) 18 | { 19 | AnnotationBuilder builder = ctx.getAnnotationBuilder(); 20 | // add two annotations 21 | builder.add(new AlternativeLiteral()); 22 | builder.add(new ApplicationScopedLiteral()); 23 | // change the value of @Named 24 | builder.remove(Named.class); 25 | builder.add(new NamedLiteral("tomcat")); 26 | } 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/method/MethodValueArrayProducer.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.method; 18 | 19 | import javax.enterprise.inject.Produces; 20 | 21 | public class MethodValueArrayProducer { 22 | @Produces 23 | @Qualifier2 24 | public MethodValueBean[][] createMethodValueBeans() { 25 | return new MethodValueBean[10][10]; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/exception/control/test/common/extension/StereotypedHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc., and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.exception.control.test.common.extension; 18 | 19 | import org.jboss.solder.exception.control.CaughtException; 20 | import org.jboss.solder.exception.control.Handles; 21 | 22 | @BleedingObject 23 | public class StereotypedHandler { 24 | public void handle(@Handles CaughtException ex) { 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/literal/AnyLiteral.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.literal; 18 | 19 | import javax.enterprise.inject.Any; 20 | import javax.enterprise.util.AnnotationLiteral; 21 | 22 | 23 | public class AnyLiteral extends AnnotationLiteral implements Any { 24 | private static final long serialVersionUID = -6858406907917381581L; 25 | 26 | public static final Any INSTANCE = new AnyLiteral(); 27 | } 28 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/config/xml/parser/namespace/NamespaceElementResolver.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.parser.namespace; 18 | 19 | import org.jboss.solder.config.xml.model.XmlItem; 20 | import org.jboss.solder.config.xml.parser.SaxNode; 21 | 22 | public interface NamespaceElementResolver { 23 | 24 | XmlItem getItemForNamespace(SaxNode node, XmlItem parent); 25 | 26 | } 27 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/reflection/annotated/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | /** 20 | *

21 | * A collection of base classes and builders for working with {@link javax.enterprise.inject.spi.AnnotatedType} 22 | * metadata objects. 23 | *

24 | * 25 | * @author Pete Muir 26 | * 27 | * @see org.jboss.solder.reflection.annotated.AnnotatedTypeBuilder 28 | */ 29 | package org.jboss.solder.reflection.annotated; 30 | 31 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/producer/ProducerQualifier.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.producer; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | 22 | import javax.inject.Qualifier; 23 | 24 | @Retention(RetentionPolicy.RUNTIME) 25 | @Qualifier 26 | public @interface ProducerQualifier { 27 | int value(); 28 | } 29 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/config/xml/parser/namespace/InvalidElementException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.parser.namespace; 18 | 19 | /** 20 | * Exception thrown when both a method and a field have the same name 21 | */ 22 | public class InvalidElementException extends Exception { 23 | public InvalidElementException(String message) { 24 | super(message); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/bean/generic/tooManyGenericConfigurations/Bar.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.bean.generic.tooManyGenericConfigurations; 18 | 19 | import org.jboss.solder.bean.generic.GenericConfiguration; 20 | 21 | /** 22 | * A generic bean for the config annotation Message 23 | * 24 | * @author pmuir 25 | */ 26 | 27 | @GenericConfiguration(Message.class) 28 | public class Bar { 29 | 30 | } 31 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/literal/InjectLiteral.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.literal; 18 | 19 | import javax.enterprise.util.AnnotationLiteral; 20 | import javax.inject.Inject; 21 | 22 | 23 | public class InjectLiteral extends AnnotationLiteral implements Inject { 24 | private static final long serialVersionUID = -5547537708250537848L; 25 | 26 | public static final Inject INSTANCE = new InjectLiteral(); 27 | } 28 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/literal/VetoLiteral.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.literal; 18 | 19 | import javax.enterprise.util.AnnotationLiteral; 20 | 21 | import org.jboss.solder.core.Veto; 22 | 23 | 24 | public class VetoLiteral extends AnnotationLiteral implements Veto { 25 | private static final long serialVersionUID = -8137340248362361317L; 26 | 27 | public static final Veto INSTANCE = new VetoLiteral(); 28 | } 29 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/serviceHandler/EchoService.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.serviceHandler; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | 22 | import org.jboss.solder.serviceHandler.ServiceHandlerType; 23 | 24 | @Retention(RetentionPolicy.RUNTIME) 25 | @ServiceHandlerType(EchoServiceHandler.class) 26 | public @interface EchoService { 27 | 28 | } 29 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/literal/DisposesLiteral.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.literal; 18 | 19 | import javax.enterprise.inject.Disposes; 20 | import javax.enterprise.util.AnnotationLiteral; 21 | 22 | 23 | public class DisposesLiteral extends AnnotationLiteral implements Disposes { 24 | private static final long serialVersionUID = 1L; 25 | 26 | public static final Disposes INSTANCE = new DisposesLiteral(); 27 | } 28 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/literal/ModelLiteral.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.literal; 18 | 19 | import javax.enterprise.inject.Model; 20 | import javax.enterprise.util.AnnotationLiteral; 21 | 22 | 23 | public class ModelLiteral extends AnnotationLiteral implements Model { 24 | private static final long serialVersionUID = -5353345766867563825L; 25 | 26 | public static final Model INSTANCE = new ModelLiteral(); 27 | } 28 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/config/xml/core/XmlId.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.core; 18 | 19 | import java.lang.annotation.Retention; 20 | import java.lang.annotation.RetentionPolicy; 21 | 22 | /** 23 | * Annotation that allows tracing of annotated types through the startup process 24 | * 25 | * @author stuart 26 | */ 27 | @Retention(RetentionPolicy.RUNTIME) 28 | public @interface XmlId { 29 | int value(); 30 | } 31 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/logging/NonBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.logging; 18 | 19 | import javax.enterprise.inject.Alternative; 20 | import javax.inject.Inject; 21 | 22 | import org.jboss.solder.logging.Logger; 23 | 24 | @Alternative 25 | public class NonBean { 26 | @Inject 27 | private Logger log; 28 | 29 | void logMessage() { 30 | log.info("Log message from non-bean"); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/serviceHandler/EchoServiceHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.serviceHandler; 18 | 19 | import javax.interceptor.AroundInvoke; 20 | import javax.interceptor.InvocationContext; 21 | 22 | public class EchoServiceHandler { 23 | @AroundInvoke 24 | public Object invoke(InvocationContext ctx) throws Exception { 25 | return ctx.getMethod().getName().toString(); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/method/PrimitiveBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.method; 18 | 19 | public class PrimitiveBean { 20 | public int add(int val) { 21 | return val + 1; 22 | } 23 | 24 | public int[] add(int[] val) { 25 | for (int i = 0; i < val.length; ++i) { 26 | val[i] = val[i] + 1; 27 | } 28 | return val; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/unwraps/ProducedBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.unwraps; 18 | 19 | import org.jboss.solder.core.Veto; 20 | 21 | @Veto 22 | public class ProducedBean implements ProducedInterface { 23 | String value = "wrong"; 24 | 25 | public String getValue() { 26 | return value; 27 | } 28 | 29 | public void setValue(String value) { 30 | this.value = value; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/literal/ClientLiteral.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.literal; 18 | 19 | import javax.enterprise.util.AnnotationLiteral; 20 | 21 | import org.jboss.solder.core.Client; 22 | 23 | 24 | public class ClientLiteral extends AnnotationLiteral implements Client { 25 | private static final long serialVersionUID = -8137340248362361317L; 26 | 27 | public static final Client INSTANCE = new ClientLiteral(); 28 | } 29 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/literal/DelegateLiteral.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.literal; 18 | 19 | import javax.decorator.Delegate; 20 | import javax.enterprise.util.AnnotationLiteral; 21 | 22 | 23 | public class DelegateLiteral extends AnnotationLiteral implements Delegate { 24 | private static final long serialVersionUID = -533933286126296678L; 25 | 26 | public static final Delegate INSTANCE = new DelegateLiteral(); 27 | } 28 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/bean/generic/GenericMarkerLiteral.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.bean.generic; 18 | 19 | import javax.enterprise.util.AnnotationLiteral; 20 | 21 | class GenericMarkerLiteral extends AnnotationLiteral implements GenericMarker { 22 | 23 | private static final long serialVersionUID = -1931707390692943775L; 24 | 25 | static final GenericMarker INSTANCE = new GenericMarkerLiteral(); 26 | 27 | } 28 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/bean/generic/InjectGenericLiteral.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.bean.generic; 18 | 19 | import javax.enterprise.util.AnnotationLiteral; 20 | 21 | class InjectGenericLiteral extends AnnotationLiteral implements InjectGeneric { 22 | 23 | private static final long serialVersionUID = -1931707390692943775L; 24 | 25 | static final InjectGeneric INSTANCE = new InjectGenericLiteral(); 26 | 27 | } 28 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/literal/MapperLiteral.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.literal; 18 | 19 | import javax.enterprise.util.AnnotationLiteral; 20 | 21 | import org.jboss.solder.el.Mapper; 22 | 23 | 24 | public class MapperLiteral extends AnnotationLiteral implements Mapper { 25 | private static final long serialVersionUID = -8137340248362361317L; 26 | 27 | public static final Mapper INSTANCE = new MapperLiteral(); 28 | } 29 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/properties/package-info.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2010, Red Hat Middleware LLC, and individual contributors 4 | * by the @authors tag. See the copyright.txt in the distribution for a 5 | * full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * 11 | * http://www.apache.org/licenses/LICENSE-2.0 12 | * 13 | * Unless required by applicable law or agreed to in writing, software 14 | * distributed under the License is distributed on an "AS IS" BASIS, 15 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 | * See the License for the specific language governing permissions and 17 | * limitations under the License. 18 | */ 19 | /** 20 | *

21 | * A set of utility classes for working with JavaBean properties, allowing properties backed 22 | * by getter/setter methods or fields to be treated identically. 23 | *

24 | * 25 | * @author Pete Muir 26 | * 27 | * @see org.jboss.solder.properties.Property 28 | * @see org.jboss.solder.properties.Properties 29 | */ 30 | package org.jboss.solder.properties; 31 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/constructor/ConstructedBean.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.constructor; 18 | 19 | public class ConstructedBean { 20 | public ConstructedBean(int val) { 21 | this.value = val; 22 | } 23 | 24 | public ConstructedBean() { 25 | 26 | } 27 | 28 | int value; 29 | 30 | public int getValue() { 31 | return value; 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/logging/Sparrow.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.logging; 18 | 19 | import javax.inject.Inject; 20 | 21 | import org.jboss.solder.logging.Logger; 22 | 23 | 24 | class Sparrow { 25 | @Inject 26 | private Logger log; 27 | 28 | public void generateLogMessage() { 29 | log.info("Sparrow"); 30 | } 31 | 32 | public Logger getLogger() { 33 | return log; 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/literal/DefaultLiteral.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.literal; 18 | 19 | import javax.enterprise.inject.Default; 20 | import javax.enterprise.util.AnnotationLiteral; 21 | 22 | 23 | public class DefaultLiteral extends AnnotationLiteral implements Default { 24 | private static final long serialVersionUID = -8137340248362361317L; 25 | 26 | public static final Default INSTANCE = new DefaultLiteral(); 27 | } 28 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/literal/DecoratorLiteral.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.literal; 18 | 19 | import javax.decorator.Decorator; 20 | import javax.enterprise.util.AnnotationLiteral; 21 | 22 | 23 | public class DecoratorLiteral extends AnnotationLiteral implements Decorator { 24 | private static final long serialVersionUID = -1928591929455611481L; 25 | 26 | public static final Decorator INSTANCE = new DecoratorLiteral(); 27 | } 28 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/literal/ProducesLiteral.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.literal; 18 | 19 | import javax.enterprise.inject.Produces; 20 | import javax.enterprise.util.AnnotationLiteral; 21 | 22 | 23 | public class ProducesLiteral extends AnnotationLiteral implements Produces { 24 | private static final long serialVersionUID = -469820656132063897L; 25 | 26 | public static final Produces INSTANCE = new ProducesLiteral(); 27 | } 28 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/literal/UnwrapsLiteral.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.literal; 18 | 19 | import javax.enterprise.util.AnnotationLiteral; 20 | 21 | import org.jboss.solder.unwraps.Unwraps; 22 | 23 | 24 | public class UnwrapsLiteral extends AnnotationLiteral implements Unwraps { 25 | private static final long serialVersionUID = -8137340248362361317L; 26 | 27 | public static final Unwraps INSTANCE = new UnwrapsLiteral(); 28 | } 29 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/config/xml/test/common/stereotype/Stereotype1.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.config.xml.test.common.stereotype; 18 | 19 | import java.lang.annotation.ElementType; 20 | import java.lang.annotation.Retention; 21 | import java.lang.annotation.RetentionPolicy; 22 | import java.lang.annotation.Target; 23 | 24 | @Retention(RetentionPolicy.RUNTIME) 25 | @Target(ElementType.TYPE) 26 | public @interface Stereotype1 { 27 | 28 | } 29 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/bean/generic/field/Corge.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.bean.generic.field; 18 | 19 | import java.io.Serializable; 20 | 21 | /** 22 | * A normal bean 23 | * 24 | * @author pmuir 25 | */ 26 | public class Corge implements Serializable { 27 | 28 | private static final long serialVersionUID = 8211199638181988551L; 29 | 30 | public String getName() { 31 | return "fred"; 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/literal/GenericLiteral.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.literal; 18 | 19 | import javax.enterprise.util.AnnotationLiteral; 20 | 21 | import org.jboss.solder.bean.generic.Generic; 22 | 23 | 24 | public class GenericLiteral extends AnnotationLiteral implements Generic { 25 | private static final long serialVersionUID = -8137340248362361317L; 26 | 27 | public static final Generic INSTANCE = new GenericLiteral(); 28 | } 29 | -------------------------------------------------------------------------------- /impl/src/main/java/org/jboss/solder/literal/ResolverLiteral.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.literal; 18 | 19 | import javax.enterprise.util.AnnotationLiteral; 20 | 21 | import org.jboss.solder.el.Resolver; 22 | 23 | 24 | public class ResolverLiteral extends AnnotationLiteral implements Resolver { 25 | private static final long serialVersionUID = -8137340248362361317L; 26 | 27 | public static final Resolver INSTANCE = new ResolverLiteral(); 28 | } 29 | -------------------------------------------------------------------------------- /testsuite/src/test/java/org/jboss/solder/test/unwraps/Lion.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.test.unwraps; 18 | 19 | import org.jboss.solder.core.Veto; 20 | 21 | @Veto 22 | public class Lion { 23 | private final String name; 24 | 25 | public Lion() { 26 | name = "default lion"; 27 | } 28 | 29 | public Lion(String name) { 30 | this.name = name; 31 | } 32 | 33 | public String getName() { 34 | return name; 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /api/src/main/java/org/jboss/solder/literal/DependentLiteral.java: -------------------------------------------------------------------------------- 1 | /* 2 | * JBoss, Home of Professional Open Source 3 | * Copyright 2011, Red Hat, Inc. and/or its affiliates, and individual 4 | * contributors by the @authors tag. See the copyright.txt in the 5 | * distribution for a full listing of individual contributors. 6 | * 7 | * Licensed under the Apache License, Version 2.0 (the "License"); 8 | * you may not use this file except in compliance with the License. 9 | * You may obtain a copy of the License at 10 | * http://www.apache.org/licenses/LICENSE-2.0 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | package org.jboss.solder.literal; 18 | 19 | import javax.enterprise.context.Dependent; 20 | import javax.enterprise.util.AnnotationLiteral; 21 | 22 | 23 | public class DependentLiteral extends AnnotationLiteral implements Dependent { 24 | private static final long serialVersionUID = 5192230580203842740L; 25 | 26 | public static final Dependent INSTANCE = new DependentLiteral(); 27 | } 28 | --------------------------------------------------------------------------------