├── autobind
├── LICENSE
├── NOTICE
├── aop
│ ├── pom.xml
│ └── src
│ │ ├── main
│ │ └── java
│ │ │ ├── javax
│ │ │ └── interceptor
│ │ │ │ ├── AroundInvoke.java
│ │ │ │ ├── Interceptor.java
│ │ │ │ └── package-info.java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── autobind
│ │ │ └── aop
│ │ │ ├── ClassMatcher.java
│ │ │ ├── GuiceMethodInterceptor.java
│ │ │ ├── Intercept.java
│ │ │ ├── Invoke.java
│ │ │ ├── MethodMatcher.java
│ │ │ ├── feature
│ │ │ ├── InterceptorFeature.java
│ │ │ └── package-info.java
│ │ │ └── package-info.java
│ │ └── test
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── onami
│ │ └── autobind
│ │ └── test
│ │ └── aop
│ │ ├── AllTests.java
│ │ ├── annoherited
│ │ └── AnnoheritedInterceptorTests.java
│ │ ├── annotated
│ │ └── AnnotatedInterceptorTests.java
│ │ ├── inherited
│ │ └── InheritedInterceptorTests.java
│ │ └── invalid
│ │ └── InvalidInterceptorTests.java
├── configuration
│ ├── pom.xml
│ └── src
│ │ └── main
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── onami
│ │ └── autobind
│ │ └── configuration
│ │ ├── Configuration.java
│ │ ├── ConfigurationBindingJob.java
│ │ ├── ConfigurationModule.java
│ │ ├── PathConfig.java
│ │ ├── PropertiesProvider.java
│ │ ├── StartupModule.java
│ │ ├── features
│ │ ├── ConfigurationFeature.java
│ │ └── package-info.java
│ │ └── package-info.java
├── core
│ ├── pom.xml
│ └── src
│ │ ├── main
│ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── autobind
│ │ │ ├── annotations
│ │ │ ├── AnnotatedWith.java
│ │ │ ├── Annotations.java
│ │ │ ├── Bind.java
│ │ │ ├── GuiceAnnotation.java
│ │ │ ├── GuiceModule.java
│ │ │ ├── To.java
│ │ │ ├── features
│ │ │ │ ├── AutoBindingFeature.java
│ │ │ │ ├── ImplementationBindingFeature.java
│ │ │ │ ├── ModuleBindingFeature.java
│ │ │ │ ├── MultiBindingFeature.java
│ │ │ │ └── package-info.java
│ │ │ └── package-info.java
│ │ │ ├── install
│ │ │ ├── BindingStage.java
│ │ │ ├── BindingTracer.java
│ │ │ ├── InstallationContext.java
│ │ │ ├── bindjob
│ │ │ │ ├── BindingJob.java
│ │ │ │ ├── ConstantBindingJob.java
│ │ │ │ ├── ImplementationBindingJob.java
│ │ │ │ ├── InstanceBindingJob.java
│ │ │ │ ├── InterfaceBindingJob.java
│ │ │ │ ├── ModuleBindingJob.java
│ │ │ │ ├── MultiBindingJob.java
│ │ │ │ ├── ProviderBindingJob.java
│ │ │ │ └── package-info.java
│ │ │ └── package-info.java
│ │ │ ├── jsr330
│ │ │ ├── NamedImpl.java
│ │ │ ├── Names.java
│ │ │ └── package-info.java
│ │ │ ├── scanner
│ │ │ ├── ClasspathScanner.java
│ │ │ ├── PackageFilter.java
│ │ │ ├── ScannerModule.java
│ │ │ ├── features
│ │ │ │ ├── BindingScannerFeature.java
│ │ │ │ ├── MultiBindingScannerFeature.java
│ │ │ │ ├── ScannerFeature.java
│ │ │ │ └── package-info.java
│ │ │ └── package-info.java
│ │ │ └── utils
│ │ │ ├── ClassLoadingUtils.java
│ │ │ └── VariableResolver.java
│ │ └── test
│ │ └── resources
│ │ ├── beans.xml
│ │ └── conf
│ │ └── startup.xml
├── deploySite.sh
├── examples
│ ├── pom.xml
│ └── src
│ │ └── main
│ │ ├── java
│ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── autobind
│ │ │ ├── aop
│ │ │ ├── MethodCallingInterceptor.java
│ │ │ └── example
│ │ │ │ └── interceptor
│ │ │ │ ├── AnnotatedInheritedMethodInterceptor.java
│ │ │ │ ├── AnnotatedMethodInterceptor.java
│ │ │ │ ├── Example.java
│ │ │ │ ├── ExampleApp.java
│ │ │ │ ├── ExampleImpl.java
│ │ │ │ ├── InheritedMethodInterceptor.java
│ │ │ │ └── InvalidMethodInterceptor.java
│ │ │ ├── configuration
│ │ │ └── example
│ │ │ │ ├── commons
│ │ │ │ ├── general
│ │ │ │ │ ├── Example.java
│ │ │ │ │ ├── ExampleApp.java
│ │ │ │ │ ├── ExampleConfiguration.java
│ │ │ │ │ ├── ExampleImpl.java
│ │ │ │ │ └── ExampleModule.java
│ │ │ │ └── plist
│ │ │ │ │ ├── Example.java
│ │ │ │ │ ├── ExampleApp.java
│ │ │ │ │ ├── ExampleConfiguration.java
│ │ │ │ │ ├── ExampleImpl.java
│ │ │ │ │ └── ExampleModule.java
│ │ │ │ └── map
│ │ │ │ ├── dynamic
│ │ │ │ ├── Example.java
│ │ │ │ ├── ExampleApp.java
│ │ │ │ ├── ExampleConfiguration.java
│ │ │ │ ├── ExampleImpl.java
│ │ │ │ └── ExampleModule.java
│ │ │ │ ├── general
│ │ │ │ ├── Example.java
│ │ │ │ ├── ExampleApp.java
│ │ │ │ ├── ExampleConfiguration.java
│ │ │ │ ├── ExampleImpl.java
│ │ │ │ └── ExampleModule.java
│ │ │ │ ├── lazy
│ │ │ │ ├── Example.java
│ │ │ │ ├── ExampleApp.java
│ │ │ │ ├── ExampleConfiguration.java
│ │ │ │ ├── ExampleImpl.java
│ │ │ │ └── ExampleModule.java
│ │ │ │ └── named
│ │ │ │ ├── Example.java
│ │ │ │ ├── ExampleApp.java
│ │ │ │ ├── ExampleConfiguration.java
│ │ │ │ ├── ExampleImpl.java
│ │ │ │ └── ExampleModule.java
│ │ │ ├── example
│ │ │ └── starter
│ │ │ │ ├── ExampleApplication.java
│ │ │ │ ├── ExampleStarter.java
│ │ │ │ └── ExampleStartupModule.java
│ │ │ ├── integrations
│ │ │ └── example
│ │ │ │ ├── guicy
│ │ │ │ ├── automodule
│ │ │ │ │ ├── Example.java
│ │ │ │ │ ├── ExampleApp.java
│ │ │ │ │ ├── ExampleImpl.java
│ │ │ │ │ └── ExampleModule.java
│ │ │ │ └── jndi
│ │ │ │ │ ├── Example.java
│ │ │ │ │ ├── ExampleApp.java
│ │ │ │ │ ├── ExampleImpl.java
│ │ │ │ │ └── ExampleModule.java
│ │ │ │ └── rocoto
│ │ │ │ ├── Example.java
│ │ │ │ ├── ExampleApp.java
│ │ │ │ ├── ExampleConfiguration.java
│ │ │ │ ├── ExampleImpl.java
│ │ │ │ └── ExampleModule.java
│ │ │ └── scanner
│ │ │ └── asm
│ │ │ └── example
│ │ │ ├── autobind
│ │ │ ├── Example.java
│ │ │ ├── ExampleApp.java
│ │ │ ├── ExampleImpl.java
│ │ │ ├── inherited
│ │ │ │ ├── Example.java
│ │ │ │ ├── ExampleApp.java
│ │ │ │ ├── ExampleImpl.java
│ │ │ │ └── InheritedExampleImpl.java
│ │ │ ├── marker
│ │ │ │ ├── Example.java
│ │ │ │ ├── ExampleApp.java
│ │ │ │ ├── FirstImpl.java
│ │ │ │ ├── FirstMarker.java
│ │ │ │ ├── SecondImpl.java
│ │ │ │ └── SecondMarker.java
│ │ │ ├── multiple
│ │ │ │ ├── Example.java
│ │ │ │ ├── ExampleApp.java
│ │ │ │ ├── ExampleContainer.java
│ │ │ │ ├── ExampleOneImpl.java
│ │ │ │ └── ExampleTwoImpl.java
│ │ │ └── names
│ │ │ │ ├── Example.java
│ │ │ │ ├── ExampleApp.java
│ │ │ │ └── ExampleImpl.java
│ │ │ ├── automodule
│ │ │ ├── Example.java
│ │ │ ├── ExampleApp.java
│ │ │ ├── ExampleImpl.java
│ │ │ └── ExampleModule.java
│ │ │ └── startupmodule
│ │ │ ├── Example.java
│ │ │ ├── ExampleApp.java
│ │ │ ├── ExampleImpl.java
│ │ │ ├── ExampleModule.java
│ │ │ └── ExampleStartupModule.java
│ │ └── resources
│ │ ├── configuration.plist
│ │ ├── configuration.properties
│ │ └── jndi.properties
├── integrations
│ ├── commons.configurations
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── apache
│ │ │ │ └── onami
│ │ │ │ └── autobind
│ │ │ │ └── integrations
│ │ │ │ └── commons
│ │ │ │ └── configuration
│ │ │ │ └── CommonsConfigurationFeature.java
│ │ │ └── test
│ │ │ ├── java
│ │ │ └── org
│ │ │ │ └── apache
│ │ │ │ └── onami
│ │ │ │ └── autobind
│ │ │ │ └── integrations
│ │ │ │ └── test
│ │ │ │ └── commons
│ │ │ │ └── configuration
│ │ │ │ ├── AllTests.java
│ │ │ │ ├── classpath
│ │ │ │ └── ClasspathConfigTests.java
│ │ │ │ ├── file
│ │ │ │ └── FileConfigTests.java
│ │ │ │ └── url
│ │ │ │ └── URLConfigTests.java
│ │ │ └── resources
│ │ │ └── configuration.plist
│ ├── enterprise
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ ├── java
│ │ │ │ ├── javax
│ │ │ │ │ ├── enterprise
│ │ │ │ │ │ └── inject
│ │ │ │ │ │ │ └── Alternative.java
│ │ │ │ │ └── servlet
│ │ │ │ │ │ └── annotation
│ │ │ │ │ │ ├── WebFilter.java
│ │ │ │ │ │ └── WebServlet.java
│ │ │ │ └── org
│ │ │ │ │ └── apache
│ │ │ │ │ └── onami
│ │ │ │ │ └── autobind
│ │ │ │ │ └── enterprise
│ │ │ │ │ ├── Annotations.java
│ │ │ │ │ ├── BeansXMLFeature.java
│ │ │ │ │ ├── BeansXMLModule.java
│ │ │ │ │ ├── features
│ │ │ │ │ ├── WebFilterBindingFeature.java
│ │ │ │ │ └── WebServletBindingFeature.java
│ │ │ │ │ └── model
│ │ │ │ │ ├── Alternatives.java
│ │ │ │ │ ├── Beans.java
│ │ │ │ │ ├── Decorators.java
│ │ │ │ │ └── Interceptors.java
│ │ │ └── resources
│ │ │ │ └── beans_1_0.xsd
│ │ │ └── test
│ │ │ ├── java
│ │ │ └── org
│ │ │ │ └── apache
│ │ │ │ └── onami
│ │ │ │ └── autobind
│ │ │ │ └── integrations
│ │ │ │ └── tests
│ │ │ │ └── enterprise
│ │ │ │ ├── AllTests.java
│ │ │ │ └── EnterpriseTests.java
│ │ │ └── resources
│ │ │ ├── META-INF
│ │ │ └── beans.xml
│ │ │ └── beans.xml
│ ├── metro
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── apache
│ │ │ │ └── onami
│ │ │ │ └── autobind
│ │ │ │ └── integrations
│ │ │ │ └── metro
│ │ │ │ ├── AutomaticGuiceManager.java
│ │ │ │ ├── GuiceContextListener.java
│ │ │ │ ├── GuiceManaged.java
│ │ │ │ ├── GuiceManagedFeature.java
│ │ │ │ └── InjectorProvider.java
│ │ │ └── test
│ │ │ └── resources
│ │ │ └── jndi.properties
│ └── pom.xml
├── pom.xml
├── scanner
│ ├── asm
│ │ ├── pom.xml
│ │ └── src
│ │ │ ├── main
│ │ │ └── java
│ │ │ │ └── org
│ │ │ │ └── apache
│ │ │ │ └── onami
│ │ │ │ └── autobind
│ │ │ │ └── scanner
│ │ │ │ └── asm
│ │ │ │ ├── ASMClasspathScanner.java
│ │ │ │ ├── AnnotationCollector.java
│ │ │ │ └── package-info.java
│ │ │ └── test
│ │ │ ├── java
│ │ │ └── org
│ │ │ │ └── apache
│ │ │ │ └── onami
│ │ │ │ └── autobind
│ │ │ │ └── scanner
│ │ │ │ └── asm
│ │ │ │ └── tests
│ │ │ │ ├── AllTests.java
│ │ │ │ └── autobind
│ │ │ │ ├── AutobindTests.java
│ │ │ │ ├── bind
│ │ │ │ └── InterfaceAutobindTests.java
│ │ │ │ ├── duplicate
│ │ │ │ └── DuplicateAutobindTests.java
│ │ │ │ ├── filter
│ │ │ │ ├── PackageFilterTests.java
│ │ │ │ └── dummy
│ │ │ │ │ └── DummyImplementation.java
│ │ │ │ ├── multiple
│ │ │ │ └── MultibindTests.java
│ │ │ │ ├── names
│ │ │ │ └── NamedAutobindTests.java
│ │ │ │ ├── only
│ │ │ │ └── ImplementationOnlyTests.java
│ │ │ │ ├── provider
│ │ │ │ ├── Container.java
│ │ │ │ ├── Mode.java
│ │ │ │ └── ProviderTest.java
│ │ │ │ └── startconfig
│ │ │ │ ├── Container.java
│ │ │ │ ├── Mode.java
│ │ │ │ └── StartConfigProviderTest.java
│ │ │ └── resources
│ │ │ └── conf
│ │ │ └── startup.xml
│ └── pom.xml
├── src
│ └── site
│ │ ├── apt
│ │ └── index.apt.vm
│ │ └── site.xml
└── tests
│ ├── pom.xml
│ └── src
│ └── test
│ ├── java
│ └── org
│ │ └── apache
│ │ └── onami
│ │ └── autobind
│ │ └── test
│ │ └── configuration
│ │ ├── AllTests.java
│ │ ├── classpath
│ │ ├── ClasspathConfigTests.java
│ │ ├── both
│ │ │ └── BothClasspathConfigTests.java
│ │ └── values
│ │ │ └── ValuesClasspathConfigTests.java
│ │ ├── duplicate
│ │ └── DuplicateClasspathConfigTests.java
│ │ ├── failure
│ │ └── FailureConfigTests.java
│ │ ├── file
│ │ ├── FileConfigTests.java
│ │ ├── both
│ │ │ └── BothFileConfigTests.java
│ │ ├── override
│ │ │ ├── DirectFileConfigTests.java
│ │ │ └── OverrideFileConfigTests.java
│ │ └── values
│ │ │ └── ValueFileConfigTests.java
│ │ ├── folder
│ │ └── FolderConfigTests.java
│ │ └── url
│ │ ├── URLConfigTests.java
│ │ ├── both
│ │ └── BothURLConfigTests.java
│ │ ├── override
│ │ ├── DirectOverrideConfigTests.java
│ │ └── OverrideConfigTests.java
│ │ └── values
│ │ └── ValuesURLConfigTests.java
│ └── resources
│ ├── conf
│ ├── functions.properties
│ └── messages.properties
│ ├── configuration.override.properties
│ └── configuration.properties
├── cache
├── LICENSE
├── NOTICE
├── pom.xml
└── src
│ ├── main
│ └── java
│ │ └── org
│ │ └── apache
│ │ └── onami
│ │ └── cache
│ │ ├── AfterBeforeInvocationInterceptor.java
│ │ ├── CacheInterceptor.java
│ │ ├── CacheModule.java
│ │ ├── CachePutInterceptor.java
│ │ ├── CacheRemoveAllInterceptor.java
│ │ ├── CacheRemoveEntryInterceptor.java
│ │ ├── CacheResultInterceptor.java
│ │ ├── DefaultCacheInvocationParameter.java
│ │ └── DefaultCacheKeyInvocationContext.java
│ └── site
│ └── site.xml
├── configuration
├── LICENSE
├── NOTICE
├── pom.xml
└── src
│ ├── main
│ └── java
│ │ └── org
│ │ └── apache
│ │ └── onami
│ │ └── configuration
│ │ ├── ConfigurationModule.java
│ │ ├── KeyValue.java
│ │ ├── OnamiVariablesExpander.java
│ │ ├── PropertiesIterator.java
│ │ ├── PropertiesURLReader.java
│ │ ├── binder
│ │ ├── PropertyValueBindingBuilder.java
│ │ ├── XMLPropertiesFormatBindingBuilder.java
│ │ └── package-info.java
│ │ ├── package-info.java
│ │ └── variables
│ │ ├── AbstractAppender.java
│ │ ├── AntStyleParser.java
│ │ ├── Appender.java
│ │ ├── KeyAppender.java
│ │ ├── MixinAppender.java
│ │ ├── Parser.java
│ │ ├── Resolver.java
│ │ ├── TextAppender.java
│ │ ├── Tree.java
│ │ ├── VariablesMap.java
│ │ └── package-info.java
│ ├── site
│ ├── apt
│ │ ├── configuration.apt
│ │ ├── getting-started.apt
│ │ └── index.apt.vm
│ ├── resources
│ │ └── images
│ │ │ └── logo.png
│ ├── site.xml
│ └── xdoc
│ │ └── changes.xml
│ └── test
│ ├── data
│ └── org
│ │ └── apache
│ │ └── onami
│ │ ├── configuration
│ │ ├── configuration
│ │ │ ├── memcached.xml
│ │ │ └── should-be-ignored.txt
│ │ ├── jdbc.properties
│ │ └── should-be-ignored.txt
│ │ ├── ibatis.properties
│ │ └── should-be-ignored.txt
│ ├── java
│ └── org
│ │ └── apache
│ │ └── onami
│ │ └── configuration
│ │ ├── ConfigurationModuleTestCase.java
│ │ ├── JDBCConfiguration.java
│ │ ├── LdapConfiguration.java
│ │ ├── MemcachedConfiguration.java
│ │ ├── MyBatisConfiguration.java
│ │ ├── ProxyConfiguration.java
│ │ └── variables
│ │ └── VariableResolvingTestCase.java
│ └── resources
│ ├── org
│ └── apache
│ │ └── onami
│ │ └── configuration
│ │ └── ldap.properties
│ └── proxy.xml
├── converters
├── LICENSE
├── NOTICE
├── all
│ └── pom.xml
├── core
│ ├── pom.xml
│ └── src
│ │ └── main
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── onami
│ │ └── converters
│ │ └── core
│ │ ├── AbstractConverter.java
│ │ └── package-info.java
├── deploySite.sh
├── format
│ ├── pom.xml
│ └── src
│ │ └── main
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── onami
│ │ └── converters
│ │ └── format
│ │ ├── DecimalFormatConverter.java
│ │ ├── SimpleDateFormatConverter.java
│ │ └── package-info.java
├── i18n
│ ├── pom.xml
│ └── src
│ │ └── main
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── onami
│ │ └── converters
│ │ └── i18n
│ │ ├── CurrencyConverter.java
│ │ ├── DateConverter.java
│ │ ├── LocaleConverter.java
│ │ ├── TimeZoneConverter.java
│ │ └── package-info.java
├── net
│ ├── pom.xml
│ └── src
│ │ ├── main
│ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── converters
│ │ │ └── net
│ │ │ ├── InetAddressConverter.java
│ │ │ ├── URIConverter.java
│ │ │ ├── URLConverter.java
│ │ │ └── package-info.java
│ │ └── test
│ │ ├── java
│ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── converters
│ │ │ └── net
│ │ │ └── URLConverterTestCase.java
│ │ └── resources
│ │ └── test.properties
├── numbers
│ ├── pom.xml
│ └── src
│ │ └── main
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── onami
│ │ └── converters
│ │ └── numbers
│ │ ├── BigDecimalConverter.java
│ │ ├── BigIntegerConverter.java
│ │ └── package-info.java
├── pom.xml
├── sql
│ ├── pom.xml
│ └── src
│ │ └── main
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── onami
│ │ └── converters
│ │ └── sql
│ │ ├── ClobConverter.java
│ │ ├── SQLDateConverter.java
│ │ ├── SQLTimeConverter.java
│ │ ├── SQLTimestampConverter.java
│ │ └── package-info.java
├── src
│ └── site
│ │ ├── apt
│ │ ├── all.apt.vm
│ │ ├── extend.apt.vm
│ │ ├── format.apt.vm
│ │ ├── i18n.apt.vm
│ │ ├── index.apt
│ │ ├── net.apt.vm
│ │ ├── numbers.apt.vm
│ │ ├── sql.apt.vm
│ │ └── system.apt.vm
│ │ ├── site.xml
│ │ └── xdoc
│ │ └── changes.xml
└── system
│ ├── pom.xml
│ └── src
│ └── main
│ └── java
│ └── org
│ └── apache
│ └── onami
│ └── converters
│ └── system
│ ├── BitSetConverter.java
│ ├── CharsetConverter.java
│ ├── FileConverter.java
│ ├── PatternConverter.java
│ ├── PropertiesConverter.java
│ ├── UUIDConverter.java
│ └── package-info.java
├── guava
├── LICENSE
├── NOTICE
├── pom.xml
└── src
│ ├── main
│ └── java
│ │ └── org
│ │ └── apache
│ │ └── onami
│ │ └── guava
│ │ └── eventbus
│ │ ├── BusMatcher.java
│ │ ├── EventBusModule.java
│ │ └── package-info.java
│ ├── site
│ ├── apt
│ │ ├── eventbus.apt
│ │ └── index.apt.vm
│ └── site.xml
│ └── test
│ └── java
│ └── org
│ └── apache
│ └── onami
│ └── guava
│ └── eventbus
│ ├── ApplicationEvent.java
│ └── EventBusModuleTestCase.java
├── lifecycle
├── LICENSE
├── NOTICE
├── core
│ ├── pom.xml
│ └── src
│ │ ├── main
│ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── lifecycle
│ │ │ └── core
│ │ │ ├── AbstractBasicStageable.java
│ │ │ ├── AbstractMethodTypeListener.java
│ │ │ ├── AbstractStageable.java
│ │ │ ├── DefaultStager.java
│ │ │ ├── DisposingStager.java
│ │ │ ├── LifeCycleModule.java
│ │ │ ├── LifeCycleStageModule.java
│ │ │ ├── NoOpStageHandler.java
│ │ │ ├── NoOpStageableTypeMapper.java
│ │ │ ├── StageHandler.java
│ │ │ ├── Stageable.java
│ │ │ ├── StageableMethod.java
│ │ │ ├── StageableTypeMapper.java
│ │ │ └── Stager.java
│ │ ├── site
│ │ ├── apt
│ │ │ └── index.apt.vm
│ │ └── site.xml
│ │ └── test
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── onami
│ │ └── lifecycle
│ │ └── core
│ │ ├── DefaultStagerTestCase.java
│ │ ├── MultiLifeCycleObject.java
│ │ ├── MultiLifeCycleTestCase.java
│ │ ├── StageObject1.java
│ │ ├── StageObject2.java
│ │ ├── StagingOrderTestCase.java
│ │ ├── TestAnnotationA.java
│ │ ├── TestAnnotationB.java
│ │ └── TestAnnotationC.java
├── deploySite.sh
├── jsr250
│ ├── pom.xml
│ └── src
│ │ ├── main
│ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── lifecycle
│ │ │ └── jsr250
│ │ │ ├── PostConstructModule.java
│ │ │ └── PreDestroyModule.java
│ │ ├── site
│ │ ├── apt
│ │ │ ├── index.apt.vm
│ │ │ ├── post-construct.apt
│ │ │ └── pre-destroy.apt
│ │ └── site.xml
│ │ └── test
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── onami
│ │ └── lifecycle
│ │ └── jsr250
│ │ ├── DisposableObject.java
│ │ ├── PostConstructTestCase.java
│ │ ├── PreDestroyModuleTestCase.java
│ │ ├── PreDestroyTestCase.java
│ │ ├── ThrowingExceptionAfterInjectionMethod.java
│ │ ├── ThrowingExceptionConstructor.java
│ │ ├── ThrowingExceptionConstructor2.java
│ │ ├── ThrowingExceptionDisposeMethod.java
│ │ ├── WrongAfterInjectionMethod.java
│ │ └── WrongPreDestroyMethod.java
├── pom.xml
├── src
│ └── site
│ │ ├── apt
│ │ └── index.apt.vm
│ │ └── site.xml
└── warmup
│ ├── pom.xml
│ └── src
│ ├── main
│ └── java
│ │ └── org
│ │ └── apache
│ │ └── onami
│ │ └── lifecycle
│ │ └── warmup
│ │ ├── WarmUp.java
│ │ ├── WarmUpModule.java
│ │ ├── WarmUpTask.java
│ │ └── WarmUper.java
│ ├── site
│ ├── apt
│ │ ├── index.apt.vm
│ │ └── warmup.apt
│ ├── resources
│ │ └── images
│ │ │ └── abc.png
│ └── site.xml
│ └── test
│ └── java
│ └── org
│ └── apachi
│ └── onami
│ └── lifecycle
│ └── warmup
│ ├── Dag1.java
│ ├── Dag2.java
│ ├── Dag3.java
│ ├── Dag4.java
│ ├── Flat.java
│ ├── Recorder.java
│ ├── RecorderSleepSettings.java
│ ├── TestWarmUpManager.java
│ └── WarmUpWithException.java
├── logging
├── LICENSE
├── NOTICE
├── commons-logging
│ ├── pom.xml
│ └── src
│ │ ├── main
│ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── logging
│ │ │ └── acl
│ │ │ ├── ACLLoggerInjector.java
│ │ │ ├── ACLLoggingModule.java
│ │ │ └── package-info.java
│ │ └── test
│ │ ├── java
│ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── logging
│ │ │ └── acl
│ │ │ └── ACLLoggingTestCase.java
│ │ └── resources
│ │ └── testng.xml
├── core
│ ├── pom.xml
│ └── src
│ │ ├── main
│ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── logging
│ │ │ └── core
│ │ │ ├── AbstractLoggerInjector.java
│ │ │ ├── AbstractLoggingModule.java
│ │ │ ├── InjectLogger.java
│ │ │ └── package-info.java
│ │ └── test
│ │ ├── java
│ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── logging
│ │ │ └── core
│ │ │ └── ConcurrentInjectionTest.java
│ │ └── resources
│ │ └── testng.xml
├── deploySite.sh
├── juli
│ ├── pom.xml
│ └── src
│ │ ├── main
│ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── logging
│ │ │ └── juli
│ │ │ ├── JuliLoggerInjector.java
│ │ │ ├── JuliLoggingModule.java
│ │ │ └── package-info.java
│ │ └── test
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── onami
│ │ └── logging
│ │ └── juli
│ │ └── JuliLoggingTestCase.java
├── log4j
│ ├── pom.xml
│ └── src
│ │ ├── main
│ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── logging
│ │ │ └── log4j
│ │ │ ├── Log4JLoggerInjector.java
│ │ │ ├── Log4jLoggingModule.java
│ │ │ └── package-info.java
│ │ └── test
│ │ ├── java
│ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── logging
│ │ │ └── log4j
│ │ │ └── Log4jLoggingTestCase.java
│ │ └── resources
│ │ └── testng.xml
├── log4j2
│ ├── pom.xml
│ └── src
│ │ ├── main
│ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── logging
│ │ │ └── log4j2
│ │ │ ├── Log4J2LoggerInjector.java
│ │ │ ├── Log4j2LoggingModule.java
│ │ │ └── package-info.java
│ │ └── test
│ │ ├── java
│ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── logging
│ │ │ └── log4j2
│ │ │ └── Log4j2LoggingTestCase.java
│ │ └── resources
│ │ └── testng.xml
├── pom.xml
├── slf4j
│ ├── pom.xml
│ └── src
│ │ ├── main
│ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── logging
│ │ │ └── slf4j
│ │ │ ├── Slf4jLoggerInjector.java
│ │ │ ├── Slf4jLoggingModule.java
│ │ │ └── package-info.java
│ │ └── test
│ │ ├── java
│ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── logging
│ │ │ └── slf4j
│ │ │ └── Slf4jLoggingTestCase.java
│ │ └── resources
│ │ └── testng.xml
├── src
│ └── site
│ │ ├── apt
│ │ ├── acl.apt.vm
│ │ ├── extend.apt.vm
│ │ ├── index.apt
│ │ ├── juli.apt.vm
│ │ ├── log4j.apt.vm
│ │ ├── log4j2.apt.vm
│ │ └── slf4j.apt.vm
│ │ ├── resources
│ │ └── images
│ │ │ └── logo.png
│ │ ├── site.xml
│ │ └── xdoc
│ │ └── changes.xml
└── testframework
│ ├── pom.xml
│ └── src
│ ├── main
│ └── java
│ │ └── org
│ │ └── apache
│ │ └── onami
│ │ └── logging
│ │ └── testfw
│ │ ├── AbstractLoggerInectionTestCase.java
│ │ ├── Service.java
│ │ ├── ServiceImpl.java
│ │ └── package-info.java
│ └── test
│ └── resources
│ └── testng.xml
├── parent
├── CHANGES
├── LICENSE
├── NOTICE
├── pom.xml
└── src
│ └── site
│ └── site.xml
├── persist
├── CHANGES
├── LICENSE
├── NOTICE
├── pom.xml
└── src
│ ├── main
│ └── java
│ │ └── org
│ │ └── apache
│ │ └── onami
│ │ └── persist
│ │ ├── AggregatedException.java
│ │ ├── AllPersistenceServices.java
│ │ ├── AllPersistenceUnits.java
│ │ ├── AllUnitsOfWork.java
│ │ ├── AnnotatedPersistenceUnitBuilder.java
│ │ ├── AnnotationHolder.java
│ │ ├── ApplicationManagedEntityManagerFactoryProvider.java
│ │ ├── ContainerManagedEntityManagerFactoryProvider.java
│ │ ├── EntityManagerFactoryFactory.java
│ │ ├── EntityManagerFactoryProvider.java
│ │ ├── EntityManagerFactorySource.java
│ │ ├── EntityManagerFactorySourceByJndiLookup.java
│ │ ├── EntityManagerFactorySourceViaProvider.java
│ │ ├── EntityManagerProvider.java
│ │ ├── EntityManagerProviderImpl.java
│ │ ├── ForApplicationManaged.java
│ │ ├── ForContainerManaged.java
│ │ ├── JndiLookupHelper.java
│ │ ├── JtaTransactionFacadeFactory.java
│ │ ├── Nullable.java
│ │ ├── PersistenceFilter.java
│ │ ├── PersistenceFilterImpl.java
│ │ ├── PersistenceModule.java
│ │ ├── PersistenceService.java
│ │ ├── PersistenceUnitModule.java
│ │ ├── PersistenceUnitModuleConfiguration.java
│ │ ├── Preconditions.java
│ │ ├── ResourceLocalTransactionFacadeFactory.java
│ │ ├── TransactionFacade.java
│ │ ├── TransactionFacadeFactory.java
│ │ ├── Transactional.java
│ │ ├── TransactionalAnnotationHelper.java
│ │ ├── TransactionalAnnotationReader.java
│ │ ├── TxnInterceptor.java
│ │ ├── UnannotatedPersistenceUnitBuilder.java
│ │ ├── UnconfiguredPersistenceUnitBuilder.java
│ │ ├── UnitOfWork.java
│ │ ├── UserTransactionFacade.java
│ │ ├── UserTransactionJndiName.java
│ │ ├── UserTransactionProviderByJndiLookup.java
│ │ └── VisibleForTesting.java
│ ├── site
│ ├── apt
│ │ ├── complexWebApp.apt.vm
│ │ ├── daoExample.apt.vm
│ │ ├── emProvider.apt.vm
│ │ ├── guicePersist.apt.vm
│ │ ├── index.apt.vm
│ │ ├── simpleWebApp.apt.vm
│ │ └── standaloneApp.apt.vm
│ └── site.xml
│ └── test
│ ├── java
│ └── org
│ │ └── apache
│ │ └── onami
│ │ └── persist
│ │ ├── AggregatedExceptionTest.java
│ │ ├── AllPersistenceUnitsTest.java
│ │ ├── ApplicationManagedEntityManagerFactoryProviderTest.java
│ │ ├── ContainerManagedEntityManagerFactoryProviderTest.java
│ │ ├── EntityManagerFactoryFactoryTest.java
│ │ ├── EntityManagerFactorySourceByJndiLookupTest.java
│ │ ├── EntityManagerFactorySourceViaProviderTest.java
│ │ ├── EntityManagerProviderImplTest.java
│ │ ├── EntityManagerProviderImplThreadingTest.java
│ │ ├── InitialContextFactoryStub.java
│ │ ├── JndiLookupHelperTest.java
│ │ ├── JtaTransactionFacadeProviderTest.java
│ │ ├── OtherPersistenceUnit.java
│ │ ├── PersistenceFilterImplTest.java
│ │ ├── PersistenceUnitModuleConfigurationTest.java
│ │ ├── PreconditionsTest.java
│ │ ├── ResourceLocalTransactionFacadeProviderTest.java
│ │ ├── TestPersistenceUnit.java
│ │ ├── TransactionalAnnotationHelperTest.java
│ │ ├── TransactionalAnnotationMatcher.java
│ │ ├── TransactionalAnnotationReaderTest.java
│ │ ├── TxnInterceptorTest.java
│ │ ├── UserTransactionFacadeTest.java
│ │ └── test
│ │ ├── TestEntity.java
│ │ ├── UnderstandRequestInjectionTest.java
│ │ ├── multipersistenceunits
│ │ ├── BaseMultiplePuTest.java
│ │ ├── FirstPU.java
│ │ ├── SecondPU.java
│ │ ├── SimpleMultiplePuTest.java
│ │ └── TransactionalMultiplePuTest.java
│ │ └── transaction
│ │ ├── NestedTransactionTest.java
│ │ ├── SingleTransactionTest.java
│ │ └── testframework
│ │ ├── TransactionalTask.java
│ │ ├── TransactionalWorker.java
│ │ ├── exceptions
│ │ ├── RuntimeTestException.java
│ │ └── TestException.java
│ │ └── tasks
│ │ ├── TaskRollingBackOnAnyThrowingNone.java
│ │ ├── TaskRollingBackOnAnyThrowingRuntimeTestException.java
│ │ ├── TaskRollingBackOnAnyThrowingTestException.java
│ │ ├── TaskRollingBackOnNoneThrowingNone.java
│ │ ├── TaskRollingBackOnNoneThrowingRuntimeTestException.java
│ │ ├── TaskRollingBackOnNoneThrowingTestException.java
│ │ ├── TaskRollingBackOnRuntimeTestExceptionThrowingNone.java
│ │ ├── TaskRollingBackOnRuntimeTestExceptionThrowingRuntimeTestException.java
│ │ ├── TaskRollingBackOnRuntimeTestExceptionThrowingTestException.java
│ │ ├── TaskRollingBackOnTestExceptionThrowingNone.java
│ │ ├── TaskRollingBackOnTestExceptionThrowingRuntimeTestException.java
│ │ └── TaskRollingBackOnTestExceptionThrowingTestException.java
│ └── resources
│ ├── META-INF
│ └── persistence.xml
│ └── logback-test.xml
├── pom.xml
├── scheduler
├── LICENSE
├── NOTICE
├── pom.xml
└── src
│ ├── main
│ └── java
│ │ └── org
│ │ └── apache
│ │ └── onami
│ │ └── scheduler
│ │ ├── InjectorJobFactory.java
│ │ ├── JobSchedulerBuilder.java
│ │ ├── QuartzModule.java
│ │ ├── Scheduled.java
│ │ ├── SchedulerConfiguration.java
│ │ ├── SchedulerConfigurationBuilder.java
│ │ ├── SchedulerProvider.java
│ │ └── package-info.java
│ ├── site
│ ├── apt
│ │ ├── index.apt.vm
│ │ └── userguide.apt
│ ├── site.xml
│ └── xdoc
│ │ └── changes.xml
│ └── test
│ ├── java
│ └── org
│ │ └── apache
│ │ └── onami
│ │ └── scheduler
│ │ ├── GuartzSimpleTriggerTimerTestCase.java
│ │ ├── GuartzTimerTestCase.java
│ │ ├── ManualStartTestCase.java
│ │ ├── RepeatedSchedulingTestCase.java
│ │ ├── TimedTask.java
│ │ └── WithPropertiesTestCase.java
│ └── resources
│ └── logback.xml
├── scopes
├── LICENSE
├── NOTICE
├── pom.xml
└── src
│ ├── main
│ └── java
│ │ └── org
│ │ └── apache
│ │ └── onami
│ │ └── scopes
│ │ ├── ConcurrentLazySingleton.java
│ │ ├── ConcurrentLazySingletonScope.java
│ │ ├── ConcurrentLazySingletonScopeImpl.java
│ │ ├── LazySingleton.java
│ │ ├── LazySingletonScope.java
│ │ ├── LazySingletonScopeImpl.java
│ │ ├── ScopesModule.java
│ │ └── package-info.java
│ ├── site
│ ├── apt
│ │ ├── index.apt.vm
│ │ └── userguide.apt
│ └── site.xml
│ └── test
│ └── java
│ └── org
│ └── apache
│ └── onami
│ └── scopes
│ ├── AnnotatedConcurrentLazySingletonObject.java
│ ├── AnnotatedLazySingletonObject.java
│ ├── AnnotatedLazySingletonObjectAlt.java
│ ├── LazySingletonObject.java
│ ├── TestConcurrentLazySingleton.java
│ └── TestLazySingleton.java
├── site
├── pom.xml
└── src
│ └── site
│ ├── apt
│ └── committers
│ │ ├── codestyle.apt
│ │ ├── gpg-keys.apt
│ │ ├── jira-conventions.apt
│ │ ├── maven-settings.apt
│ │ └── svn-conventions.apt
│ ├── resources
│ └── images
│ │ └── apache-onami-logo.png
│ ├── site.xml
│ └── xdoc
│ ├── committers
│ └── release-howto.xml
│ ├── community
│ ├── mail-lists.xml
│ ├── patches.xml
│ └── volunteering.xml
│ └── index.xml
├── spi
├── LICENSE
├── NOTICE
├── all
│ └── pom.xml
├── core
│ ├── pom.xml
│ └── src
│ │ └── main
│ │ └── java
│ │ └── org
│ │ └── apache
│ │ └── onami
│ │ └── spi
│ │ └── core
│ │ ├── AbstractServiceClassIterator.java
│ │ ├── PropertyServiceClassIterator.java
│ │ ├── ServiceLoader.java
│ │ ├── URLServiceNamesIterator.java
│ │ └── package-info.java
├── deploySite.sh
├── modules
│ ├── pom.xml
│ └── src
│ │ ├── main
│ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── spi
│ │ │ └── modules
│ │ │ ├── GuiceServiceLoader.java
│ │ │ └── package-info.java
│ │ └── test
│ │ ├── java
│ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── spi
│ │ │ └── modules
│ │ │ ├── AcmeService.java
│ │ │ ├── AcmeServiceImpl1.java
│ │ │ ├── AcmeServiceImpl2.java
│ │ │ └── GuiceServiceLoaderTestCase.java
│ │ └── resources
│ │ └── META-INF
│ │ └── services
│ │ └── com.google.inject.Module
├── pom.xml
├── services
│ ├── pom.xml
│ └── src
│ │ ├── main
│ │ └── java
│ │ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── spi
│ │ │ └── services
│ │ │ ├── FromClassLoaderBuilder.java
│ │ │ ├── ServiceLoaderModule.java
│ │ │ └── package-info.java
│ │ └── test
│ │ ├── java
│ │ └── org
│ │ │ └── apache
│ │ │ └── onami
│ │ │ └── spi
│ │ │ └── services
│ │ │ ├── AcmeService.java
│ │ │ ├── AcmeServiceImpl1.java
│ │ │ ├── AcmeServiceImpl2.java
│ │ │ ├── BarBindingAnnotation.java
│ │ │ ├── FooService.java
│ │ │ ├── FooServiceImpl1.java
│ │ │ ├── FooServiceImpl2.java
│ │ │ ├── FromSystemPropertiesTestCase.java
│ │ │ └── ServiceLoaderModuleTestCase.java
│ │ └── resources
│ │ └── META-INF
│ │ └── services
│ │ └── org.apache.onami.spi.services.AcmeService
└── src
│ └── site
│ ├── apt
│ ├── all.apt.vm
│ ├── index.apt.vm
│ ├── modules.apt.vm
│ └── services.apt.vm
│ ├── site.xml
│ └── xdoc
│ └── changes.xml
├── test
├── LICENSE
├── NOTICE
├── checkstyle-suppressions.xml
├── pom.xml
└── src
│ ├── main
│ └── java
│ │ └── org
│ │ └── apache
│ │ └── onami
│ │ └── test
│ │ ├── GuiceMockModule.java
│ │ ├── MockEngineFactory.java
│ │ ├── OnamiRunner.java
│ │ ├── OnamiSuite.java
│ │ ├── annotation
│ │ ├── GuiceModules.java
│ │ ├── GuiceProvidedModules.java
│ │ ├── Mock.java
│ │ ├── MockFramework.java
│ │ ├── MockObjType.java
│ │ ├── MockType.java
│ │ └── package-info.java
│ │ ├── handler
│ │ ├── GuiceInjectableClassHandler.java
│ │ ├── GuiceModuleHandler.java
│ │ ├── GuiceProvidedModuleHandler.java
│ │ ├── MockFrameworkHandler.java
│ │ ├── MockHandler.java
│ │ └── package-info.java
│ │ ├── mock
│ │ ├── MockEngine.java
│ │ ├── framework
│ │ │ ├── EasyMockFramework.java
│ │ │ ├── MockitoFramework.java
│ │ │ └── package-info.java
│ │ ├── guice
│ │ │ ├── MockMembersInjector.java
│ │ │ ├── MockTypeListener.java
│ │ │ └── package-info.java
│ │ └── package-info.java
│ │ ├── package-info.java
│ │ └── reflection
│ │ ├── AnnotationHandler.java
│ │ ├── ClassHandler.java
│ │ ├── ClassVisitor.java
│ │ ├── FieldHandler.java
│ │ ├── HandleException.java
│ │ ├── MethodHandler.java
│ │ └── package-info.java
│ ├── site
│ ├── apt
│ │ ├── core.apt
│ │ ├── guice.apt
│ │ ├── index.apt.vm
│ │ ├── jsr330.apt
│ │ └── mock.apt
│ ├── site.xml
│ └── xdoc
│ │ └── changes.xml
│ └── test
│ ├── java
│ └── org
│ │ └── apache
│ │ └── onami
│ │ └── test
│ │ ├── AbstractEmptyTestCase.java
│ │ ├── AbstractMockTestCase.java
│ │ ├── AbstractMockitoTestCase.java
│ │ ├── AbstractTestCase.java
│ │ ├── InjectDependingMockObjectTestCase.java
│ │ ├── InjectFromSuperClassTestCase.java
│ │ ├── InjectJSR330ModuleClassTestCase.java
│ │ ├── InjectMockObjectTestCase.java
│ │ ├── InjectModuleClassTestCase.java
│ │ ├── InjectStaticSimpleTestCase.java
│ │ ├── MockTypeTestCase.java
│ │ ├── MockitoFrameworkTestCase.java
│ │ ├── OnamiSuiteTest.java
│ │ ├── ServiceMockProviderTest.java
│ │ ├── SimpleTest.java
│ │ ├── data
│ │ ├── ComplexModule.java
│ │ ├── HelloWordAnnotated.java
│ │ ├── HelloWorld.java
│ │ ├── Service.java
│ │ ├── ServiceImpl.java
│ │ ├── ServiceMockProvider.java
│ │ ├── ServiceModule.java
│ │ ├── SimpleModule.java
│ │ ├── TelephonService.java
│ │ ├── TelephonServiceImpl.java
│ │ ├── TestAnnotation.java
│ │ ├── TestAnnotation2.java
│ │ └── WhoIm.java
│ │ └── guice
│ │ ├── MockAnnotatedWithTestCase.java
│ │ └── TestCustomInjectionTest.java
│ └── resources
│ └── log4j.properties
└── validation
├── LICENSE
├── NOTICE
├── pom.xml
└── src
├── main
└── java
│ └── org
│ └── apache
│ └── onami
│ └── validation
│ ├── ConfigurationStateProvider.java
│ ├── GuiceAwareConstraintValidatorFactory.java
│ ├── Validate.java
│ ├── ValidateMethodInterceptor.java
│ ├── ValidationModule.java
│ ├── ValidatorFactoryProvider.java
│ ├── ValidatorProvider.java
│ └── package-info.java
├── site
├── apt
│ └── index.apt.vm
├── site.xml
└── xdoc
│ └── changes.xml
└── test
└── java
└── org
└── apache
└── onami
└── validation
├── Country.java
├── DummyCountryDao.java
├── DummyException.java
├── GuiceAwareValidationTestCase.java
├── Insert.java
└── Update.java
/autobind/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Onami-Autobind
2 | Copyright 2012-2013 The Apache Software Foundation
3 |
4 | This product includes software developed by
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/autobind/aop/src/main/java/javax/interceptor/AroundInvoke.java:
--------------------------------------------------------------------------------
1 | package javax.interceptor;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import static java.lang.annotation.ElementType.METHOD;
23 | import static java.lang.annotation.RetentionPolicy.RUNTIME;
24 |
25 | import java.lang.annotation.Documented;
26 | import java.lang.annotation.Retention;
27 | import java.lang.annotation.Target;
28 |
29 | @Documented
30 | @Retention( RUNTIME )
31 | @Target( { METHOD } )
32 | public @interface AroundInvoke
33 | {
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/autobind/aop/src/main/java/javax/interceptor/Interceptor.java:
--------------------------------------------------------------------------------
1 | package javax.interceptor;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import static java.lang.annotation.ElementType.TYPE;
23 | import static java.lang.annotation.RetentionPolicy.RUNTIME;
24 |
25 | import java.lang.annotation.Documented;
26 | import java.lang.annotation.Retention;
27 | import java.lang.annotation.Target;
28 |
29 | @Documented
30 | @Retention( RUNTIME )
31 | @Target( { TYPE } )
32 | public @interface Interceptor {
33 |
34 | }
--------------------------------------------------------------------------------
/autobind/aop/src/main/java/javax/interceptor/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * TODO fill me
3 | */
4 | package javax.interceptor;
5 |
6 | /*
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | */
24 |
--------------------------------------------------------------------------------
/autobind/aop/src/main/java/org/apache/onami/autobind/aop/feature/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * TODO fill me
3 | */
4 | package org.apache.onami.autobind.aop.feature;
5 |
6 | /*
7 | * Licensed to the Apache Software Foundation (ASF) under one or more
8 | * contributor license agreements. See the NOTICE file distributed with
9 | * this work for additional information regarding copyright ownership.
10 | * The ASF licenses this file to You under the Apache License, Version 2.0
11 | * (the "License"); you may not use this file except in compliance with
12 | * the License. You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
--------------------------------------------------------------------------------
/autobind/aop/src/main/java/org/apache/onami/autobind/aop/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * TODO fill me
3 | */
4 | package org.apache.onami.autobind.aop;
5 |
6 | /*
7 | * Licensed to the Apache Software Foundation (ASF) under one or more
8 | * contributor license agreements. See the NOTICE file distributed with
9 | * this work for additional information regarding copyright ownership.
10 | * The ASF licenses this file to You under the Apache License, Version 2.0
11 | * (the "License"); you may not use this file except in compliance with
12 | * the License. You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
--------------------------------------------------------------------------------
/autobind/configuration/src/main/java/org/apache/onami/autobind/configuration/features/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * TODO fill me
3 | */
4 | package org.apache.onami.autobind.configuration.features;
5 |
6 | /*
7 | * Licensed to the Apache Software Foundation (ASF) under one or more
8 | * contributor license agreements. See the NOTICE file distributed with
9 | * this work for additional information regarding copyright ownership.
10 | * The ASF licenses this file to You under the Apache License, Version 2.0
11 | * (the "License"); you may not use this file except in compliance with
12 | * the License. You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
--------------------------------------------------------------------------------
/autobind/configuration/src/main/java/org/apache/onami/autobind/configuration/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * TODO fill me
3 | */
4 | package org.apache.onami.autobind.configuration;
5 |
6 | /*
7 | * Licensed to the Apache Software Foundation (ASF) under one or more
8 | * contributor license agreements. See the NOTICE file distributed with
9 | * this work for additional information regarding copyright ownership.
10 | * The ASF licenses this file to You under the Apache License, Version 2.0
11 | * (the "License"); you may not use this file except in compliance with
12 | * the License. You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
--------------------------------------------------------------------------------
/autobind/core/src/main/java/org/apache/onami/autobind/annotations/GuiceAnnotation.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.annotations;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | import static java.lang.annotation.ElementType.ANNOTATION_TYPE;
21 | import static java.lang.annotation.RetentionPolicy.RUNTIME;
22 |
23 | import java.lang.annotation.Documented;
24 | import java.lang.annotation.Retention;
25 | import java.lang.annotation.Target;
26 |
27 | @Documented
28 | @Target( value = { ANNOTATION_TYPE } )
29 | @Retention( value = RUNTIME )
30 | public @interface GuiceAnnotation
31 | {
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/autobind/core/src/main/java/org/apache/onami/autobind/annotations/features/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * TODO fill me.
3 | */
4 | package org.apache.onami.autobind.annotations.features;
5 |
6 | /*
7 | * Licensed to the Apache Software Foundation (ASF) under one or more
8 | * contributor license agreements. See the NOTICE file distributed with
9 | * this work for additional information regarding copyright ownership.
10 | * The ASF licenses this file to You under the Apache License, Version 2.0
11 | * (the "License"); you may not use this file except in compliance with
12 | * the License. You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
--------------------------------------------------------------------------------
/autobind/core/src/main/java/org/apache/onami/autobind/annotations/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * This package includes all annotations which are used to
3 | * annotating class like it would be written with the Guice ESL.
4 | */
5 | package org.apache.onami.autobind.annotations;
6 |
7 | /*
8 | * Licensed to the Apache Software Foundation (ASF) under one or more
9 | * contributor license agreements. See the NOTICE file distributed with
10 | * this work for additional information regarding copyright ownership.
11 | * The ASF licenses this file to You under the Apache License, Version 2.0
12 | * (the "License"); you may not use this file except in compliance with
13 | * the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing, software
18 | * distributed under the License is distributed on an "AS IS" BASIS,
19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 | * See the License for the specific language governing permissions and
21 | * limitations under the License.
22 | */
23 |
--------------------------------------------------------------------------------
/autobind/core/src/main/java/org/apache/onami/autobind/install/bindjob/ConstantBindingJob.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.install.bindjob;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | import java.lang.annotation.Annotation;
21 |
22 | public class ConstantBindingJob
23 | extends BindingJob
24 | {
25 |
26 | public ConstantBindingJob( Annotation annotated, String className )
27 | {
28 | super( null, null, annotated, className, "constant" );
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/autobind/core/src/main/java/org/apache/onami/autobind/install/bindjob/ImplementationBindingJob.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.install.bindjob;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | import java.lang.annotation.Annotation;
21 |
22 | public class ImplementationBindingJob
23 | extends BindingJob
24 | {
25 |
26 | public ImplementationBindingJob( Class extends Annotation> scoped, Annotation annotated, String className )
27 | {
28 | super( scoped, null, annotated, className, null );
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/autobind/core/src/main/java/org/apache/onami/autobind/install/bindjob/ModuleBindingJob.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.install.bindjob;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | public class ModuleBindingJob
21 | extends BindingJob
22 | {
23 |
24 | public ModuleBindingJob( String moduleName )
25 | {
26 | super( null, null, null, moduleName, null );
27 | }
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/autobind/core/src/main/java/org/apache/onami/autobind/install/bindjob/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * TODO fillme.
3 | */
4 | package org.apache.onami.autobind.install.bindjob;
5 |
6 | /*
7 | * Licensed to the Apache Software Foundation (ASF) under one or more
8 | * contributor license agreements. See the NOTICE file distributed with
9 | * this work for additional information regarding copyright ownership.
10 | * The ASF licenses this file to You under the Apache License, Version 2.0
11 | * (the "License"); you may not use this file except in compliance with
12 | * the License. You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
--------------------------------------------------------------------------------
/autobind/core/src/main/java/org/apache/onami/autobind/install/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * TODO fillme.
3 | */
4 | package org.apache.onami.autobind.install;
5 |
6 | /*
7 | * Licensed to the Apache Software Foundation (ASF) under one or more
8 | * contributor license agreements. See the NOTICE file distributed with
9 | * this work for additional information regarding copyright ownership.
10 | * The ASF licenses this file to You under the Apache License, Version 2.0
11 | * (the "License"); you may not use this file except in compliance with
12 | * the License. You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
--------------------------------------------------------------------------------
/autobind/core/src/main/java/org/apache/onami/autobind/jsr330/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * TODO fillme.
3 | */
4 | package org.apache.onami.autobind.jsr330;
5 |
6 | /*
7 | * Licensed to the Apache Software Foundation (ASF) under one or more
8 | * contributor license agreements. See the NOTICE file distributed with
9 | * this work for additional information regarding copyright ownership.
10 | * The ASF licenses this file to You under the Apache License, Version 2.0
11 | * (the "License"); you may not use this file except in compliance with
12 | * the License. You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
--------------------------------------------------------------------------------
/autobind/core/src/main/java/org/apache/onami/autobind/scanner/features/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * TODO fill me.
3 | */
4 | package org.apache.onami.autobind.scanner.features;
5 |
6 | /*
7 | * Licensed to the Apache Software Foundation (ASF) under one or more
8 | * contributor license agreements. See the NOTICE file distributed with
9 | * this work for additional information regarding copyright ownership.
10 | * The ASF licenses this file to You under the Apache License, Version 2.0
11 | * (the "License"); you may not use this file except in compliance with
12 | * the License. You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
--------------------------------------------------------------------------------
/autobind/core/src/main/java/org/apache/onami/autobind/scanner/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * TODO fill me.
3 | */
4 | package org.apache.onami.autobind.scanner;
5 |
6 | /*
7 | * Licensed to the Apache Software Foundation (ASF) under one or more
8 | * contributor license agreements. See the NOTICE file distributed with
9 | * this work for additional information regarding copyright ownership.
10 | * The ASF licenses this file to You under the Apache License, Version 2.0
11 | * (the "License"); you may not use this file except in compliance with
12 | * the License. You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing, software
17 | * distributed under the License is distributed on an "AS IS" BASIS,
18 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 | * See the License for the specific language governing permissions and
20 | * limitations under the License.
21 | */
22 |
--------------------------------------------------------------------------------
/autobind/core/src/test/resources/beans.xml:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |
22 |
--------------------------------------------------------------------------------
/autobind/core/src/test/resources/conf/startup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 | default_value
23 |
24 |
--------------------------------------------------------------------------------
/autobind/deploySite.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | #
4 | # Licensed to the Apache Software Foundation (ASF) under one
5 | # or more contributor license agreements. See the NOTICE file
6 | # distributed with this work for additional information
7 | # regarding copyright ownership. The ASF licenses this file
8 | # to you under the Apache License, Version 2.0 (the
9 | # "License"); you may not use this file except in compliance
10 | # with the License. You may obtain a copy of the License at
11 | #
12 | # http://www.apache.org/licenses/LICENSE-2.0
13 | #
14 | # Unless required by applicable law or agreed to in writing,
15 | # software distributed under the License is distributed on an
16 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | # KIND, either express or implied. See the License for the
18 | # specific language governing permissions and limitations
19 | # under the License.
20 | #
21 |
22 | mvn clean site site:stage
23 | mvn scm-publish:publish-scm $@
24 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/aop/example/interceptor/Example.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.aop.example.interceptor;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | * Interface which is used to bind an implementation too.
22 | *
23 | * @author Daniel Manzke
24 | *
25 | */
26 | public interface Example {
27 | String sayHello();
28 |
29 | String convert(String message, boolean enabled, int times);
30 | }
31 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/configuration/example/commons/general/Example.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.configuration.example.commons.general;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | * Interface which is used to bind an implementation too.
22 | *
23 | * @author Daniel Manzke
24 | *
25 | */
26 | public interface Example {
27 | String sayHello();
28 | }
29 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/configuration/example/commons/plist/Example.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.configuration.example.commons.plist;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | * Interface which is used to bind an implementation too.
22 | *
23 | * @author Daniel Manzke
24 | *
25 | */
26 | public interface Example {
27 | String sayHello();
28 | }
29 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/configuration/example/map/dynamic/Example.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.configuration.example.map.dynamic;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | * Interface which is used to bind an implementation too.
22 | *
23 | * @author Daniel Manzke
24 | *
25 | */
26 | public interface Example {
27 | String sayHello();
28 | }
29 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/configuration/example/map/dynamic/ExampleConfiguration.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.configuration.example.map.dynamic;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | import javax.inject.Named;
21 |
22 | import org.apache.onami.autobind.configuration.Configuration;
23 | import org.apache.onami.autobind.configuration.PathConfig;
24 |
25 |
26 | @Configuration(name = @Named("config"), location = @PathConfig(value = "${myconfig}"))
27 | public interface ExampleConfiguration {
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/configuration/example/map/general/Example.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.configuration.example.map.general;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | * Interface which is used to bind an implementation too.
22 | *
23 | * @author Daniel Manzke
24 | *
25 | */
26 | public interface Example {
27 | String sayHello();
28 | }
29 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/configuration/example/map/general/ExampleConfiguration.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.configuration.example.map.general;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | import org.apache.onami.autobind.configuration.Configuration;
21 | import org.apache.onami.autobind.configuration.PathConfig;
22 |
23 | @Configuration(location = @PathConfig(value = "/configuration.properties"))
24 | public interface ExampleConfiguration {
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/configuration/example/map/lazy/Example.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.configuration.example.map.lazy;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | * Interface which is used to bind an implementation too.
22 | *
23 | * @author Daniel Manzke
24 | *
25 | */
26 | public interface Example {
27 | String sayHello();
28 | }
29 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/configuration/example/map/lazy/ExampleConfiguration.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.configuration.example.map.lazy;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | import org.apache.onami.autobind.configuration.Configuration;
21 | import org.apache.onami.autobind.configuration.PathConfig;
22 |
23 | @Configuration(location = @PathConfig(value = "/configuration.properties"), lazy = true)
24 | public interface ExampleConfiguration {
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/configuration/example/map/named/Example.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.configuration.example.map.named;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | * Interface which is used to bind an implementation too.
22 | *
23 | * @author Daniel Manzke
24 | *
25 | */
26 | public interface Example {
27 | String sayHello();
28 | }
29 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/configuration/example/map/named/ExampleConfiguration.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.configuration.example.map.named;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | import javax.inject.Named;
21 |
22 | import org.apache.onami.autobind.configuration.Configuration;
23 | import org.apache.onami.autobind.configuration.PathConfig;
24 |
25 |
26 | @Configuration(name = @Named("config"), location = @PathConfig(value = "/configuration.properties"))
27 | public interface ExampleConfiguration {
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/example/starter/ExampleApplication.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.example.starter;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | public interface ExampleApplication extends Runnable {
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/integrations/example/guicy/automodule/Example.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.integrations.example.guicy.automodule;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | * Interface which is used to bind an implementation too.
22 | *
23 | * @author Daniel Manzke
24 | *
25 | */
26 | public interface Example {
27 | String sayHello();
28 |
29 | void inform();
30 | }
31 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/integrations/example/guicy/jndi/Example.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.integrations.example.guicy.jndi;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | * Interface which is used to bind an implementation too.
22 | *
23 | * @author Daniel Manzke
24 | *
25 | */
26 | public interface Example {
27 | String sayHello();
28 |
29 | void inform();
30 | }
31 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/integrations/example/rocoto/Example.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.integrations.example.rocoto;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | * Interface which is used to bind an implementation too.
22 | *
23 | * @author Daniel Manzke
24 | *
25 | */
26 | public interface Example {
27 | String sayHello();
28 | }
29 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/integrations/example/rocoto/ExampleConfiguration.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.integrations.example.rocoto;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | import org.apache.onami.autobind.configuration.Configuration;
21 | import org.apache.onami.autobind.configuration.Configuration.Type;
22 | import org.apache.onami.autobind.configuration.PathConfig;
23 |
24 | @Configuration(location = @PathConfig(value = "/configuration.properties"), type = Type.VALUES)
25 | public interface ExampleConfiguration {
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/scanner/asm/example/autobind/Example.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.scanner.asm.example.autobind;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | * Interface which is used to bind an implementation too.
22 | *
23 | * @author Daniel Manzke
24 | *
25 | */
26 | public interface Example {
27 | String sayHello();
28 | }
29 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/scanner/asm/example/autobind/inherited/Example.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.scanner.asm.example.autobind.inherited;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | * Interface which is used to bind an implementation too.
22 | *
23 | * @author Daniel Manzke
24 | *
25 | */
26 | public interface Example {
27 | String sayHello();
28 | }
29 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/scanner/asm/example/autobind/marker/Example.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.scanner.asm.example.autobind.marker;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | * Interface which is used to bind an implementation too.
22 | *
23 | * @author Daniel Manzke
24 | *
25 | */
26 | public interface Example {
27 | String sayHello();
28 | }
29 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/scanner/asm/example/autobind/marker/FirstMarker.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.scanner.asm.example.autobind.marker;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | import java.lang.annotation.ElementType;
21 | import java.lang.annotation.Retention;
22 | import java.lang.annotation.RetentionPolicy;
23 | import java.lang.annotation.Target;
24 |
25 | import javax.inject.Qualifier;
26 |
27 | @Retention(RetentionPolicy.RUNTIME)
28 | @Qualifier
29 | @Target( { ElementType.TYPE })
30 | public @interface FirstMarker {
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/scanner/asm/example/autobind/marker/SecondMarker.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.scanner.asm.example.autobind.marker;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | import java.lang.annotation.ElementType;
21 | import java.lang.annotation.Retention;
22 | import java.lang.annotation.RetentionPolicy;
23 | import java.lang.annotation.Target;
24 |
25 | import javax.inject.Qualifier;
26 |
27 | @Retention(RetentionPolicy.RUNTIME)
28 | @Qualifier
29 | @Target( { ElementType.TYPE })
30 | public @interface SecondMarker {
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/scanner/asm/example/autobind/multiple/Example.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.scanner.asm.example.autobind.multiple;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | * Interface which is used to bind an implementation too.
22 | *
23 | * @author Daniel Manzke
24 | *
25 | */
26 | public interface Example {
27 | String sayHello();
28 | }
29 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/scanner/asm/example/autobind/names/Example.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.scanner.asm.example.autobind.names;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | * Interface which is used to bind an implementation too.
22 | *
23 | * @author Daniel Manzke
24 | *
25 | */
26 | public interface Example {
27 | String sayHello();
28 | }
29 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/scanner/asm/example/automodule/Example.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.scanner.asm.example.automodule;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | * Interface which is used to bind an implementation too.
22 | *
23 | * @author Daniel Manzke
24 | *
25 | */
26 | public interface Example {
27 | String sayHello();
28 | }
29 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/java/org/apache/onami/autobind/scanner/asm/example/startupmodule/Example.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.scanner.asm.example.startupmodule;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | * Interface which is used to bind an implementation too.
22 | *
23 | * @author Daniel Manzke
24 | *
25 | */
26 | public interface Example {
27 | String sayHello();
28 | }
29 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/resources/configuration.plist:
--------------------------------------------------------------------------------
1 | {
2 | de = {
3 | devsurf = {
4 | configuration = {
5 | message = "yeahhh out of the package :)";
6 | }
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/autobind/examples/src/main/resources/configuration.properties:
--------------------------------------------------------------------------------
1 | message=yeahh!!
--------------------------------------------------------------------------------
/autobind/examples/src/main/resources/jndi.properties:
--------------------------------------------------------------------------------
1 | guice.classpath.scanner=org.apache.onami.autobind.scanner.asm.ASMClasspathScanner
2 | guice.classpath.packages=org.apache.onami.autobind.integrations.example.guicy.jndi
--------------------------------------------------------------------------------
/autobind/integrations/commons.configurations/src/test/resources/configuration.plist:
--------------------------------------------------------------------------------
1 | {
2 | de = {
3 | devsurf = {
4 | configuration = {
5 | message = "yeahhh out of the package :)";
6 | }
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/autobind/integrations/enterprise/src/main/java/javax/enterprise/inject/Alternative.java:
--------------------------------------------------------------------------------
1 | package javax.enterprise.inject;
2 |
3 | import static java.lang.annotation.ElementType.FIELD;
4 | import static java.lang.annotation.ElementType.METHOD;
5 | import static java.lang.annotation.ElementType.TYPE;
6 |
7 | import java.lang.annotation.Documented;
8 | import java.lang.annotation.Retention;
9 | import java.lang.annotation.RetentionPolicy;
10 | import java.lang.annotation.Target;
11 |
12 | @Target({TYPE, METHOD, FIELD})
13 | @Retention(RetentionPolicy.RUNTIME)
14 | @Documented
15 | public @interface Alternative
16 | {
17 | }
--------------------------------------------------------------------------------
/autobind/integrations/enterprise/src/main/java/org/apache/onami/autobind/enterprise/Annotations.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.enterprise;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | import java.lang.annotation.Annotation;
21 |
22 | import javax.interceptor.Interceptor;
23 |
24 | public class Annotations extends org.apache.onami.autobind.annotations.Annotations{
25 | public static Interceptor createInterceptor(){
26 | return new Interceptor() {
27 | @Override
28 | public Class extends Annotation> annotationType() {
29 | return Interceptor.class;
30 | }
31 | };
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/autobind/integrations/enterprise/src/test/java/org/apache/onami/autobind/integrations/tests/enterprise/AllTests.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.integrations.tests.enterprise;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | import org.junit.runner.RunWith;
21 | import org.junit.runners.Suite;
22 |
23 | @RunWith(Suite.class)
24 | @Suite.SuiteClasses( { EnterpriseTests.class })
25 | public class AllTests {
26 | }
27 |
--------------------------------------------------------------------------------
/autobind/integrations/enterprise/src/test/resources/META-INF/beans.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | org.apache.onami.autobind.integrations.tests.enterprise.EnterpriseTests$AlternativeImplementation
5 |
6 |
7 |
--------------------------------------------------------------------------------
/autobind/integrations/enterprise/src/test/resources/beans.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | org.apache.onami.autobind.integrations.tests.enterprise.EnterpriseTests$AlternativeImplementation
5 |
6 |
7 |
--------------------------------------------------------------------------------
/autobind/integrations/metro/src/main/java/org/apache/onami/autobind/integrations/metro/InjectorProvider.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.integrations.metro;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | import com.google.inject.Injector;
21 | import javax.inject.Provider;
22 |
23 | public interface InjectorProvider extends Provider{
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/autobind/integrations/metro/src/test/resources/jndi.properties:
--------------------------------------------------------------------------------
1 | guice.classpath.scanner=org.apache.onami.autobind.scanner.asm.ASMClasspathScanner
2 | guice.classpath.packages=org.apache.onami.autobind.integrations.test
--------------------------------------------------------------------------------
/autobind/scanner/asm/src/main/java/org/apache/onami/autobind/scanner/asm/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * This package includes all annotations which are used to
3 | * annotating class like it would be written with the Guice ESL.
4 | */
5 | package org.apache.onami.autobind.scanner.asm;
6 |
7 | /*
8 | * Licensed to the Apache Software Foundation (ASF) under one or more
9 | * contributor license agreements. See the NOTICE file distributed with
10 | * this work for additional information regarding copyright ownership.
11 | * The ASF licenses this file to You under the Apache License, Version 2.0
12 | * (the "License"); you may not use this file except in compliance with
13 | * the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing, software
18 | * distributed under the License is distributed on an "AS IS" BASIS,
19 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20 | * See the License for the specific language governing permissions and
21 | * limitations under the License.
22 | */
23 |
--------------------------------------------------------------------------------
/autobind/scanner/asm/src/test/java/org/apache/onami/autobind/scanner/asm/tests/autobind/provider/Container.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.scanner.asm.tests.autobind.provider;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import javax.inject.Inject;
23 | import javax.inject.Named;
24 |
25 | public class Container
26 | {
27 |
28 | @Inject
29 | @Named( "mode" )
30 | private Mode mode;
31 |
32 | public Mode get()
33 | {
34 | return mode;
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/autobind/scanner/asm/src/test/java/org/apache/onami/autobind/scanner/asm/tests/autobind/provider/Mode.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.scanner.asm.tests.autobind.provider;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | public enum Mode
23 | {
24 |
25 | ALL,
26 | UNKNOWN
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/autobind/scanner/asm/src/test/java/org/apache/onami/autobind/scanner/asm/tests/autobind/startconfig/Container.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.scanner.asm.tests.autobind.startconfig;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import javax.inject.Inject;
23 | import javax.inject.Named;
24 |
25 | public class Container
26 | {
27 |
28 | @Inject
29 | @Named( "mode" )
30 | private Mode mode;
31 |
32 | public Mode get()
33 | {
34 | return mode;
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/autobind/scanner/asm/src/test/java/org/apache/onami/autobind/scanner/asm/tests/autobind/startconfig/Mode.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.autobind.scanner.asm.tests.autobind.startconfig;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | public enum Mode
23 | {
24 |
25 | ALL,
26 | UNKNOWN
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/autobind/scanner/asm/src/test/resources/conf/startup.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 | ALL
23 |
24 |
--------------------------------------------------------------------------------
/autobind/tests/src/test/resources/conf/functions.properties:
--------------------------------------------------------------------------------
1 | function.1=read all files of this folder
--------------------------------------------------------------------------------
/autobind/tests/src/test/resources/conf/messages.properties:
--------------------------------------------------------------------------------
1 | message.1=loaded by iterating through folder
--------------------------------------------------------------------------------
/autobind/tests/src/test/resources/configuration.override.properties:
--------------------------------------------------------------------------------
1 | message=overriden yeahh!!
--------------------------------------------------------------------------------
/autobind/tests/src/test/resources/configuration.properties:
--------------------------------------------------------------------------------
1 | message=yeahh!!
--------------------------------------------------------------------------------
/cache/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Onami-Cache
2 | Copyright 2012-2013 The Apache Software Foundation
3 |
4 | This product includes software developed by
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/configuration/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Onami-Configuration
2 | Copyright 2012-2013 The Apache Software Foundation
3 |
4 | This product includes software developed by
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/configuration/src/main/java/org/apache/onami/configuration/binder/PropertyValueBindingBuilder.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.configuration.binder;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | /**
23 | * Binds to a property value.
24 | */
25 | public interface PropertyValueBindingBuilder
26 | {
27 |
28 | /**
29 | * Binds property to the given value.
30 | *
31 | * @param value The property value
32 | */
33 | void toValue( String value );
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/configuration/src/main/java/org/apache/onami/configuration/binder/XMLPropertiesFormatBindingBuilder.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.configuration.binder;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | /**
23 | * Define a properties file is in the XML format.
24 | */
25 | public interface XMLPropertiesFormatBindingBuilder
26 | {
27 |
28 | /**
29 | *
30 | *
31 | * @return
32 | */
33 | void inXMLFormat();
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/configuration/src/main/java/org/apache/onami/configuration/binder/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Configuration files EDSL.
22 | *
23 | * @since 5.0
24 | */
25 | package org.apache.onami.configuration.binder;
26 |
--------------------------------------------------------------------------------
/configuration/src/main/java/org/apache/onami/configuration/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Apache Onami-Configuration adds some spice to Google Guice through configuration files!
22 | */
23 | package org.apache.onami.configuration;
24 |
--------------------------------------------------------------------------------
/configuration/src/main/java/org/apache/onami/configuration/variables/Parser.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.configuration.variables;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | /**
23 | * Produce a Resolver object from a raw input.
24 | *
25 | */
26 | public interface Parser
27 | {
28 |
29 | Resolver parse( String input );
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/configuration/src/main/java/org/apache/onami/configuration/variables/Resolver.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.configuration.variables;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import java.util.Map;
23 |
24 | /**
25 | * Resolve what should be resolved against a configuration.
26 | */
27 | public interface Resolver
28 | {
29 |
30 | /**
31 | * @param data
32 | * @return Resolved value
33 | */
34 | String resolve( Map data );
35 |
36 | /**
37 | * @return False if it's not worth to call {@link #resolve(Map)}.
38 | */
39 | boolean needsResolving();
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/configuration/src/main/java/org/apache/onami/configuration/variables/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * APIs and basic implementation of variables parser and resolver.
22 | */
23 | package org.apache.onami.configuration.variables;
24 |
--------------------------------------------------------------------------------
/configuration/src/site/resources/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/onami/64f78173d52694bd9c87a5fa3dd5fc7f93430b6c/configuration/src/site/resources/images/logo.png
--------------------------------------------------------------------------------
/configuration/src/test/data/org/apache/onami/configuration/configuration/memcached.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 | test_
23 | true
24 |
25 |
--------------------------------------------------------------------------------
/configuration/src/test/data/org/apache/onami/configuration/configuration/should-be-ignored.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one
3 | # or more contributor license agreements. See the NOTICE file
4 | # distributed with this work for additional information
5 | # regarding copyright ownership. The ASF licenses this file
6 | # to you under the Apache License, Version 2.0 (the
7 | # "License"); you may not use this file except in compliance
8 | # with the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing,
13 | # software distributed under the License is distributed on an
14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | # KIND, either express or implied. See the License for the
16 | # specific language governing permissions and limitations
17 | # under the License.
18 | #
19 |
--------------------------------------------------------------------------------
/configuration/src/test/data/org/apache/onami/configuration/jdbc.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one
3 | # or more contributor license agreements. See the NOTICE file
4 | # distributed with this work for additional information
5 | # regarding copyright ownership. The ASF licenses this file
6 | # to you under the Apache License, Version 2.0 (the
7 | # "License"); you may not use this file except in compliance
8 | # with the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing,
13 | # software distributed under the License is distributed on an
14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | # KIND, either express or implied. See the License for the
16 | # specific language governing permissions and limitations
17 | # under the License.
18 | #
19 |
20 | JDBC.driver=com.mysql.jdbc.Driver
21 | JDBC.port=3306
22 | JDBC.schema=rocoto
23 | JDBC.url=jdbc:mysql://${JDBC.host|localhost}:${JDBC.port}/${JDBC.schema}
24 | JDBC.username=simone
25 | JDBC.password=rocoto2010
26 | JDBC.autoCommit=true
27 |
--------------------------------------------------------------------------------
/configuration/src/test/data/org/apache/onami/configuration/should-be-ignored.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one
3 | # or more contributor license agreements. See the NOTICE file
4 | # distributed with this work for additional information
5 | # regarding copyright ownership. The ASF licenses this file
6 | # to you under the Apache License, Version 2.0 (the
7 | # "License"); you may not use this file except in compliance
8 | # with the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing,
13 | # software distributed under the License is distributed on an
14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | # KIND, either express or implied. See the License for the
16 | # specific language governing permissions and limitations
17 | # under the License.
18 | #
19 |
--------------------------------------------------------------------------------
/configuration/src/test/data/org/apache/onami/ibatis.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one
3 | # or more contributor license agreements. See the NOTICE file
4 | # distributed with this work for additional information
5 | # regarding copyright ownership. The ASF licenses this file
6 | # to you under the Apache License, Version 2.0 (the
7 | # "License"); you may not use this file except in compliance
8 | # with the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing,
13 | # software distributed under the License is distributed on an
14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | # KIND, either express or implied. See the License for the
16 | # specific language governing permissions and limitations
17 | # under the License.
18 | #
19 |
20 | ibatis.environment.id=test
21 | ibatis.configuration.lazyLoadingEnabled=true
22 |
--------------------------------------------------------------------------------
/configuration/src/test/data/org/apache/onami/should-be-ignored.txt:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one
3 | # or more contributor license agreements. See the NOTICE file
4 | # distributed with this work for additional information
5 | # regarding copyright ownership. The ASF licenses this file
6 | # to you under the Apache License, Version 2.0 (the
7 | # "License"); you may not use this file except in compliance
8 | # with the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing,
13 | # software distributed under the License is distributed on an
14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | # KIND, either express or implied. See the License for the
16 | # specific language governing permissions and limitations
17 | # under the License.
18 | #
19 |
--------------------------------------------------------------------------------
/configuration/src/test/resources/org/apache/onami/configuration/ldap.properties:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one
3 | # or more contributor license agreements. See the NOTICE file
4 | # distributed with this work for additional information
5 | # regarding copyright ownership. The ASF licenses this file
6 | # to you under the Apache License, Version 2.0 (the
7 | # "License"); you may not use this file except in compliance
8 | # with the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing,
13 | # software distributed under the License is distributed on an
14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | # KIND, either express or implied. See the License for the
16 | # specific language governing permissions and limitations
17 | # under the License.
18 | #
19 |
20 | ldap.host=ldap.${not.found}
21 | ldap.port=389
22 | ldap.baseDN=ou=${user.name}, dc=${env.HOME}, dc=edu
23 | ldap.user=${not.found|}
24 |
--------------------------------------------------------------------------------
/configuration/src/test/resources/proxy.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 | localhost
23 | 8180
24 |
25 |
--------------------------------------------------------------------------------
/converters/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Onami-Converters
2 | Copyright 2013 The Apache Software Foundation
3 |
4 | This product includes software developed by
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/converters/core/src/main/java/org/apache/onami/converters/core/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Contains the basic core stuff of {@code com.google.inject.spi.TypeConverter} implementations.
22 | */
23 | package org.apache.onami.converters.core;
24 |
--------------------------------------------------------------------------------
/converters/deploySite.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | #
4 | # Licensed to the Apache Software Foundation (ASF) under one
5 | # or more contributor license agreements. See the NOTICE file
6 | # distributed with this work for additional information
7 | # regarding copyright ownership. The ASF licenses this file
8 | # to you under the Apache License, Version 2.0 (the
9 | # "License"); you may not use this file except in compliance
10 | # with the License. You may obtain a copy of the License at
11 | #
12 | # http://www.apache.org/licenses/LICENSE-2.0
13 | #
14 | # Unless required by applicable law or agreed to in writing,
15 | # software distributed under the License is distributed on an
16 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | # KIND, either express or implied. See the License for the
18 | # specific language governing permissions and limitations
19 | # under the License.
20 | #
21 |
22 | mvn clean site site:stage
23 | mvn scm-publish:publish-scm $@
24 |
--------------------------------------------------------------------------------
/converters/format/src/main/java/org/apache/onami/converters/format/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Text formats {@code com.google.inject.spi.TypeConverter} implementations.
22 | */
23 | package org.apache.onami.converters.format;
24 |
--------------------------------------------------------------------------------
/converters/i18n/src/main/java/org/apache/onami/converters/i18n/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * i18n {@code com.google.inject.spi.TypeConverter} implementations.
22 | */
23 | package org.apache.onami.converters.i18n;
24 |
--------------------------------------------------------------------------------
/converters/net/src/main/java/org/apache/onami/converters/net/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Contains {@code java.net} {@code com.google.inject.spi.TypeConverter} implementations.
22 | */
23 | package org.apache.onami.converters.net;
24 |
--------------------------------------------------------------------------------
/converters/net/src/test/resources/test.properties:
--------------------------------------------------------------------------------
1 | a=b
2 |
--------------------------------------------------------------------------------
/converters/numbers/src/main/java/org/apache/onami/converters/numbers/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Contains missing Guice numbers {@code com.google.inject.spi.TypeConverter} implementations.
22 | */
23 | package org.apache.onami.converters.numbers;
24 |
--------------------------------------------------------------------------------
/converters/sql/src/main/java/org/apache/onami/converters/sql/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Contains {@code java.sql} {@code com.google.inject.spi.TypeConverter} implementations.
22 | */
23 | package org.apache.onami.converters.sql;
24 |
--------------------------------------------------------------------------------
/converters/system/src/main/java/org/apache/onami/converters/system/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * System {@code com.google.inject.spi.TypeConverter} implementations.
22 | */
23 | package org.apache.onami.converters.system;
24 |
--------------------------------------------------------------------------------
/guava/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Onami-Guava
2 | Copyright 2012-2013 The Apache Software Foundation
3 |
4 | This product includes software developed by
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/guava/src/main/java/org/apache/onami/guava/eventbus/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Modules integration with EventBus.
3 | */
4 | package org.apache.onami.guava.eventbus;
5 |
6 | /*
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | */
24 |
--------------------------------------------------------------------------------
/guava/src/test/java/org/apache/onami/guava/eventbus/ApplicationEvent.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.guava.eventbus;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | public final class ApplicationEvent
23 | {
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/lifecycle/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Onami-Lifecycle
2 | Copyright 2012-2013 The Apache Software Foundation
3 |
4 | This product includes software developed by
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/lifecycle/core/src/main/java/org/apache/onami/lifecycle/core/NoOpStageableTypeMapper.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.lifecycle.core;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import com.google.inject.TypeLiteral;
23 |
24 | class NoOpStageableTypeMapper
25 | implements StageableTypeMapper
26 | {
27 |
28 | @Override
29 | public void registerType( Stageable stageable, TypeLiteral parentType )
30 | {
31 | // NOP
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/lifecycle/core/src/test/java/org/apache/onami/lifecycle/core/TestAnnotationA.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.lifecycle.core;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import java.lang.annotation.Retention;
23 | import java.lang.annotation.Target;
24 |
25 | import static java.lang.annotation.ElementType.METHOD;
26 | import static java.lang.annotation.RetentionPolicy.RUNTIME;
27 |
28 | @Retention(RUNTIME)
29 | @Target(METHOD)
30 | public @interface TestAnnotationA
31 | {
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/lifecycle/core/src/test/java/org/apache/onami/lifecycle/core/TestAnnotationB.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.lifecycle.core;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import java.lang.annotation.Retention;
23 | import java.lang.annotation.Target;
24 |
25 | import static java.lang.annotation.ElementType.METHOD;
26 | import static java.lang.annotation.RetentionPolicy.RUNTIME;
27 |
28 | @Retention( RUNTIME )
29 | @Target( METHOD )
30 | public @interface TestAnnotationB
31 | {
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/lifecycle/core/src/test/java/org/apache/onami/lifecycle/core/TestAnnotationC.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.lifecycle.core;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import java.lang.annotation.Retention;
23 | import java.lang.annotation.Target;
24 |
25 | import static java.lang.annotation.ElementType.METHOD;
26 | import static java.lang.annotation.RetentionPolicy.RUNTIME;
27 |
28 | @Retention( RUNTIME )
29 | @Target( METHOD )
30 | public @interface TestAnnotationC
31 | {
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/lifecycle/deploySite.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | #
4 | # Licensed to the Apache Software Foundation (ASF) under one
5 | # or more contributor license agreements. See the NOTICE file
6 | # distributed with this work for additional information
7 | # regarding copyright ownership. The ASF licenses this file
8 | # to you under the Apache License, Version 2.0 (the
9 | # "License"); you may not use this file except in compliance
10 | # with the License. You may obtain a copy of the License at
11 | #
12 | # http://www.apache.org/licenses/LICENSE-2.0
13 | #
14 | # Unless required by applicable law or agreed to in writing,
15 | # software distributed under the License is distributed on an
16 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | # KIND, either express or implied. See the License for the
18 | # specific language governing permissions and limitations
19 | # under the License.
20 | #
21 |
22 | mvn clean site site:stage
23 | mvn scm-publish:publish-scm $@
24 |
--------------------------------------------------------------------------------
/lifecycle/jsr250/src/test/java/org/apache/onami/lifecycle/jsr250/DisposableObject.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.lifecycle.jsr250;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import javax.annotation.PreDestroy;
23 |
24 | public final class DisposableObject
25 | {
26 |
27 | boolean disposed = false;
28 |
29 | @PreDestroy
30 | public void dispose()
31 | {
32 | disposed = true;
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/lifecycle/jsr250/src/test/java/org/apache/onami/lifecycle/jsr250/ThrowingExceptionAfterInjectionMethod.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.lifecycle.jsr250;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import javax.annotation.PostConstruct;
23 |
24 | public final class ThrowingExceptionAfterInjectionMethod
25 | {
26 |
27 | @PostConstruct
28 | public void init()
29 | {
30 | throw new IllegalStateException();
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/lifecycle/jsr250/src/test/java/org/apache/onami/lifecycle/jsr250/ThrowingExceptionConstructor.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.lifecycle.jsr250;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import javax.inject.Inject;
23 |
24 | public final class ThrowingExceptionConstructor
25 | {
26 |
27 | @Inject
28 | public ThrowingExceptionConstructor( DisposableObject disposableObject )
29 | {
30 | throw new IllegalArgumentException( "Expected exception" );
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/lifecycle/jsr250/src/test/java/org/apache/onami/lifecycle/jsr250/ThrowingExceptionConstructor2.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.lifecycle.jsr250;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import javax.inject.Inject;
23 | import java.util.concurrent.ExecutorService;
24 |
25 | public final class ThrowingExceptionConstructor2
26 | {
27 |
28 | @Inject
29 | public ThrowingExceptionConstructor2( ExecutorService executorService )
30 | {
31 | throw new IllegalArgumentException( "Expected exception" );
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/lifecycle/jsr250/src/test/java/org/apache/onami/lifecycle/jsr250/ThrowingExceptionDisposeMethod.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.lifecycle.jsr250;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import javax.annotation.PreDestroy;
23 |
24 | public final class ThrowingExceptionDisposeMethod
25 | {
26 |
27 | @PreDestroy
28 | public void close()
29 | {
30 | throw new IllegalStateException();
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/lifecycle/jsr250/src/test/java/org/apache/onami/lifecycle/jsr250/WrongAfterInjectionMethod.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.lifecycle.jsr250;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import javax.annotation.PostConstruct;
23 |
24 | public final class WrongAfterInjectionMethod
25 | {
26 |
27 | @PostConstruct
28 | public void init( String misplacedArg )
29 | {
30 | // do nothing
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/lifecycle/jsr250/src/test/java/org/apache/onami/lifecycle/jsr250/WrongPreDestroyMethod.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.lifecycle.jsr250;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import javax.annotation.PreDestroy;
23 |
24 | public final class WrongPreDestroyMethod
25 | {
26 |
27 | @PreDestroy
28 | public void close( Integer misplacedArg )
29 | {
30 | // do nothing
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/lifecycle/src/site/apt/index.apt.vm:
--------------------------------------------------------------------------------
1 | ------
2 | Home
3 | ------
4 | The Apache Onami developers team
5 | ------
6 | 2012
7 |
8 | ~~
9 | ~~ Licensed to the Apache Software Foundation (ASF) under one
10 | ~~ or more contributor license agreements. See the NOTICE file
11 | ~~ distributed with this work for additional information
12 | ~~ regarding copyright ownership. The ASF licenses this file
13 | ~~ to you under the Apache License, Version 2.0 (the
14 | ~~ "License"); you may not use this file except in compliance
15 | ~~ with the License. You may obtain a copy of the License at
16 | ~~
17 | ~~ http://www.apache.org/licenses/LICENSE-2.0
18 | ~~
19 | ~~ Unless required by applicable law or agreed to in writing,
20 | ~~ software distributed under the License is distributed on an
21 | ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
22 | ~~ KIND, either express or implied. See the License for the
23 | ~~ specific language governing permissions and limitations
24 | ~~ under the License.
25 | ~~
26 |
27 | Welcome to ${project.name}!
28 |
29 | This is the parent project for Onami modules related to lifecycle management.
30 | Select one of the modules in the menu at the left for details on the various
31 | components that make up Onami Lifecycle.
32 |
--------------------------------------------------------------------------------
/lifecycle/warmup/src/site/resources/images/abc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/onami/64f78173d52694bd9c87a5fa3dd5fc7f93430b6c/lifecycle/warmup/src/site/resources/images/abc.png
--------------------------------------------------------------------------------
/lifecycle/warmup/src/test/java/org/apachi/onami/lifecycle/warmup/WarmUpWithException.java:
--------------------------------------------------------------------------------
1 | package org.apachi.onami.lifecycle.warmup;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import org.apache.onami.lifecycle.warmup.WarmUp;
23 |
24 | public class WarmUpWithException
25 | {
26 | @WarmUp
27 | public void warmUp()
28 | {
29 | System.out.println( getNull().toString() ); // generate NPE
30 | }
31 |
32 | private Object getNull()
33 | {
34 | return null;
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/logging/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Onami-Logging
2 | Copyright 2012-2013 The Apache Software Foundation
3 |
4 | This product includes software developed by
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/logging/commons-logging/src/main/java/org/apache/onami/logging/acl/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Apache Commons-Logging injection implementation.
22 | *
23 | * @author Marco Speranza
24 | * @version $Id$
25 | */
26 | package org.apache.onami.logging.acl;
27 |
--------------------------------------------------------------------------------
/logging/commons-logging/src/test/resources/testng.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/logging/core/src/main/java/org/apache/onami/logging/core/InjectLogger.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.logging.core;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import java.lang.annotation.ElementType;
23 | import java.lang.annotation.Retention;
24 | import java.lang.annotation.RetentionPolicy;
25 | import java.lang.annotation.Target;
26 |
27 | /**
28 | *
29 | *
30 | * @since 3.0
31 | */
32 | @Retention(RetentionPolicy.RUNTIME)
33 | @Target(ElementType.FIELD)
34 | public @interface InjectLogger {
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/logging/core/src/main/java/org/apache/onami/logging/core/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Core classes definition and shared stuff.
22 | */
23 | package org.apache.onami.logging.core;
24 |
--------------------------------------------------------------------------------
/logging/core/src/test/resources/testng.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/logging/deploySite.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | #
4 | # Licensed to the Apache Software Foundation (ASF) under one
5 | # or more contributor license agreements. See the NOTICE file
6 | # distributed with this work for additional information
7 | # regarding copyright ownership. The ASF licenses this file
8 | # to you under the Apache License, Version 2.0 (the
9 | # "License"); you may not use this file except in compliance
10 | # with the License. You may obtain a copy of the License at
11 | #
12 | # http://www.apache.org/licenses/LICENSE-2.0
13 | #
14 | # Unless required by applicable law or agreed to in writing,
15 | # software distributed under the License is distributed on an
16 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | # KIND, either express or implied. See the License for the
18 | # specific language governing permissions and limitations
19 | # under the License.
20 | #
21 |
22 | mvn clean site-deploy scm-publish:publish-scm $@
23 |
--------------------------------------------------------------------------------
/logging/juli/src/main/java/org/apache/onami/logging/juli/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * java.util.logging.Logger
injection implementation.
22 | */
23 | package org.apache.onami.logging.juli;
24 |
--------------------------------------------------------------------------------
/logging/log4j/src/main/java/org/apache/onami/logging/log4j/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Apache Log4j injection implementation.
22 | */
23 | package org.apache.onami.logging.log4j;
24 |
--------------------------------------------------------------------------------
/logging/log4j/src/test/resources/testng.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/logging/log4j2/src/main/java/org/apache/onami/logging/log4j2/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Apache Log4j2 injection implementation.
22 | */
23 | package org.apache.onami.logging.log4j2;
24 |
--------------------------------------------------------------------------------
/logging/log4j2/src/test/resources/testng.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/logging/slf4j/src/main/java/org/apache/onami/logging/slf4j/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * SLF4J injection implementation.
22 | */
23 | package org.apache.onami.logging.slf4j;
24 |
--------------------------------------------------------------------------------
/logging/slf4j/src/test/resources/testng.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/logging/src/site/resources/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/onami/64f78173d52694bd9c87a5fa3dd5fc7f93430b6c/logging/src/site/resources/images/logo.png
--------------------------------------------------------------------------------
/logging/testframework/src/main/java/org/apache/onami/logging/testfw/Service.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.logging.testfw;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | /**
23 | *
24 | */
25 | public interface Service {
26 |
27 | void go();
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/logging/testframework/src/main/java/org/apache/onami/logging/testfw/ServiceImpl.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.logging.testfw;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | /**
23 | *
24 | */
25 | public final class ServiceImpl implements Service {
26 |
27 | public void go() {
28 | // implementation not needed
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/logging/testframework/src/main/java/org/apache/onami/logging/testfw/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Contains a mini-test framework shared between all the modules.
22 | */
23 | package org.apache.onami.logging.testfw;
24 |
--------------------------------------------------------------------------------
/logging/testframework/src/test/resources/testng.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
21 |
22 |
23 |
24 |
--------------------------------------------------------------------------------
/parent/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Onami
2 | Copyright 2012-2013 The Apache Software Foundation
3 |
4 | This product includes software developed by
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/persist/CHANGES:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one
3 | # or more contributor license agreements. See the NOTICE file
4 | # distributed with this work for additional information
5 | # regarding copyright ownership. The ASF licenses this file
6 | # to you under the Apache License, Version 2.0 (the
7 | # "License"); you may not use this file except in compliance
8 | # with the License. You may obtain a copy of the License at
9 | #
10 | # http://www.apache.org/licenses/LICENSE-2.0
11 | #
12 | # Unless required by applicable law or agreed to in writing,
13 | # software distributed under the License is distributed on an
14 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | # KIND, either express or implied. See the License for the
16 | # specific language governing permissions and limitations
17 | # under the License.
18 | #
19 |
20 | Apache Onami Persist
21 | Release Notes
22 |
23 | ===========================================================================================
24 |
25 | 1.0.0 - 2014-07-15 (yyyy-MM-dd)
26 |
27 | Initial Version
28 |
--------------------------------------------------------------------------------
/persist/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Onami-Persist
2 | Copyright 2013 The Apache Software Foundation
3 |
4 | This product includes software developed by
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/persist/src/main/java/org/apache/onami/persist/AllUnitsOfWork.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.persist;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | /**
23 | * Interface for aggregation of multiple {@link UnitOfWork UnitsOfWork}.
24 | */
25 | public interface AllUnitsOfWork
26 | {
27 |
28 | /**
29 | * Calls {@link UnitOfWork#begin()} on all units of work which are not active.
30 | */
31 | void beginAllInactiveUnitsOfWork();
32 |
33 | /**
34 | * Calls {@link UnitOfWork#end()} on all units of work.
35 | */
36 | void endAllUnitsOfWork();
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/persist/src/main/java/org/apache/onami/persist/EntityManagerFactoryProvider.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.persist;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import javax.persistence.EntityManagerFactory;
23 |
24 | /**
25 | * Provider for {@link EntityManagerFactory}.
26 | */
27 | interface EntityManagerFactoryProvider
28 | {
29 |
30 | /**
31 | * @throws IllegalStateException if {@link PersistenceService#isRunning()} returns {@code false}.
32 | */
33 | EntityManagerFactory get()
34 | throws IllegalStateException;
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/persist/src/main/java/org/apache/onami/persist/ForApplicationManaged.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.persist;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import javax.inject.Qualifier;
23 | import java.lang.annotation.ElementType;
24 | import java.lang.annotation.Retention;
25 | import java.lang.annotation.RetentionPolicy;
26 | import java.lang.annotation.Target;
27 |
28 | /**
29 | * Annotation to mark bindings which are specific for application managed persistence units.
30 | */
31 | @Target( { ElementType.PARAMETER } )
32 | @Retention( RetentionPolicy.RUNTIME )
33 | @Qualifier
34 | @interface ForApplicationManaged
35 | {
36 | }
37 |
--------------------------------------------------------------------------------
/persist/src/main/java/org/apache/onami/persist/ForContainerManaged.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.persist;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import javax.inject.Qualifier;
23 | import java.lang.annotation.ElementType;
24 | import java.lang.annotation.Retention;
25 | import java.lang.annotation.RetentionPolicy;
26 | import java.lang.annotation.Target;
27 |
28 | /**
29 | * Annotation to mark bindings which are specific for container managed persistence units.
30 | */
31 | @Target( { ElementType.PARAMETER } )
32 | @Retention( RetentionPolicy.RUNTIME )
33 | @Qualifier
34 | @interface ForContainerManaged
35 | {
36 | }
37 |
--------------------------------------------------------------------------------
/persist/src/main/java/org/apache/onami/persist/Nullable.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.persist;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import java.lang.annotation.ElementType;
23 | import java.lang.annotation.Retention;
24 | import java.lang.annotation.RetentionPolicy;
25 | import java.lang.annotation.Target;
26 |
27 | /**
28 | * Annotation to mark injection points which are optional.
29 | * Guice may inject {@code null} if there is no suitable binding.
30 | */
31 | @Retention( RetentionPolicy.RUNTIME )
32 | @Target( ElementType.PARAMETER )
33 | @interface Nullable
34 | {
35 | }
36 |
--------------------------------------------------------------------------------
/persist/src/main/java/org/apache/onami/persist/TransactionFacadeFactory.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.persist;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | /**
23 | * Factory for {@link TransactionFacade}.
24 | */
25 | interface TransactionFacadeFactory
26 | {
27 |
28 | /**
29 | * Creates a new transaction facade.
30 | *
31 | * @return the transaction facade
32 | */
33 | TransactionFacade createTransactionFacade();
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/persist/src/main/java/org/apache/onami/persist/VisibleForTesting.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.persist;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import java.lang.annotation.ElementType;
23 | import java.lang.annotation.Retention;
24 | import java.lang.annotation.RetentionPolicy;
25 | import java.lang.annotation.Target;
26 |
27 | /**
28 | * Annotation to mark the intention of increasing the visibility of a method or field so it can be used in a test.
29 | */
30 | @Target( { ElementType.METHOD, ElementType.FIELD } )
31 | @Retention( RetentionPolicy.SOURCE )
32 | @interface VisibleForTesting
33 | {
34 | }
35 |
--------------------------------------------------------------------------------
/persist/src/test/java/org/apache/onami/persist/OtherPersistenceUnit.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.persist;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import java.lang.annotation.ElementType;
23 | import java.lang.annotation.Retention;
24 | import java.lang.annotation.RetentionPolicy;
25 | import java.lang.annotation.Target;
26 |
27 | /**
28 | * Annotation for unit tests.
29 | */
30 | @Retention(RetentionPolicy.RUNTIME)
31 | @Target( { ElementType.FIELD, ElementType.PARAMETER, ElementType.METHOD } )
32 | public @interface OtherPersistenceUnit
33 | {
34 | }
35 |
--------------------------------------------------------------------------------
/persist/src/test/java/org/apache/onami/persist/TestPersistenceUnit.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.persist;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import java.lang.annotation.ElementType;
23 | import java.lang.annotation.Retention;
24 | import java.lang.annotation.RetentionPolicy;
25 | import java.lang.annotation.Target;
26 |
27 | /**
28 | * Annotation for unit tests.
29 | */
30 | @Retention(RetentionPolicy.RUNTIME)
31 | @Target( { ElementType.FIELD, ElementType.PARAMETER, ElementType.METHOD } )
32 | public @interface TestPersistenceUnit
33 | {
34 | }
35 |
--------------------------------------------------------------------------------
/scheduler/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Onami-Scheduler
2 | Copyright 2012-2013 The Apache Software Foundation
3 |
4 | This product includes software developed by
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/scheduler/src/main/java/org/apache/onami/scheduler/package-info.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Guartz is the Google Guice extension for Quartz Scheduler, originally developed by Nino Martinez Wael.
3 | */
4 | package org.apache.onami.scheduler;
5 |
6 | /*
7 | * Licensed to the Apache Software Foundation (ASF) under one
8 | * or more contributor license agreements. See the NOTICE file
9 | * distributed with this work for additional information
10 | * regarding copyright ownership. The ASF licenses this file
11 | * to you under the Apache License, Version 2.0 (the
12 | * "License"); you may not use this file except in compliance
13 | * with the License. You may obtain a copy of the License at
14 | *
15 | * http://www.apache.org/licenses/LICENSE-2.0
16 | *
17 | * Unless required by applicable law or agreed to in writing,
18 | * software distributed under the License is distributed on an
19 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
20 | * KIND, either express or implied. See the License for the
21 | * specific language governing permissions and limitations
22 | * under the License.
23 | */
24 |
--------------------------------------------------------------------------------
/scopes/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Onami-Scopes
2 | Copyright 2013 The Apache Software Foundation
3 |
4 | This product includes software developed by
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/scopes/src/main/java/org/apache/onami/scopes/ScopesModule.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.scopes;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import com.google.inject.AbstractModule;
23 |
24 | /**
25 | * Guice module to register scopes.
26 | */
27 | public class ScopesModule
28 | extends AbstractModule
29 | {
30 |
31 | @Override
32 | protected void configure()
33 | {
34 | bindScope( LazySingleton.class, LazySingletonScope.get() );
35 | bindScope( ConcurrentLazySingleton.class, ConcurrentLazySingletonScope.get() );
36 | }
37 |
38 | }
39 |
--------------------------------------------------------------------------------
/scopes/src/main/java/org/apache/onami/scopes/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Apache Onami-Scopes adds useful Scopes to Google Guice.
22 | */
23 | package org.apache.onami.scopes;
24 |
--------------------------------------------------------------------------------
/site/src/site/resources/images/apache-onami-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/apache/onami/64f78173d52694bd9c87a5fa3dd5fc7f93430b6c/site/src/site/resources/images/apache-onami-logo.png
--------------------------------------------------------------------------------
/spi/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Onami-SPI
2 | Copyright 2012-2013 The Apache Software Foundation
3 |
4 | This product includes software developed by
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/spi/core/src/main/java/org/apache/onami/spi/core/package-info.java:
--------------------------------------------------------------------------------
1 |
2 | /*
3 | * Licensed to the Apache Software Foundation (ASF) under one
4 | * or more contributor license agreements. See the NOTICE file
5 | * distributed with this work for additional information
6 | * regarding copyright ownership. The ASF licenses this file
7 | * to you under the Apache License, Version 2.0 (the
8 | * "License"); you may not use this file except in compliance
9 | * with the License. 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,
14 | * software distributed under the License is distributed on an
15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | * KIND, either express or implied. See the License for the
17 | * specific language governing permissions and limitations
18 | * under the License.
19 | */
20 |
21 | /**
22 | * Lightweight Java5 compatible ServiceLoader implementation.
23 | */
24 | package org.apache.onami.spi.core;
25 |
--------------------------------------------------------------------------------
/spi/deploySite.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | #
4 | # Licensed to the Apache Software Foundation (ASF) under one
5 | # or more contributor license agreements. See the NOTICE file
6 | # distributed with this work for additional information
7 | # regarding copyright ownership. The ASF licenses this file
8 | # to you under the Apache License, Version 2.0 (the
9 | # "License"); you may not use this file except in compliance
10 | # with the License. You may obtain a copy of the License at
11 | #
12 | # http://www.apache.org/licenses/LICENSE-2.0
13 | #
14 | # Unless required by applicable law or agreed to in writing,
15 | # software distributed under the License is distributed on an
16 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | # KIND, either express or implied. See the License for the
18 | # specific language governing permissions and limitations
19 | # under the License.
20 | #
21 |
22 | mvn clean site-deploy scm-publish:publish-scm $@
23 |
--------------------------------------------------------------------------------
/spi/modules/src/main/java/org/apache/onami/spi/modules/package-info.java:
--------------------------------------------------------------------------------
1 |
2 | /*
3 | * Licensed to the Apache Software Foundation (ASF) under one
4 | * or more contributor license agreements. See the NOTICE file
5 | * distributed with this work for additional information
6 | * regarding copyright ownership. The ASF licenses this file
7 | * to you under the Apache License, Version 2.0 (the
8 | * "License"); you may not use this file except in compliance
9 | * with the License. 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,
14 | * software distributed under the License is distributed on an
15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | * KIND, either express or implied. See the License for the
17 | * specific language governing permissions and limitations
18 | * under the License.
19 | */
20 |
21 | /**
22 | * Guice Module discovery and load via SPI pattern.
23 | */
24 | package org.apache.onami.spi.modules;
25 |
--------------------------------------------------------------------------------
/spi/modules/src/test/java/org/apache/onami/spi/modules/AcmeService.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.spi.modules;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | public interface AcmeService
23 | {
24 |
25 | void doSomething();
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/spi/modules/src/test/java/org/apache/onami/spi/modules/AcmeServiceImpl1.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.spi.modules;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | public final class AcmeServiceImpl1
23 | implements AcmeService
24 | {
25 |
26 | public void doSomething()
27 | {
28 | // but does nothing
29 |
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/spi/modules/src/test/java/org/apache/onami/spi/modules/AcmeServiceImpl2.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.spi.modules;
2 |
3 | import javax.inject.Named;
4 |
5 | /*
6 | * Licensed to the Apache Software Foundation (ASF) under one
7 | * or more contributor license agreements. See the NOTICE file
8 | * distributed with this work for additional information
9 | * regarding copyright ownership. The ASF licenses this file
10 | * to you under the Apache License, Version 2.0 (the
11 | * "License"); you may not use this file except in compliance
12 | * with the License. You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing,
17 | * software distributed under the License is distributed on an
18 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19 | * KIND, either express or implied. See the License for the
20 | * specific language governing permissions and limitations
21 | * under the License.
22 | */
23 |
24 | @Named( "second" )
25 | public final class AcmeServiceImpl2
26 | implements AcmeService
27 | {
28 |
29 | public void doSomething()
30 | {
31 | // but does nothing
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spi/modules/src/test/resources/META-INF/services/com.google.inject.Module:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
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 | org.apache.onami.spi.modules.GuiceServiceLoaderTestCase$AcmeModule # EOL comment
19 |
20 | # comments & blank lines
21 |
22 |
23 | #
24 |
25 |
26 |
--------------------------------------------------------------------------------
/spi/services/src/main/java/org/apache/onami/spi/services/package-info.java:
--------------------------------------------------------------------------------
1 |
2 | /*
3 | * Licensed to the Apache Software Foundation (ASF) under one
4 | * or more contributor license agreements. See the NOTICE file
5 | * distributed with this work for additional information
6 | * regarding copyright ownership. The ASF licenses this file
7 | * to you under the Apache License, Version 2.0 (the
8 | * "License"); you may not use this file except in compliance
9 | * with the License. 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,
14 | * software distributed under the License is distributed on an
15 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 | * KIND, either express or implied. See the License for the
17 | * specific language governing permissions and limitations
18 | * under the License.
19 | */
20 |
21 | /**
22 | * Small EDSL to discover and bind services implementation via SPI pattern.
23 | */
24 | package org.apache.onami.spi.services;
25 |
--------------------------------------------------------------------------------
/spi/services/src/test/java/org/apache/onami/spi/services/AcmeService.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.spi.services;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | public interface AcmeService
23 | {
24 |
25 | void doSomething();
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/spi/services/src/test/java/org/apache/onami/spi/services/AcmeServiceImpl1.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.spi.services;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | public final class AcmeServiceImpl1
23 | implements AcmeService
24 | {
25 |
26 | public void doSomething()
27 | {
28 | // but does nothing
29 |
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/spi/services/src/test/java/org/apache/onami/spi/services/AcmeServiceImpl2.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.spi.services;
2 |
3 | import javax.inject.Named;
4 |
5 | /*
6 | * Licensed to the Apache Software Foundation (ASF) under one
7 | * or more contributor license agreements. See the NOTICE file
8 | * distributed with this work for additional information
9 | * regarding copyright ownership. The ASF licenses this file
10 | * to you under the Apache License, Version 2.0 (the
11 | * "License"); you may not use this file except in compliance
12 | * with the License. You may obtain a copy of the License at
13 | *
14 | * http://www.apache.org/licenses/LICENSE-2.0
15 | *
16 | * Unless required by applicable law or agreed to in writing,
17 | * software distributed under the License is distributed on an
18 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19 | * KIND, either express or implied. See the License for the
20 | * specific language governing permissions and limitations
21 | * under the License.
22 | */
23 |
24 | @Named( "second" )
25 | public final class AcmeServiceImpl2
26 | implements AcmeService
27 | {
28 |
29 | public void doSomething()
30 | {
31 | // but does nothing
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/spi/services/src/test/java/org/apache/onami/spi/services/FooService.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.spi.services;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | public interface FooService
23 | {
24 |
25 | void doSomething();
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/spi/services/src/test/java/org/apache/onami/spi/services/FooServiceImpl1.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.spi.services;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | @BarBindingAnnotation( 1 )
23 | public final class FooServiceImpl1
24 | implements FooService
25 | {
26 |
27 | public void doSomething()
28 | {
29 | // ... but does nothing
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/spi/services/src/test/java/org/apache/onami/spi/services/FooServiceImpl2.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.spi.services;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | @BarBindingAnnotation( 2 )
23 | public final class FooServiceImpl2
24 | implements FooService
25 | {
26 |
27 | public void doSomething()
28 | {
29 | // ... but does nothing
30 | }
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/spi/services/src/test/resources/META-INF/services/org.apache.onami.spi.services.AcmeService:
--------------------------------------------------------------------------------
1 | #
2 | # Licensed to the Apache Software Foundation (ASF) under one or more
3 | # contributor license agreements. See the NOTICE file distributed with
4 | # this work for additional information regarding copyright ownership.
5 | # The ASF licenses this file to You under the Apache License, Version 2.0
6 | # (the "License"); you may not use this file except in compliance with
7 | # the License. You may obtain a copy of the License at
8 | #
9 | # http://www.apache.org/licenses/LICENSE-2.0
10 | #
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 | org.apache.onami.spi.services.AcmeServiceImpl1 # EOL comment
19 |
20 | # comments & blank lines
21 |
22 |
23 | #
24 |
25 |
26 | org.apache.onami.spi.services.AcmeServiceImpl2 # EOL comment
27 |
28 | # comments & blank lines
29 |
30 |
31 | #
32 |
33 |
34 |
--------------------------------------------------------------------------------
/test/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Onami-Test
2 | Copyright 2012-2013 The Apache Software Foundation
3 |
4 | This product includes software developed by
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/test/checkstyle-suppressions.xml:
--------------------------------------------------------------------------------
1 |
2 |
5 |
23 |
24 |
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/test/src/main/java/org/apache/onami/test/annotation/MockType.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.test.annotation;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | /**
23 | * Enumeration class to specifies your preferred mock framework.
24 | *
25 | * @see MockFramework
26 | */
27 | public enum MockType
28 | {
29 | /**
30 | * Identify the Easy Mock framework
31 | */
32 | EASY_MOCK,
33 |
34 | /**
35 | * Identify the Mockito framework
36 | */
37 | MOCKITO
38 |
39 | }
40 |
--------------------------------------------------------------------------------
/test/src/main/java/org/apache/onami/test/annotation/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Contains core annotations classes to configure JUnice framework.
22 | */
23 | package org.apache.onami.test.annotation;
--------------------------------------------------------------------------------
/test/src/main/java/org/apache/onami/test/handler/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Contains core classes to handle annotations found by class introspector.
22 | */
23 | package org.apache.onami.test.handler;
--------------------------------------------------------------------------------
/test/src/main/java/org/apache/onami/test/mock/framework/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Contains core classes to build mock framework.
22 | */
23 | package org.apache.onami.test.mock.framework;
--------------------------------------------------------------------------------
/test/src/main/java/org/apache/onami/test/mock/guice/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Contains core classes to build mock fileds google member injector.
22 | */
23 | package org.apache.onami.test.mock.guice;
--------------------------------------------------------------------------------
/test/src/main/java/org/apache/onami/test/mock/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Contains core classes to build mock framework and mock objects.
22 | */
23 | package org.apache.onami.test.mock;
24 |
25 |
--------------------------------------------------------------------------------
/test/src/main/java/org/apache/onami/test/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Contains core classes to create JUnice Runner.
22 | */
23 | package org.apache.onami.test;
24 |
25 |
--------------------------------------------------------------------------------
/test/src/main/java/org/apache/onami/test/reflection/ClassHandler.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.test.reflection;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import java.lang.annotation.Annotation;
23 |
24 | /**
25 | * Interface to specify a generic class handler.
26 | *
27 | * @param whatever annotation type
28 | */
29 | public interface ClassHandler
30 | extends AnnotationHandler>
31 | {
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/test/src/main/java/org/apache/onami/test/reflection/FieldHandler.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.test.reflection;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import java.lang.annotation.Annotation;
23 | import java.lang.reflect.Field;
24 |
25 | /**
26 | * Interface to specify a generic field handler.
27 | *
28 | * @param whatever annotation type
29 | */
30 | public interface FieldHandler
31 | extends AnnotationHandler
32 | {
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/test/src/main/java/org/apache/onami/test/reflection/MethodHandler.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.test.reflection;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import java.lang.annotation.Annotation;
23 | import java.lang.reflect.Method;
24 |
25 | /**
26 | * Interface to specify a generic method handler.
27 | *
28 | * @param whatever annotation type
29 | */
30 | public interface MethodHandler
31 | extends AnnotationHandler
32 | {
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/test/src/main/java/org/apache/onami/test/reflection/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Contains core classes to visit Java classes via reflection and handling actions during the analysis.
22 | */
23 | package org.apache.onami.test.reflection;
24 |
--------------------------------------------------------------------------------
/test/src/test/java/org/apache/onami/test/OnamiSuiteTest.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.test;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one or more
5 | * contributor license agreements. See the NOTICE file distributed with
6 | * this work for additional information regarding copyright ownership.
7 | * The ASF licenses this file to You under the Apache License, Version 2.0
8 | * (the "License"); you may not use this file except in compliance with
9 | * the License. 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 | import org.junit.runner.RunWith;
21 | import org.junit.runners.Suite.SuiteClasses;
22 |
23 | @RunWith(OnamiSuite.class)
24 | @SuiteClasses({ InjectDependingMockObjectTestCase.class, InjectFromSuperClassTestCase.class })
25 | public class OnamiSuiteTest {
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/test/src/test/java/org/apache/onami/test/data/ComplexModule.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.test.data;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import com.google.inject.AbstractModule;
23 |
24 | public class ComplexModule
25 | extends AbstractModule
26 | {
27 |
28 | private final String name;
29 |
30 | public ComplexModule( String name )
31 | {
32 | this.name = name;
33 | }
34 |
35 | @Override
36 | protected void configure()
37 | {
38 | bind( WhoIm.class ).toInstance( new WhoIm( name ) );
39 | }
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/test/src/test/java/org/apache/onami/test/data/HelloWordAnnotated.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.test.data;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import javax.inject.Inject;
23 | import com.google.inject.name.Named;
24 |
25 | public class HelloWordAnnotated
26 | {
27 |
28 | @Inject
29 | @TestAnnotation
30 | Service service;
31 |
32 | @Inject
33 | @Named( "test.named" )
34 | Service named;
35 |
36 | public String go()
37 | {
38 | return service.go();
39 | }
40 |
41 | public String getNamed()
42 | {
43 | return named.go();
44 | }
45 |
46 | }
47 |
--------------------------------------------------------------------------------
/test/src/test/java/org/apache/onami/test/data/Service.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.test.data;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | public interface Service
23 | {
24 |
25 | String go();
26 |
27 | void call( String value );
28 |
29 | }
30 |
--------------------------------------------------------------------------------
/test/src/test/java/org/apache/onami/test/data/ServiceImpl.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.test.data;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | public class ServiceImpl
23 | implements Service
24 | {
25 |
26 | public void call( String value )
27 | {
28 | // do nothing
29 | }
30 |
31 | public String go()
32 | {
33 | return "It's real class";
34 | }
35 |
36 | }
37 |
--------------------------------------------------------------------------------
/test/src/test/java/org/apache/onami/test/data/ServiceMockProvider.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.test.data;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import org.easymock.EasyMock;
23 |
24 | public class ServiceMockProvider
25 | {
26 |
27 | public static Service providerMethod()
28 | {
29 | Service mockedService = EasyMock.createNiceMock( Service.class );
30 | return mockedService;
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/test/src/test/java/org/apache/onami/test/data/ServiceModule.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.test.data;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import com.google.inject.AbstractModule;
23 |
24 | public class ServiceModule
25 | extends AbstractModule
26 | {
27 |
28 | @Override
29 | protected void configure()
30 | {
31 | bind( Service.class ).to( ServiceImpl.class ).asEagerSingleton();
32 | bind( TelephonService.class ).to( TelephonServiceImpl.class ).asEagerSingleton();
33 | }
34 |
35 | }
36 |
--------------------------------------------------------------------------------
/test/src/test/java/org/apache/onami/test/data/SimpleModule.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.test.data;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import com.google.inject.AbstractModule;
23 |
24 | public class SimpleModule
25 | extends AbstractModule
26 | {
27 |
28 | @Override
29 | protected void configure()
30 | {
31 | bind( HelloWorld.class );
32 | }
33 |
34 | }
35 |
--------------------------------------------------------------------------------
/test/src/test/java/org/apache/onami/test/data/TelephonService.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.test.data;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | public interface TelephonService
23 | {
24 |
25 | String getTelephonNumber();
26 |
27 | }
28 |
--------------------------------------------------------------------------------
/test/src/test/java/org/apache/onami/test/data/TelephonServiceImpl.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.test.data;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | public class TelephonServiceImpl
23 | implements TelephonService
24 | {
25 |
26 | public String getTelephonNumber()
27 | {
28 | return "It's real class";
29 | }
30 |
31 | }
32 |
--------------------------------------------------------------------------------
/test/src/test/java/org/apache/onami/test/data/TestAnnotation.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.test.data;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import java.lang.annotation.Retention;
23 | import java.lang.annotation.RetentionPolicy;
24 |
25 | import javax.inject.Qualifier;
26 |
27 | @Qualifier
28 | @Retention( RetentionPolicy.RUNTIME )
29 | public @interface TestAnnotation
30 | {
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/test/src/test/java/org/apache/onami/test/data/TestAnnotation2.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.test.data;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | import java.lang.annotation.Retention;
23 | import java.lang.annotation.RetentionPolicy;
24 |
25 | import javax.inject.Qualifier;
26 |
27 | @Qualifier
28 | @Retention( RetentionPolicy.RUNTIME )
29 | public @interface TestAnnotation2
30 | {
31 |
32 | }
33 |
--------------------------------------------------------------------------------
/test/src/test/java/org/apache/onami/test/data/WhoIm.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.test.data;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | public class WhoIm
23 | {
24 |
25 | private final String name;
26 |
27 | public WhoIm( String name )
28 | {
29 | this.name = name;
30 | }
31 |
32 | public String sayWhoIm()
33 | {
34 | return name;
35 | }
36 |
37 | }
38 |
--------------------------------------------------------------------------------
/validation/NOTICE:
--------------------------------------------------------------------------------
1 | Apache Onami-Validation
2 | Copyright 2013 The Apache Software Foundation
3 |
4 | This product includes software developed by
5 | The Apache Software Foundation (http://www.apache.org/).
6 |
--------------------------------------------------------------------------------
/validation/src/main/java/org/apache/onami/validation/package-info.java:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 |
20 | /**
21 | * Contains Apache BVal support for Google-Guice.
22 | */
23 | package org.apache.onami.validation;
24 |
--------------------------------------------------------------------------------
/validation/src/test/java/org/apache/onami/validation/DummyException.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.validation;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | /**
23 | *
24 | */
25 | public final class DummyException
26 | extends Exception
27 | {
28 |
29 | private static final long serialVersionUID = 1L;
30 |
31 | public DummyException( Throwable cause )
32 | {
33 | super( cause );
34 | }
35 |
36 | public DummyException( String message, Throwable cause )
37 | {
38 | super( message, cause );
39 | }
40 |
41 | }
42 |
--------------------------------------------------------------------------------
/validation/src/test/java/org/apache/onami/validation/Insert.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.validation;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | /**
23 | *
24 | */
25 | public interface Insert
26 | {
27 |
28 | }
29 |
--------------------------------------------------------------------------------
/validation/src/test/java/org/apache/onami/validation/Update.java:
--------------------------------------------------------------------------------
1 | package org.apache.onami.validation;
2 |
3 | /*
4 | * Licensed to the Apache Software Foundation (ASF) under one
5 | * or more contributor license agreements. See the NOTICE file
6 | * distributed with this work for additional information
7 | * regarding copyright ownership. The ASF licenses this file
8 | * to you under the Apache License, Version 2.0 (the
9 | * "License"); you may not use this file except in compliance
10 | * with the License. You may obtain a copy of the License at
11 | *
12 | * http://www.apache.org/licenses/LICENSE-2.0
13 | *
14 | * Unless required by applicable law or agreed to in writing,
15 | * software distributed under the License is distributed on an
16 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 | * KIND, either express or implied. See the License for the
18 | * specific language governing permissions and limitations
19 | * under the License.
20 | */
21 |
22 | /**
23 | *
24 | */
25 | public interface Update
26 | {
27 |
28 | }
29 |
--------------------------------------------------------------------------------