You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by an...@apache.org on 2015/09/25 12:43:08 UTC
[33/33] tomee git commit: Align SNAPSHOT versions & reformat examples
Align SNAPSHOT versions & reformat examples
Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/f9f1b8ad
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/f9f1b8ad
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/f9f1b8ad
Branch: refs/heads/master
Commit: f9f1b8ad0fdec6b9f9455573b48ddad825846b22
Parents: 9abcc39
Author: andygumbrecht@apache.org <an...@gmx.de>
Authored: Fri Sep 25 12:42:02 2015 +0200
Committer: andygumbrecht@apache.org <an...@gmx.de>
Committed: Fri Sep 25 12:42:02 2015 +0200
----------------------------------------------------------------------
.../org/superbiz/accesstimeout/BusyBee.java | 132 ++--
.../accesstimeout/api/AwaitBriefly.java | 64 +-
.../accesstimeout/api/AwaitForever.java | 64 +-
.../superbiz/accesstimeout/api/AwaitNever.java | 62 +-
.../org/superbiz/accesstimeout/BusyBeeTest.java | 164 ++--
.../org/superbiz/accesstimeout/BusyBee.java | 128 +--
.../org/superbiz/accesstimeout/BusyBeeTest.java | 164 ++--
.../src/main/java/org/superbiz/altdd/Movie.java | 122 +--
.../main/java/org/superbiz/altdd/Movies.java | 100 +--
.../java/org/superbiz/altdd/MoviesTest.java | 198 ++---
.../java/org/superbiz/applet/Calculator.java | 51 +-
.../org/superbiz/applet/CalculatorApplet.java | 201 +++--
.../org/superbiz/applet/CalculatorImpl.java | 57 +-
.../test/java/org/superbiz/JNDILookupTest.java | 93 ++-
.../main/java/org/superbiz/composed/Movie.java | 122 +--
.../main/java/org/superbiz/composed/Movies.java | 62 +-
.../java/org/superbiz/composed/MoviesImpl.java | 100 +--
.../java/org/superbiz/composed/MoviesTest.java | 200 ++---
examples/applicationcomposer-jaxws-cdi/pom.xml | 2 +-
.../java/org/superbiz/example/jaxws/Agenda.java | 46 +-
.../org/superbiz/example/jaxws/LazyAgenda.java | 52 +-
.../superbiz/example/jaxws/MeetingPlanner.java | 50 +-
.../example/jaxws/MeetingPlannerImpl.java | 64 +-
.../example/jaxws/MeetingPlannerTest.java | 131 ++--
.../appexception/BusinessException.java | 54 +-
.../appexception/ThrowBusinessException.java | 66 +-
.../ThrowBusinessExceptionImpl.java | 60 +-
.../appexception/ValueRequiredException.java | 48 +-
.../ThrowBusinessExceptionImplTest.java | 122 +--
examples/arquillian-jpa/README.md | 338 ++++----
examples/arquillian-jpa/pom.xml | 2 +-
.../superbiz/arquillian/persistence/User.java | 86 +--
.../test/persistence/PersistenceTest.java | 129 ++--
examples/async-methods/README.md | 308 ++++----
.../java/org/superbiz/async/JobProcessor.java | 110 +--
.../org/superbiz/async/JobProcessorTest.java | 132 ++--
examples/async-postconstruct/pom.xml | 2 +-
.../designbycontract/OlympicGamesManager.java | 64 +-
.../designbycontract/PoleVaultingManager.java | 52 +-
.../PoleVaultingManagerBean.java | 56 +-
.../WebApp1/pom.xml | 1 -
.../org/superbiz/webapp1/ejb/BusinessBean.java | 58 +-
.../superbiz/webapp1/messages/ErrorList.java | 74 +-
.../webapp1/messages/ErrorResponse.java | 154 ++--
.../ConstraintViolationExceptionMapper.java | 122 +--
.../webapp1/service/WebApp1Service.java | 78 +-
.../WebApp2/pom.xml | 1 -
.../superbiz/webapp2/messages/ErrorList.java | 74 +-
.../webapp2/messages/ErrorResponse.java | 154 ++--
.../ConstraintViolationExceptionMapper.java | 122 +--
.../webapp2/service/WebApp2Service.java | 78 +-
.../runner/src/test/java/RedeploymentTest.java | 174 ++---
.../cdi-alternative-and-stereotypes/README.md | 252 +++---
.../org/superbiz/cdi/stereotype/Journey.java | 76 +-
.../cdi/stereotype/LowCostCompanie.java | 52 +-
.../org/superbiz/cdi/stereotype/Society.java | 46 +-
.../org/superbiz/cdi/stereotype/Vehicle.java | 46 +-
.../org/superbiz/cdi/stereotype/AirOpenEJB.java | 78 +-
.../java/org/superbiz/cdi/stereotype/Mock.java | 76 +-
.../superbiz/cdi/stereotype/StereotypeTest.java | 112 +--
.../org/superbiz/cdi/stereotype/SuperCar.java | 54 +-
examples/cdi-application-scope/README.md | 266 +++----
.../org/superbiz/cdi/applicationscope/Soup.java | 78 +-
.../superbiz/cdi/applicationscope/Waiter.java | 76 +-
.../cdi/applicationscope/RestaurantTest.java | 110 +--
.../java/org/superbiz/cdi/basic/Course.java | 108 +--
.../java/org/superbiz/cdi/basic/Faculty.java | 90 +--
.../java/org/superbiz/cdi/basic/CourseTest.java | 142 ++--
.../superbiz/cdi/ejbcontext/LogginServlet.java | 78 +-
.../superbiz/cdi/ejbcontext/PrinciaplEjb.java | 64 +-
.../java/org/superbiz/cdi/events/Notifier.java | 70 +-
.../java/org/superbiz/cdi/events/EventTest.java | 146 ++--
.../java/org/superbiz/cdi/events/Observer.java | 86 +--
.../org/superbiz/cdi/AccessDeniedException.java | 64 +-
.../BookForAShowOldStyleInterceptorBinding.java | 106 +--
.../BookForAShowOneInterceptorApplied.java | 86 +--
.../BookForAShowTwoInterceptorsApplied.java | 90 +--
...owInterceptorBindingInheritanceExplored.java | 86 +--
.../cdi/bookshow/interceptorbinding/Log.java | 64 +-
.../interceptorbinding/TimeRestrictAndLog.java | 78 +-
.../interceptorbinding/TimeRestricted.java | 64 +-
.../BookForAShowLoggingInterceptor.java | 131 ++--
.../TimeBasedRestrictingInterceptor.java | 102 +--
.../tracker/InterceptionOrderTracker.java | 98 +--
...kForAShowOldStyleInterceptorBindingTest.java | 116 +--
.../BookForAShowOneInterceptorAppliedTest.java | 116 +--
.../BookForAShowTwoInterceptorsAppiledTest.java | 140 ++--
...okShowInterceptorBindingInheritanceTest.java | 116 +--
.../cdi/produces/disposes/ConsoleHandler.java | 74 +-
.../cdi/produces/disposes/DatabaseHandler.java | 76 +-
.../cdi/produces/disposes/FileHandler.java | 76 +-
.../cdi/produces/disposes/LogFactory.java | 108 +--
.../cdi/produces/disposes/LogHandler.java | 50 +-
.../superbiz/cdi/produces/disposes/Logger.java | 50 +-
.../cdi/produces/disposes/LoggerImpl.java | 74 +-
.../cdi/produces/disposes/LoggerTest.java | 134 ++--
examples/cdi-produces-field/README.md | 2 +-
.../cdi/produces/field/ConsoleHandler.java | 16 +-
.../cdi/produces/field/DatabaseHandler.java | 16 +-
.../cdi/produces/field/FileHandler.java | 16 +-
.../superbiz/cdi/produces/field/LogFactory.java | 16 +-
.../superbiz/cdi/produces/field/LogHandler.java | 16 +-
.../org/superbiz/cdi/produces/field/Logger.java | 16 +-
.../superbiz/cdi/produces/field/LoggerImpl.java | 16 +-
.../superbiz/cdi/produces/field/LoggerTest.java | 18 +-
examples/cdi-realm/pom.xml | 2 +-
.../src/main/java/org/superbiz/AuthBean.java | 96 +--
.../main/java/org/superbiz/SecuredServlet.java | 64 +-
.../test/java/org/superbiz/AuthBeanTest.java | 204 ++---
examples/cdi-request-scope/README.md | 300 +++----
.../org/superbiz/cdi/requestscope/Chef.java | 62 +-
.../org/superbiz/cdi/requestscope/Soup.java | 78 +-
.../org/superbiz/cdi/requestscope/Waiter.java | 74 +-
.../cdi/requestscope/RestaurantTest.java | 110 +--
.../org/superbiz/cdi/session/AnswerBean.java | 80 +-
.../org/superbiz/cdi/session/InputServlet.java | 88 +--
.../org/superbiz/cdi/session/OutputServlet.java | 84 +-
.../org/superbiz/cdi/session/SessionBean.java | 68 +-
.../test/java/org/superbiz/jaxws/Rot13Test.java | 102 +--
.../java/org/superbiz/client/SenderTest.java | 110 +--
.../main/java/org/superbiz/FriendlyPerson.java | 252 +++---
.../org/superbiz/FriendlyPersonEjbHome.java | 58 +-
.../superbiz/FriendlyPersonEjbLocalHome.java | 58 +-
.../superbiz/FriendlyPersonEjbLocalObject.java | 70 +-
.../org/superbiz/FriendlyPersonEjbObject.java | 78 +-
.../java/org/superbiz/FriendlyPersonLocal.java | 78 +-
.../java/org/superbiz/FriendlyPersonRemote.java | 76 +-
.../java/org/superbiz/FriendlyPersonTest.java | 360 ++++-----
.../java/org/superbiz/enventries/Pickup.java | 70 +-
.../org/superbiz/enventries/PickupEditor.java | 90 +--
.../org/superbiz/enventries/Stratocaster.java | 152 ++--
.../java/org/superbiz/enventries/Style.java | 60 +-
.../superbiz/enventries/StratocasterTest.java | 126 +--
.../main/java/org/superbiz/dsdef/Persister.java | 20 +-
.../dsdef/DataSourceDefinitionTest.java | 6 +-
examples/datasource-versioning/README.md | 772 +++++++++----------
.../org/superbiz/AlternateDataSourceTest.java | 4 +-
.../cdi/decorators/AccessDeniedException.java | 60 +-
.../org/superbiz/cdi/decorators/Calculator.java | 66 +-
.../superbiz/cdi/decorators/CalculatorBean.java | 84 +-
.../cdi/decorators/CalculatorLogging.java | 120 +--
.../cdi/decorators/CalculatorSecurity.java | 130 ++--
.../superbiz/cdi/decorators/CalculatorTest.java | 232 +++---
.../org/superbiz/deltaspike/config/Counter.java | 74 +-
.../deltaspike/config/MyConfigSource.java | 158 ++--
.../config/MyConfigSourceProvider.java | 60 +-
.../superbiz/deltaspike/config/ConfigTest.java | 118 +--
.../exceptionhandling/OSExceptionHandler.java | 68 +-
.../exceptionhandling/OSRuntimeException.java | 42 +-
.../exceptionhandling/OSValidator.java | 70 +-
.../ExceptionHandlingDemoTest.java | 116 +--
examples/deltaspike-fullstack/pom.xml | 2 +-
.../superbiz/deltaspike/CustomProjectStage.java | 62 +-
.../superbiz/deltaspike/DebugPhaseListener.java | 102 ++-
.../deltaspike/WebappMessageBundle.java | 77 +-
.../deltaspike/domain/AbstractDomainObject.java | 86 +--
.../org/superbiz/deltaspike/domain/Comment.java | 111 ++-
.../superbiz/deltaspike/domain/Feedback.java | 145 ++--
.../org/superbiz/deltaspike/domain/User.java | 213 +++--
.../domain/validation/DifferentName.java | 77 +-
.../validation/DifferentNameValidator.java | 69 +-
.../deltaspike/domain/validation/Full.java | 53 +-
.../deltaspike/domain/validation/Name.java | 95 ++-
.../deltaspike/domain/validation/Partial.java | 43 +-
.../domain/validation/UniqueUserName.java | 43 +-
.../deltaspike/domain/validation/UserName.java | 89 ++-
.../startup/ModuleStartupObserver.java | 79 +-
.../superbiz/deltaspike/view/FeedbackPage.java | 154 ++--
.../org/superbiz/deltaspike/view/InfoPage.java | 73 +-
.../org/superbiz/deltaspike/view/MenuBean.java | 128 ++-
.../deltaspike/view/RegistrationPage.java | 191 +++--
.../superbiz/deltaspike/view/UserHolder.java | 112 ++-
.../superbiz/deltaspike/view/config/Pages.java | 106 +--
.../view/security/LoginAccessDecisionVoter.java | 99 ++-
.../superbiz/deltaspike/view/util/InfoBean.java | 284 ++++---
.../superbiz/deltaspike/test/PageBeanTest.java | 258 +++----
.../superbiz/deltaspike/i18n/MessageHelper.java | 54 +-
.../deltaspike/i18n/MessageHelperTest.java | 112 +--
.../main/java/org/superbiz/dynamic/User.java | 122 +--
.../BoostrapUtility.java | 102 +--
.../DeterminedRouter.java | 214 ++---
.../dynamicdatasourcerouting/Person.java | 106 +--
.../RoutedPersister.java | 74 +-
.../org/superbiz/dynamic/SocialInterceptor.java | 80 +-
.../dynamic/mbean/DynamicMBeanHandler.java | 520 ++++++-------
.../org/superbiz/dynamic/mbean/ObjectName.java | 78 +-
.../dynamic/mbean/DynamicMBeanClient.java | 72 +-
.../dynamic/mbean/DynamicMBeanClientTest.java | 216 +++---
.../dynamic/mbean/DynamicRemoteMBeanClient.java | 80 +-
.../superbiz/dynamic/mbean/simple/Simple.java | 82 +-
.../dynamic/mbean/simple/SimpleMBean.java | 54 +-
examples/ear-testing/README.md | 424 +++++-----
.../main/java/org/superbiz/logic/Movies.java | 66 +-
.../java/org/superbiz/logic/MoviesImpl.java | 100 +--
.../java/org/superbiz/logic/MoviesTest.java | 128 +--
.../src/main/java/org/superbiz/model/Movie.java | 124 +--
.../java/org/superbiz/servlet/AnnotatedEJB.java | 105 ++-
.../org/superbiz/servlet/AnnotatedEJBLocal.java | 65 +-
.../superbiz/servlet/AnnotatedEJBRemote.java | 55 +-
.../org/superbiz/servlet/AnnotatedServlet.java | 175 +++--
.../org/superbiz/servlet/ClientHandler.java | 73 +-
.../java/org/superbiz/servlet/HelloEjb.java | 51 +-
.../org/superbiz/servlet/HelloEjbService.java | 81 +-
.../java/org/superbiz/servlet/HelloPojo.java | 51 +-
.../org/superbiz/servlet/HelloPojoService.java | 77 +-
.../java/org/superbiz/servlet/JndiServlet.java | 169 ++--
.../main/java/org/superbiz/servlet/JpaBean.java | 101 ++-
.../java/org/superbiz/servlet/JpaServlet.java | 145 ++--
.../java/org/superbiz/servlet/ResourceBean.java | 69 +-
.../java/org/superbiz/servlet/RunAsServlet.java | 185 +++--
.../java/org/superbiz/servlet/SecureEJB.java | 123 ++-
.../org/superbiz/servlet/SecureEJBLocal.java | 73 +-
.../org/superbiz/servlet/SecureServlet.java | 185 +++--
.../org/superbiz/servlet/ServerHandler.java | 75 +-
.../org/superbiz/servlet/WebserviceClient.java | 159 ++--
.../org/superbiz/servlet/WebserviceServlet.java | 139 ++--
.../main/java/org/superbiz/ws/Calculator.java | 74 +-
.../main/java/org/superbiz/hello/HelloBean.java | 66 +-
.../java/org/superbiz/hello/HelloEjbLocal.java | 56 +-
.../org/superbiz/hello/HelloEjbLocalHome.java | 56 +-
.../test/java/org/superbiz/hello/HelloTest.java | 84 +-
.../org/superbiz/injection/jms/Messages.java | 212 ++---
.../injection/jms/MessagingBeanTest.java | 84 +-
.../main/java/org/superbiz/injection/Movie.java | 122 +--
.../java/org/superbiz/injection/Movies.java | 212 ++---
.../java/org/superbiz/injection/MoviesTest.java | 108 +--
.../java/org/superbiz/injection/DataReader.java | 118 +--
.../java/org/superbiz/injection/DataStore.java | 78 +-
.../org/superbiz/injection/DataStoreLocal.java | 68 +-
.../org/superbiz/injection/DataStoreRemote.java | 66 +-
.../superbiz/injection/EjbDependencyTest.java | 84 +-
.../java/org/superbiz/injection/jpa/Movie.java | 152 ++--
.../java/org/superbiz/injection/jpa/Movies.java | 96 +--
.../org/superbiz/injection/jpa/MoviesTest.java | 114 +--
.../injection/enventry/Configuration.java | 126 +--
.../org/superbiz/injection/enventry/Widget.java | 54 +-
.../injection/enventry/ConfigurationTest.java | 90 +--
.../interceptors/ClassLevelInterceptorOne.java | 64 +-
.../ClassLevelInterceptorSuperClassOne.java | 64 +-
.../ClassLevelInterceptorSuperClassTwo.java | 64 +-
.../interceptors/ClassLevelInterceptorTwo.java | 64 +-
.../interceptors/DefaultInterceptorOne.java | 74 +-
.../interceptors/DefaultInterceptorTwo.java | 64 +-
.../superbiz/interceptors/FullyIntercepted.java | 60 +-
.../interceptors/FullyInterceptedBean.java | 106 +--
.../FullyInterceptedSuperClass.java | 54 +-
.../interceptors/MethodLevelInterceptorOne.java | 62 +-
.../MethodLevelInterceptorOnlyIntf.java | 50 +-
.../MethodLevelInterceptorOnlyParent.java | 48 +-
.../MethodLevelInterceptorOnlySLSBean.java | 70 +-
.../interceptors/MethodLevelInterceptorTwo.java | 62 +-
.../SecondStatelessInterceptedBean.java | 90 +--
.../SecondStatelessInterceptedLocal.java | 54 +-
.../SuperClassOfClassLevelInterceptor.java | 74 +-
.../org/superbiz/interceptors/ThirdSLSBean.java | 110 +--
.../interceptors/ThirdSLSBeanLocal.java | 58 +-
.../java/org/superbiz/interceptors/Utils.java | 76 +-
.../interceptors/FullyInterceptedTest.java | 188 ++---
.../MethodLevelInterceptorOnlyTest.java | 114 +--
.../SecondStatelessInterceptedTest.java | 126 +--
.../superbiz/interceptors/ThirdSLSBeanTest.java | 156 ++--
.../java/org/superbiz/rest/EmailService.java | 16 +-
.../org/superbiz/rest/EmailServiceTest.java | 16 +-
.../java/org/superbiz/eclipselink/Movie.java | 136 ++--
.../java/org/superbiz/eclipselink/Movies.java | 90 +--
.../org/superbiz/eclipselink/MoviesTest.java | 108 +--
.../main/java/org/superbiz/jpa/enums/Movie.java | 158 ++--
.../java/org/superbiz/jpa/enums/Movies.java | 108 +--
.../java/org/superbiz/jpa/enums/MoviesTest.java | 108 +--
.../org/superbiz/injection/h3jpa/Movie.java | 136 ++--
.../org/superbiz/injection/h3jpa/Movies.java | 90 +--
.../superbiz/injection/h3jpa/MoviesTest.java | 106 +--
.../main/java/org/superbiz/jsf/Calculator.java | 57 +-
.../main/java/org/superbiz/jsf/Calculator.java | 51 +-
.../java/org/superbiz/jsf/CalculatorImpl.java | 57 +-
.../java/org/superbiz/ejblookup/BlueBean.java | 78 +-
.../java/org/superbiz/ejblookup/Friend.java | 68 +-
.../java/org/superbiz/ejblookup/RedBean.java | 76 +-
.../superbiz/ejblookup/EjbDependencyTest.java | 108 +--
.../java/org/superbiz/ejblookup/BlueBean.java | 86 +--
.../java/org/superbiz/ejblookup/Friend.java | 74 +-
.../java/org/superbiz/ejblookup/RedBean.java | 84 +-
.../superbiz/ejblookup/EjbDependencyTest.java | 108 +--
.../org/superbiz/mbean/GuessHowManyMBean.java | 96 +--
.../superbiz/mbean/GuessHowManyMBeanTest.java | 102 +--
examples/moviefun-rest/pom.xml | 2 +-
.../main/java/org/superbiz/moviefun/Movie.java | 202 ++---
.../java/org/superbiz/moviefun/MoviesBean.java | 180 ++---
.../moviefun/rest/ApplicationConfig.java | 64 +-
.../org/superbiz/moviefun/rest/LoadRest.java | 82 +-
.../org/superbiz/moviefun/rest/MoviesRest.java | 158 ++--
.../org/superbiz/moviefun/MoviesEJBTest.java | 154 ++--
.../moviefun/MoviesEmbeddedEJBTest.java | 148 ++--
.../java/org/superbiz/moviefun/MoviesTest.java | 148 ++--
examples/moviefun/pom.xml | 2 +-
.../org/superbiz/moviefun/ActionServlet.java | 276 +++----
.../main/java/org/superbiz/moviefun/Movie.java | 206 ++---
.../java/org/superbiz/moviefun/MoviesBean.java | 228 +++---
.../java/org/superbiz/moviefun/Basedir.java | 68 +-
.../moviefun/MoviesArquillianHtmlUnitTest.java | 218 +++---
.../org/superbiz/moviefun/MoviesEJBTest.java | 156 ++--
.../moviefun/MoviesEmbeddedEJBTest.java | 148 ++--
.../superbiz/moviefun/MoviesHtmlUnitTest.java | 206 ++---
.../java/org/superbiz/moviefun/MoviesTest.java | 148 ++--
.../superbiz/injection/tx/AddInterceptor.java | 62 +-
.../injection/tx/DeleteInterceptor.java | 64 +-
.../java/org/superbiz/injection/tx/Movie.java | 122 +--
.../java/org/superbiz/injection/tx/Movies.java | 104 +--
.../org/superbiz/injection/tx/api/Metatype.java | 58 +-
.../superbiz/injection/tx/api/MovieUnit.java | 66 +-
.../org/superbiz/injection/tx/MoviesTest.java | 284 +++----
.../superbiz/injection/tx/AddInterceptor.java | 62 +-
.../injection/tx/DeleteInterceptor.java | 64 +-
.../java/org/superbiz/injection/tx/Movie.java | 122 +--
.../java/org/superbiz/injection/tx/Movies.java | 119 ++-
.../org/superbiz/injection/tx/MoviesTest.java | 284 +++----
.../java/org/superbiz/mtom/AbstractService.java | 16 +-
.../main/java/org/superbiz/mtom/EjbService.java | 16 +-
.../java/org/superbiz/mtom/PojoService.java | 16 +-
.../main/java/org/superbiz/mtom/Request.java | 16 +-
.../main/java/org/superbiz/mtom/Response.java | 16 +-
.../main/java/org/superbiz/mtom/Service.java | 16 +-
.../org/superbiz/mtom/AbstractServiceTest.java | 16 +-
.../java/org/superbiz/mtom/EjbServiceTest.java | 16 +-
.../java/org/superbiz/mtom/PojoServiceTest.java | 16 +-
.../main/java/org/superbiz/model/Person.java | 86 +--
.../src/test/java/org/superbiz/JPATest.java | 118 +--
.../enricher/jpa/HibernateEnricher.java | 58 +-
.../org/superbiz/enricher/jpa/JPAEnrichers.java | 78 +-
.../superbiz/enricher/jpa/OpenJPAEnricher.java | 58 +-
.../org/superbiz/enricher/maven/Enrichers.java | 123 ++-
.../src/main/java/org/superbiz/SomeEJB.java | 54 +-
.../src/main/java/org/superbiz/SomeRest.java | 64 +-
.../embedded/remote/EmbeddedRemote.java | 42 +-
.../remote/OpenEJBEmbeddedRemoteTest.java | 96 +--
.../superbiz/embedded/standalone/Embedded.java | 42 +-
.../standalone/OpenEJBEmbeddedTest.java | 100 +--
.../superbiz/tomee/embedded/TomEEEmbedded.java | 42 +-
.../tomee/embedded/TomEEEmbeddedTest.java | 100 +--
.../org/superbiz/tomee/remote/TomEERemote.java | 42 +-
.../superbiz/tomee/remote/TomEERemoteTest.java | 106 +--
.../arquillian/multiple/MultipleTomEETest.java | 132 ++--
examples/myfaces-codi-demo/pom.xml | 2 +-
.../jpa/AbstractGenericJpaRepository.java | 192 ++---
.../myfaces/startup/ExtValLifecycleFactory.java | 48 +-
.../superbiz/myfaces/view/RegistrationPage.java | 200 ++---
.../org/superbiz/myfaces/view/config/Pages.java | 132 ++--
.../superbiz/myfaces/view/util/InfoBean.java | 256 +++---
.../java/org/superbiz/injection/jpa/Movie.java | 140 ++--
.../org/superbiz/injection/jpa/MoviesTest.java | 100 +--
.../main/java/org/superbiz/ws/pojo/PojoWS.java | 90 +--
.../src/main/java/org/superbiz/ws/pojo/WS.java | 50 +-
.../src/main/java/jug/client/Client.java | 168 ++--
.../jug/client/command/api/AbstractCommand.java | 176 ++---
.../java/jug/client/command/api/Command.java | 68 +-
.../client/command/impl/BestPollCommand.java | 62 +-
.../jug/client/command/impl/ExitCommand.java | 74 +-
.../jug/client/command/impl/HelpCommand.java | 106 +--
.../jug/client/command/impl/NewPollCommand.java | 66 +-
.../client/command/impl/PollResultCommand.java | 80 +-
.../jug/client/command/impl/PollsCommand.java | 62 +-
.../command/impl/QueryAndPostCommand.java | 96 +--
.../client/command/impl/ShowPollCommand.java | 80 +-
.../command/impl/SwitchClientCommand.java | 94 +--
.../jug/client/command/impl/VoteCommand.java | 90 +--
.../java/jug/client/util/ClientNameHolder.java | 60 +-
.../java/jug/client/util/CommandManager.java | 148 ++--
.../util/ConfigurableClasspathArchive.java | 392 +++++-----
.../src/main/java/jug/dao/SubjectDao.java | 230 +++---
.../src/main/java/jug/dao/VoteDao.java | 84 +-
.../src/test/java/jug/dao/SubjectDaoTest.java | 198 ++---
.../src/main/java/jug/domain/Result.java | 134 ++--
.../src/main/java/jug/domain/Subject.java | 212 ++---
.../src/main/java/jug/domain/Value.java | 44 +-
.../src/main/java/jug/domain/Vote.java | 104 +--
.../main/java/jug/monitoring/VoteCounter.java | 120 +--
.../main/java/jug/rest/PollingApplication.java | 64 +-
.../src/main/java/jug/rest/SubjectService.java | 224 +++---
.../java/jug/routing/DataSourceInitializer.java | 96 +--
.../main/java/jug/routing/PollingRouter.java | 158 ++--
.../main/java/jug/routing/RoutingFilter.java | 144 ++--
.../test/java/jug/rest/SubjectServiceTest.java | 160 ++--
.../arquillian/SubjectServiceTomEETest.java | 167 ++--
examples/pom.xml | 9 +-
examples/projectstage-demo/pom.xml | 2 +-
.../src/main/java/org/superbiz/Manager.java | 60 +-
.../main/java/org/superbiz/ManagerFactory.java | 76 +-
.../projectstage/BaseTestForProjectStage.java | 114 +--
.../projectstage/DevProjectStageTest.java | 76 +-
.../ProductionProjectStageTest.java | 58 +-
.../projectstage/TestingProjectStageTest.java | 76 +-
.../projectstage/util/ProjectStageProducer.java | 156 ++--
examples/quartz-app/quartz-beans/pom.xml | 2 +-
.../main/java/org/superbiz/quartz/JobBean.java | 130 ++--
.../java/org/superbiz/quartz/QuartzMdb.java | 70 +-
.../java/org/superbiz/quartz/QuartzMdbTest.java | 134 ++--
.../java/org/superbiz/reloadable/pu/Person.java | 108 +--
.../superbiz/reloadable/pu/PersonManager.java | 88 +--
.../reloadable/pu/CacheActivationTest.java | 220 +++---
examples/resources-jmx-example/README.md | 38 +-
examples/resources-jmx-example/pom.xml | 4 +-
.../resources-jmx-ear/pom.xml | 2 +-
.../resources-jmx-ejb/pom.xml | 2 +-
.../resource/jmx/factory/Converter.java | 9 +-
.../superbiz/resource/jmx/factory/Editors.java | 4 +-
.../resource/jmx/factory/JMXBeanCreator.java | 2 +-
.../resource/jmx/factory/PrimitiveTypes.java | 1 +
.../resource/jmx/resources/Alternative.java | 2 +-
.../java/org/superbiz/resource/jmx/JMXTest.java | 18 +-
.../superbiz/composed/rest/GreetingService.java | 70 +-
.../org/superbiz/composed/rest/Messager.java | 44 +-
.../composed/rest/GreetingServiceTest.java | 134 ++--
.../superbiz/composed/rest/GreetingService.java | 58 +-
.../rest/IllegalArgumentExceptionMapper.java | 60 +-
.../composed/rest/GreetingServiceTest.java | 154 ++--
.../main/java/org/superbiz/rest/Greeting.java | 6 +-
.../java/org/superbiz/rest/GreetingService.java | 132 ++--
.../main/java/org/superbiz/rest/Request.java | 82 +-
.../main/java/org/superbiz/rest/Response.java | 82 +-
.../org/superbiz/rest/GreetingServiceTest.java | 174 ++---
.../rest/batcher/SampleDataManager.java | 160 ++--
.../java/org/superbiz/rest/dao/PostDAO.java | 144 ++--
.../java/org/superbiz/rest/dao/UserDAO.java | 130 ++--
.../java/org/superbiz/rest/model/Comment.java | 150 ++--
.../main/java/org/superbiz/rest/model/Post.java | 182 ++---
.../main/java/org/superbiz/rest/model/User.java | 138 ++--
.../org/superbiz/rest/dao/UserServiceTest.java | 182 ++---
.../jaxrs/jaas/JAASSecuredRestEndpoint.java | 84 +-
.../src/main/java/org/superbiz/rest/User.java | 200 ++---
.../java/org/superbiz/rest/GreetingService.java | 80 +-
.../main/java/org/superbiz/rest/Request.java | 82 +-
.../main/java/org/superbiz/rest/Response.java | 82 +-
.../org/superbiz/rest/GreetingServiceTest.java | 16 +-
.../superbiz/schedule/events/SchedulerTest.java | 156 ++--
.../java/org/superbiz/corn/FarmerBrown.java | 174 ++---
.../java/org/superbiz/corn/FarmerBrownTest.java | 86 +--
.../org/superbiz/corn/meta/FarmerBrown.java | 108 +--
.../org/superbiz/corn/meta/api/BiAnnually.java | 72 +-
.../org/superbiz/corn/meta/api/BiMonthly.java | 72 +-
.../java/org/superbiz/corn/meta/api/Daily.java | 72 +-
.../org/superbiz/corn/meta/api/HarvestTime.java | 80 +-
.../java/org/superbiz/corn/meta/api/Hourly.java | 72 +-
.../org/superbiz/corn/meta/api/Metatype.java | 58 +-
.../superbiz/corn/meta/api/PlantingTime.java | 82 +-
.../org/superbiz/corn/meta/api/Secondly.java | 72 +-
.../org/superbiz/corn/meta/FarmerBrownTest.java | 84 +-
.../java/org/superbiz/corn/FarmerBrown.java | 122 +--
.../java/org/superbiz/corn/FarmerBrownTest.java | 84 +-
.../java/org/superbiz/event/ListenerTest.java | 92 +--
.../superbiz/cdi/bookshow/beans/BookShow.java | 86 +--
.../cdi/bookshow/interceptorbinding/Log.java | 64 +-
.../interceptors/LoggingInterceptor.java | 121 +--
.../cdi/bookshow/interceptors/BookShowTest.java | 102 +--
.../src/main/java/org/superbiz/cmp2/Movie.java | 78 +-
.../main/java/org/superbiz/cmp2/MovieBean.java | 98 +--
.../src/main/java/org/superbiz/cmp2/Movies.java | 70 +-
.../test/java/org/superbiz/cmp2/MoviesTest.java | 120 +--
.../main/java/org/superbiz/mdb/ChatBean.java | 186 ++---
.../org/superbiz/mdb/ChatRespondCreator.java | 64 +-
.../java/org/superbiz/mdb/ChatBeanTest.java | 168 ++--
.../java/org/superbiz/mdbdesc/ChatBean.java | 186 ++---
.../java/org/superbiz/mdbdesc/ChatBeanTest.java | 170 ++--
.../main/java/org/superbiz/mdb/ChatBean.java | 196 ++---
.../java/org/superbiz/mdb/ChatBeanTest.java | 168 ++--
.../java/org/superbiz/rest/GreetingService.java | 70 +-
.../org/superbiz/rest/GreetingServiceTest.java | 106 +--
examples/simple-singleton/README.md | 688 ++++++++---------
.../superbiz/registry/ComponentRegistry.java | 106 +--
.../org/superbiz/registry/PropertyRegistry.java | 124 +--
.../registry/ComponentRegistryTest.java | 144 ++--
.../registry/PropertiesRegistryTest.java | 118 +--
.../org/superbiz/counter/CallbackCounter.java | 146 ++--
.../org/superbiz/counter/ExecutionChannel.java | 82 +-
.../org/superbiz/counter/ExecutionObserver.java | 46 +-
.../superbiz/counter/CounterCallbacksTest.java | 250 +++---
.../main/java/org/superbiz/counter/Counter.java | 108 +--
.../java/org/superbiz/counter/CounterTest.java | 108 +--
.../stateless/basic/CalculatorBean.java | 126 +--
.../stateless/basic/ExecutionChannel.java | 82 +-
.../stateless/basic/ExecutionObserver.java | 46 +-
.../stateless/basic/CalculatorTest.java | 178 ++---
.../org/superbiz/calculator/CalculatorImpl.java | 74 +-
.../superbiz/calculator/CalculatorLocal.java | 60 +-
.../superbiz/calculator/CalculatorRemote.java | 62 +-
.../org/superbiz/calculator/CalculatorTest.java | 144 ++--
.../stateless/basic/CalculatorBean.java | 96 +--
.../stateless/basic/CalculatorTest.java | 214 ++---
.../org/superbiz/calculator/Calculator.java | 72 +-
.../org/superbiz/calculator/CalculatorTest.java | 140 ++--
.../org/superbiz/calculator/ws/Calculator.java | 74 +-
.../superbiz/calculator/ws/CalculatorWs.java | 54 +-
.../superbiz/calculator/ws/CalculatorTest.java | 124 +--
.../java/org/superbiz/dynamic/api/Metatype.java | 60 +-
.../superbiz/dynamic/api/SpringRepository.java | 72 +-
.../dynamic/framework/SpringDataProxy.java | 100 +--
.../org/superbiz/dynamic/SpringDataProxy.java | 100 +--
.../main/java/org/superbiz/struts/AddUser.java | 160 ++--
.../main/java/org/superbiz/struts/FindUser.java | 142 ++--
.../java/org/superbiz/struts/ListAllUsers.java | 144 ++--
.../java/org/superbiz/telephone/Telephone.java | 52 +-
.../org/superbiz/telephone/TelephoneBean.java | 114 +--
.../org/superbiz/telephone/TelephoneTest.java | 230 +++---
.../java/org/superbiz/testinjection/Movie.java | 122 +--
.../java/org/superbiz/testinjection/Movies.java | 100 +--
.../org/superbiz/testinjection/MoviesTest.java | 150 ++--
.../org/superbiz/injection/secure/Movie.java | 122 +--
.../org/superbiz/injection/secure/Movies.java | 110 +--
.../superbiz/injection/secure/MovieTest.java | 306 ++++----
.../org/superbiz/injection/secure/UserInfo.java | 72 +-
.../org/superbiz/injection/secure/Movie.java | 122 +--
.../org/superbiz/injection/secure/Movies.java | 110 +--
.../injection/secure/MyLoginProvider.java | 78 +-
.../superbiz/injection/secure/MovieTest.java | 314 ++++----
.../superbiz/injection/secure/LoginBean.java | 78 +-
.../org/superbiz/injection/secure/Movie.java | 122 +--
.../org/superbiz/injection/secure/Movies.java | 110 +--
.../superbiz/injection/secure/MovieTest.java | 322 ++++----
.../org/superbiz/injection/secure/Movie.java | 122 +--
.../org/superbiz/injection/secure/Movies.java | 106 +--
.../injection/secure/api/AddPermission.java | 72 +-
.../injection/secure/api/DeletePermission.java | 72 +-
.../superbiz/injection/secure/api/Metatype.java | 58 +-
.../injection/secure/api/MovieUnit.java | 66 +-
.../injection/secure/api/ReadPermission.java | 78 +-
.../injection/secure/api/RunAsEmployee.java | 62 +-
.../injection/secure/api/RunAsManager.java | 62 +-
.../superbiz/injection/secure/MovieTest.java | 316 ++++----
.../org/superbiz/injection/secure/Movie.java | 122 +--
.../org/superbiz/injection/secure/Movies.java | 110 +--
.../superbiz/injection/secure/MovieTest.java | 334 ++++----
.../java/org/superbiz/injection/tx/Movie.java | 148 ++--
.../java/org/superbiz/injection/tx/Movies.java | 124 +--
.../org/superbiz/injection/tx/MoviesTest.java | 100 +--
.../java/org/superbiz/injection/tx/Movie.java | 122 +--
.../java/org/superbiz/injection/tx/Movies.java | 100 +--
.../org/superbiz/injection/tx/MoviesTest.java | 214 ++---
.../main/java/org/superbiz/dao/PersonDAO.java | 90 +--
.../main/java/org/superbiz/domain/Person.java | 100 +--
.../java/org/superbiz/init/Initializer.java | 76 +-
.../org/superbiz/service/JerseyApplication.java | 62 +-
.../org/superbiz/service/PersonService.java | 102 +--
.../txrollback/CustomRuntimeException.java | 76 +-
.../java/org/superbiz/txrollback/Movie.java | 136 ++--
.../java/org/superbiz/txrollback/Movies.java | 124 +--
.../org/superbiz/txrollback/MoviesTest.java | 442 +++++------
.../org/superbiz/troubleshooting/Movie.java | 136 ++--
.../org/superbiz/troubleshooting/Movies.java | 92 +--
.../superbiz/troubleshooting/MoviesTest.java | 202 ++---
.../org/superbiz/attachment/AttachmentImpl.java | 158 ++--
.../org/superbiz/attachment/AttachmentWs.java | 70 +-
.../org/superbiz/attachment/AttachmentTest.java | 184 ++---
.../org/superbiz/calculator/wsh/Calculator.java | 78 +-
.../superbiz/calculator/wsh/CalculatorWs.java | 54 +-
.../org/superbiz/calculator/wsh/Increment.java | 126 +--
.../org/superbiz/calculator/wsh/Inflate.java | 128 +--
.../superbiz/calculator/wsh/CalculatorTest.java | 126 +--
.../java/org/superbiz/ws/out/Calculator.java | 76 +-
.../java/org/superbiz/ws/out/CalculatorWs.java | 52 +-
.../org/superbiz/ws/out/CalculatorTest.java | 136 ++--
.../java/org/superbiz/inheritance/Item.java | 138 ++--
.../java/org/superbiz/inheritance/Tower.java | 98 +--
.../org/superbiz/inheritance/WakeRiderImpl.java | 112 +--
.../org/superbiz/inheritance/WakeRiderWs.java | 70 +-
.../org/superbiz/inheritance/Wakeboard.java | 48 +-
.../superbiz/inheritance/WakeboardBinding.java | 48 +-
.../java/org/superbiz/inheritance/Wearable.java | 66 +-
.../superbiz/inheritance/InheritanceTest.java | 314 ++++----
.../org/superbiz/calculator/CalculatorImpl.java | 100 +--
.../superbiz/calculator/CalculatorRemote.java | 56 +-
.../org/superbiz/calculator/CalculatorWs.java | 70 +-
.../org/superbiz/calculator/CalculatorTest.java | 138 ++--
.../org/superbiz/calculator/CalculatorImpl.java | 104 +--
.../superbiz/calculator/CalculatorRemote.java | 56 +-
.../org/superbiz/calculator/CalculatorWs.java | 70 +-
.../org/superbiz/calculator/CalculatorTest.java | 636 +++++++--------
.../calculator/CustomPasswordHandler.java | 88 +--
.../org/superbiz/ws/security/Calculator.java | 50 +-
.../superbiz/ws/security/CalculatorBean.java | 60 +-
.../ws/security/PasswordCallbackHandler.java | 88 +--
579 files changed, 30766 insertions(+), 30862 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tomee/blob/f9f1b8ad/examples/access-timeout-meta/src/main/java/org/superbiz/accesstimeout/BusyBee.java
----------------------------------------------------------------------
diff --git a/examples/access-timeout-meta/src/main/java/org/superbiz/accesstimeout/BusyBee.java b/examples/access-timeout-meta/src/main/java/org/superbiz/accesstimeout/BusyBee.java
index 833d4d0..420bcc3 100644
--- a/examples/access-timeout-meta/src/main/java/org/superbiz/accesstimeout/BusyBee.java
+++ b/examples/access-timeout-meta/src/main/java/org/superbiz/accesstimeout/BusyBee.java
@@ -1,66 +1,66 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.superbiz.accesstimeout;
-
-import org.superbiz.accesstimeout.api.AwaitBriefly;
-import org.superbiz.accesstimeout.api.AwaitForever;
-import org.superbiz.accesstimeout.api.AwaitNever;
-
-import javax.ejb.Asynchronous;
-import javax.ejb.Lock;
-import javax.ejb.Singleton;
-import java.util.concurrent.CountDownLatch;
-import java.util.concurrent.Future;
-
-import static javax.ejb.LockType.WRITE;
-
-/**
- * @version $Revision$ $Date$
- */
-@Singleton
-@Lock(WRITE)
-public class BusyBee {
-
- @Asynchronous
- public Future stayBusy(CountDownLatch ready) {
- ready.countDown();
-
- try {
- new CountDownLatch(1).await();
- } catch (InterruptedException e) {
- Thread.interrupted();
- }
-
- return null;
- }
-
- @AwaitNever
- public void doItNow() {
- // do something
- }
-
- @AwaitBriefly
- public void doItSoon() {
- // do something
- }
-
- @AwaitForever
- public void justDoIt() {
- // do something
- }
-
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.superbiz.accesstimeout;
+
+import org.superbiz.accesstimeout.api.AwaitBriefly;
+import org.superbiz.accesstimeout.api.AwaitForever;
+import org.superbiz.accesstimeout.api.AwaitNever;
+
+import javax.ejb.Asynchronous;
+import javax.ejb.Lock;
+import javax.ejb.Singleton;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.Future;
+
+import static javax.ejb.LockType.WRITE;
+
+/**
+ * @version $Revision$ $Date$
+ */
+@Singleton
+@Lock(WRITE)
+public class BusyBee {
+
+ @Asynchronous
+ public Future stayBusy(CountDownLatch ready) {
+ ready.countDown();
+
+ try {
+ new CountDownLatch(1).await();
+ } catch (InterruptedException e) {
+ Thread.interrupted();
+ }
+
+ return null;
+ }
+
+ @AwaitNever
+ public void doItNow() {
+ // do something
+ }
+
+ @AwaitBriefly
+ public void doItSoon() {
+ // do something
+ }
+
+ @AwaitForever
+ public void justDoIt() {
+ // do something
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/tomee/blob/f9f1b8ad/examples/access-timeout-meta/src/main/java/org/superbiz/accesstimeout/api/AwaitBriefly.java
----------------------------------------------------------------------
diff --git a/examples/access-timeout-meta/src/main/java/org/superbiz/accesstimeout/api/AwaitBriefly.java b/examples/access-timeout-meta/src/main/java/org/superbiz/accesstimeout/api/AwaitBriefly.java
index e9540b0..f42494a 100644
--- a/examples/access-timeout-meta/src/main/java/org/superbiz/accesstimeout/api/AwaitBriefly.java
+++ b/examples/access-timeout-meta/src/main/java/org/superbiz/accesstimeout/api/AwaitBriefly.java
@@ -1,33 +1,33 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.superbiz.accesstimeout.api;
-
-import javax.ejb.AccessTimeout;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-import java.util.concurrent.TimeUnit;
-
-@Metatype
-@Retention(RetentionPolicy.RUNTIME)
-@Target(ElementType.METHOD)
-
-@AccessTimeout(value = 5, unit = TimeUnit.SECONDS)
-public @interface AwaitBriefly {
-
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.superbiz.accesstimeout.api;
+
+import javax.ejb.AccessTimeout;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+import java.util.concurrent.TimeUnit;
+
+@Metatype
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.METHOD)
+
+@AccessTimeout(value = 5, unit = TimeUnit.SECONDS)
+public @interface AwaitBriefly {
+
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/tomee/blob/f9f1b8ad/examples/access-timeout-meta/src/main/java/org/superbiz/accesstimeout/api/AwaitForever.java
----------------------------------------------------------------------
diff --git a/examples/access-timeout-meta/src/main/java/org/superbiz/accesstimeout/api/AwaitForever.java b/examples/access-timeout-meta/src/main/java/org/superbiz/accesstimeout/api/AwaitForever.java
index 1be4545..f40d43c 100644
--- a/examples/access-timeout-meta/src/main/java/org/superbiz/accesstimeout/api/AwaitForever.java
+++ b/examples/access-timeout-meta/src/main/java/org/superbiz/accesstimeout/api/AwaitForever.java
@@ -1,32 +1,32 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.superbiz.accesstimeout.api;
-
-import javax.ejb.AccessTimeout;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-@Metatype
-@Retention(RetentionPolicy.RUNTIME)
-@Target(ElementType.METHOD)
-
-@AccessTimeout(-1)
-public @interface AwaitForever {
-
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.superbiz.accesstimeout.api;
+
+import javax.ejb.AccessTimeout;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Metatype
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.METHOD)
+
+@AccessTimeout(-1)
+public @interface AwaitForever {
+
+}
http://git-wip-us.apache.org/repos/asf/tomee/blob/f9f1b8ad/examples/access-timeout-meta/src/main/java/org/superbiz/accesstimeout/api/AwaitNever.java
----------------------------------------------------------------------
diff --git a/examples/access-timeout-meta/src/main/java/org/superbiz/accesstimeout/api/AwaitNever.java b/examples/access-timeout-meta/src/main/java/org/superbiz/accesstimeout/api/AwaitNever.java
index ed0085b..d3ad371 100644
--- a/examples/access-timeout-meta/src/main/java/org/superbiz/accesstimeout/api/AwaitNever.java
+++ b/examples/access-timeout-meta/src/main/java/org/superbiz/accesstimeout/api/AwaitNever.java
@@ -1,32 +1,32 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.superbiz.accesstimeout.api;
-
-import javax.ejb.AccessTimeout;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
-
-@Metatype
-@Retention(RetentionPolicy.RUNTIME)
-@Target(ElementType.METHOD)
-
-@AccessTimeout(1)
-public @interface AwaitNever {
-
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.superbiz.accesstimeout.api;
+
+import javax.ejb.AccessTimeout;
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Metatype
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.METHOD)
+
+@AccessTimeout(1)
+public @interface AwaitNever {
+
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/tomee/blob/f9f1b8ad/examples/access-timeout-meta/src/test/java/org/superbiz/accesstimeout/BusyBeeTest.java
----------------------------------------------------------------------
diff --git a/examples/access-timeout-meta/src/test/java/org/superbiz/accesstimeout/BusyBeeTest.java b/examples/access-timeout-meta/src/test/java/org/superbiz/accesstimeout/BusyBeeTest.java
index 910dd09..7d0e498 100644
--- a/examples/access-timeout-meta/src/test/java/org/superbiz/accesstimeout/BusyBeeTest.java
+++ b/examples/access-timeout-meta/src/test/java/org/superbiz/accesstimeout/BusyBeeTest.java
@@ -1,82 +1,82 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.superbiz.accesstimeout;
-
-import junit.framework.TestCase;
-
-import javax.ejb.embeddable.EJBContainer;
-import javax.naming.Context;
-import java.util.concurrent.CountDownLatch;
-import java.util.concurrent.TimeUnit;
-
-/**
- * @version $Revision$ $Date$
- */
-public class BusyBeeTest extends TestCase {
-
- public void test() throws Exception {
-
- final Context context = EJBContainer.createEJBContainer().getContext();
-
- final CountDownLatch ready = new CountDownLatch(1);
-
- final BusyBee busyBee = (BusyBee) context.lookup("java:global/access-timeout-meta/BusyBee");
-
- // This asynchronous method will never exit
- busyBee.stayBusy(ready);
-
- // Are you working yet little bee?
- ready.await();
-
- // OK, Bee is busy
-
- { // Timeout Immediately
- final long start = System.nanoTime();
-
- try {
- busyBee.doItNow();
-
- fail("The bee should be busy");
- } catch (Exception e) {
- // the bee is still too busy as expected
- }
-
- assertEquals(0, seconds(start));
- }
-
- { // Timeout in 5 seconds
- final long start = System.nanoTime();
-
- try {
- busyBee.doItSoon();
-
- fail("The bee should be busy");
- } catch (Exception e) {
- // the bee is still too busy as expected
- }
-
- assertEquals(5, seconds(start));
- }
-
- // This will wait forever, give it a try if you have that long
- //busyBee.justDoIt();
- }
-
- private long seconds(long start) {
- return TimeUnit.NANOSECONDS.toSeconds(System.nanoTime() - start);
- }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.superbiz.accesstimeout;
+
+import junit.framework.TestCase;
+
+import javax.ejb.embeddable.EJBContainer;
+import javax.naming.Context;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.TimeUnit;
+
+/**
+ * @version $Revision$ $Date$
+ */
+public class BusyBeeTest extends TestCase {
+
+ public void test() throws Exception {
+
+ final Context context = EJBContainer.createEJBContainer().getContext();
+
+ final CountDownLatch ready = new CountDownLatch(1);
+
+ final BusyBee busyBee = (BusyBee) context.lookup("java:global/access-timeout-meta/BusyBee");
+
+ // This asynchronous method will never exit
+ busyBee.stayBusy(ready);
+
+ // Are you working yet little bee?
+ ready.await();
+
+ // OK, Bee is busy
+
+ { // Timeout Immediately
+ final long start = System.nanoTime();
+
+ try {
+ busyBee.doItNow();
+
+ fail("The bee should be busy");
+ } catch (Exception e) {
+ // the bee is still too busy as expected
+ }
+
+ assertEquals(0, seconds(start));
+ }
+
+ { // Timeout in 5 seconds
+ final long start = System.nanoTime();
+
+ try {
+ busyBee.doItSoon();
+
+ fail("The bee should be busy");
+ } catch (Exception e) {
+ // the bee is still too busy as expected
+ }
+
+ assertEquals(5, seconds(start));
+ }
+
+ // This will wait forever, give it a try if you have that long
+ //busyBee.justDoIt();
+ }
+
+ private long seconds(long start) {
+ return TimeUnit.NANOSECONDS.toSeconds(System.nanoTime() - start);
+ }
+}
http://git-wip-us.apache.org/repos/asf/tomee/blob/f9f1b8ad/examples/access-timeout/src/main/java/org/superbiz/accesstimeout/BusyBee.java
----------------------------------------------------------------------
diff --git a/examples/access-timeout/src/main/java/org/superbiz/accesstimeout/BusyBee.java b/examples/access-timeout/src/main/java/org/superbiz/accesstimeout/BusyBee.java
index 4fb14d9..e9c00f1 100644
--- a/examples/access-timeout/src/main/java/org/superbiz/accesstimeout/BusyBee.java
+++ b/examples/access-timeout/src/main/java/org/superbiz/accesstimeout/BusyBee.java
@@ -1,64 +1,64 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.superbiz.accesstimeout;
-
-import javax.ejb.AccessTimeout;
-import javax.ejb.Asynchronous;
-import javax.ejb.Lock;
-import javax.ejb.Singleton;
-import java.util.concurrent.CountDownLatch;
-import java.util.concurrent.Future;
-import java.util.concurrent.TimeUnit;
-
-import static javax.ejb.LockType.WRITE;
-
-/**
- * @version $Revision$ $Date$
- */
-@Singleton
-@Lock(WRITE)
-public class BusyBee {
-
- @Asynchronous
- public Future stayBusy(CountDownLatch ready) {
- ready.countDown();
-
- try {
- new CountDownLatch(1).await();
- } catch (InterruptedException e) {
- Thread.interrupted();
- }
-
- return null;
- }
-
- @AccessTimeout(0)
- public void doItNow() {
- // do something
- }
-
- @AccessTimeout(value = 5, unit = TimeUnit.SECONDS)
- public void doItSoon() {
- // do something
- }
-
- @AccessTimeout(-1)
- public void justDoIt() {
- // do something
- }
-
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.superbiz.accesstimeout;
+
+import javax.ejb.AccessTimeout;
+import javax.ejb.Asynchronous;
+import javax.ejb.Lock;
+import javax.ejb.Singleton;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.Future;
+import java.util.concurrent.TimeUnit;
+
+import static javax.ejb.LockType.WRITE;
+
+/**
+ * @version $Revision$ $Date$
+ */
+@Singleton
+@Lock(WRITE)
+public class BusyBee {
+
+ @Asynchronous
+ public Future stayBusy(CountDownLatch ready) {
+ ready.countDown();
+
+ try {
+ new CountDownLatch(1).await();
+ } catch (InterruptedException e) {
+ Thread.interrupted();
+ }
+
+ return null;
+ }
+
+ @AccessTimeout(0)
+ public void doItNow() {
+ // do something
+ }
+
+ @AccessTimeout(value = 5, unit = TimeUnit.SECONDS)
+ public void doItSoon() {
+ // do something
+ }
+
+ @AccessTimeout(-1)
+ public void justDoIt() {
+ // do something
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/tomee/blob/f9f1b8ad/examples/access-timeout/src/test/java/org/superbiz/accesstimeout/BusyBeeTest.java
----------------------------------------------------------------------
diff --git a/examples/access-timeout/src/test/java/org/superbiz/accesstimeout/BusyBeeTest.java b/examples/access-timeout/src/test/java/org/superbiz/accesstimeout/BusyBeeTest.java
index 4c88b11..2201b6f 100644
--- a/examples/access-timeout/src/test/java/org/superbiz/accesstimeout/BusyBeeTest.java
+++ b/examples/access-timeout/src/test/java/org/superbiz/accesstimeout/BusyBeeTest.java
@@ -1,82 +1,82 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.superbiz.accesstimeout;
-
-import junit.framework.TestCase;
-
-import javax.ejb.embeddable.EJBContainer;
-import javax.naming.Context;
-import java.util.concurrent.CountDownLatch;
-import java.util.concurrent.TimeUnit;
-
-/**
- * @version $Revision$ $Date$
- */
-public class BusyBeeTest extends TestCase {
-
- public void test() throws Exception {
-
- final Context context = EJBContainer.createEJBContainer().getContext();
-
- final CountDownLatch ready = new CountDownLatch(1);
-
- final BusyBee busyBee = (BusyBee) context.lookup("java:global/access-timeout/BusyBee");
-
- // This asynchronous method will never exit
- busyBee.stayBusy(ready);
-
- // Are you working yet little bee?
- ready.await();
-
- // OK, Bee is busy
-
- { // Timeout Immediately
- final long start = System.nanoTime();
-
- try {
- busyBee.doItNow();
-
- fail("The bee should be busy");
- } catch (Exception e) {
- // the bee is still too busy as expected
- }
-
- assertEquals(0, seconds(start));
- }
-
- { // Timeout in 5 seconds
- final long start = System.nanoTime();
-
- try {
- busyBee.doItSoon();
-
- fail("The bee should be busy");
- } catch (Exception e) {
- // the bee is still too busy as expected
- }
-
- assertEquals(5, seconds(start));
- }
-
- // This will wait forever, give it a try if you have that long
- //busyBee.justDoIt();
- }
-
- private long seconds(long start) {
- return TimeUnit.NANOSECONDS.toSeconds(System.nanoTime() - start);
- }
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.superbiz.accesstimeout;
+
+import junit.framework.TestCase;
+
+import javax.ejb.embeddable.EJBContainer;
+import javax.naming.Context;
+import java.util.concurrent.CountDownLatch;
+import java.util.concurrent.TimeUnit;
+
+/**
+ * @version $Revision$ $Date$
+ */
+public class BusyBeeTest extends TestCase {
+
+ public void test() throws Exception {
+
+ final Context context = EJBContainer.createEJBContainer().getContext();
+
+ final CountDownLatch ready = new CountDownLatch(1);
+
+ final BusyBee busyBee = (BusyBee) context.lookup("java:global/access-timeout/BusyBee");
+
+ // This asynchronous method will never exit
+ busyBee.stayBusy(ready);
+
+ // Are you working yet little bee?
+ ready.await();
+
+ // OK, Bee is busy
+
+ { // Timeout Immediately
+ final long start = System.nanoTime();
+
+ try {
+ busyBee.doItNow();
+
+ fail("The bee should be busy");
+ } catch (Exception e) {
+ // the bee is still too busy as expected
+ }
+
+ assertEquals(0, seconds(start));
+ }
+
+ { // Timeout in 5 seconds
+ final long start = System.nanoTime();
+
+ try {
+ busyBee.doItSoon();
+
+ fail("The bee should be busy");
+ } catch (Exception e) {
+ // the bee is still too busy as expected
+ }
+
+ assertEquals(5, seconds(start));
+ }
+
+ // This will wait forever, give it a try if you have that long
+ //busyBee.justDoIt();
+ }
+
+ private long seconds(long start) {
+ return TimeUnit.NANOSECONDS.toSeconds(System.nanoTime() - start);
+ }
+}
http://git-wip-us.apache.org/repos/asf/tomee/blob/f9f1b8ad/examples/alternate-descriptors/src/main/java/org/superbiz/altdd/Movie.java
----------------------------------------------------------------------
diff --git a/examples/alternate-descriptors/src/main/java/org/superbiz/altdd/Movie.java b/examples/alternate-descriptors/src/main/java/org/superbiz/altdd/Movie.java
index 2da2b47..bcc375a 100644
--- a/examples/alternate-descriptors/src/main/java/org/superbiz/altdd/Movie.java
+++ b/examples/alternate-descriptors/src/main/java/org/superbiz/altdd/Movie.java
@@ -1,61 +1,61 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.superbiz.altdd;
-
-import javax.persistence.Entity;
-
-@Entity
-public class Movie {
-
- private String director;
- private String title;
- private int year;
-
- public Movie() {
- }
-
- public Movie(String director, String title, int year) {
- this.director = director;
- this.title = title;
- this.year = year;
- }
-
- public String getDirector() {
- return director;
- }
-
- public void setDirector(String director) {
- this.director = director;
- }
-
- public String getTitle() {
- return title;
- }
-
- public void setTitle(String title) {
- this.title = title;
- }
-
- public int getYear() {
- return year;
- }
-
- public void setYear(int year) {
- this.year = year;
- }
-
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.superbiz.altdd;
+
+import javax.persistence.Entity;
+
+@Entity
+public class Movie {
+
+ private String director;
+ private String title;
+ private int year;
+
+ public Movie() {
+ }
+
+ public Movie(String director, String title, int year) {
+ this.director = director;
+ this.title = title;
+ this.year = year;
+ }
+
+ public String getDirector() {
+ return director;
+ }
+
+ public void setDirector(String director) {
+ this.director = director;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public int getYear() {
+ return year;
+ }
+
+ public void setYear(int year) {
+ this.year = year;
+ }
+
+}
http://git-wip-us.apache.org/repos/asf/tomee/blob/f9f1b8ad/examples/alternate-descriptors/src/main/java/org/superbiz/altdd/Movies.java
----------------------------------------------------------------------
diff --git a/examples/alternate-descriptors/src/main/java/org/superbiz/altdd/Movies.java b/examples/alternate-descriptors/src/main/java/org/superbiz/altdd/Movies.java
index 0a864c7..61e72ad 100644
--- a/examples/alternate-descriptors/src/main/java/org/superbiz/altdd/Movies.java
+++ b/examples/alternate-descriptors/src/main/java/org/superbiz/altdd/Movies.java
@@ -1,50 +1,50 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.superbiz.altdd;
-
-import javax.ejb.Stateful;
-import javax.ejb.TransactionAttribute;
-import javax.persistence.EntityManager;
-import javax.persistence.PersistenceContext;
-import javax.persistence.PersistenceContextType;
-import javax.persistence.Query;
-import java.util.List;
-
-import static javax.ejb.TransactionAttributeType.MANDATORY;
-
-//START SNIPPET: code
-@Stateful
-@TransactionAttribute(MANDATORY)
-public class Movies {
-
- @PersistenceContext(unitName = "movie-unit", type = PersistenceContextType.TRANSACTION)
- private EntityManager entityManager;
-
- public void addMovie(Movie movie) throws Exception {
- entityManager.persist(movie);
- }
-
- public void deleteMovie(Movie movie) throws Exception {
- entityManager.remove(movie);
- }
-
- public List<Movie> getMovies() throws Exception {
- Query query = entityManager.createQuery("SELECT m from Movie as m");
- return query.getResultList();
- }
-}
-//END SNIPPET: code
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.superbiz.altdd;
+
+import javax.ejb.Stateful;
+import javax.ejb.TransactionAttribute;
+import javax.persistence.EntityManager;
+import javax.persistence.PersistenceContext;
+import javax.persistence.PersistenceContextType;
+import javax.persistence.Query;
+import java.util.List;
+
+import static javax.ejb.TransactionAttributeType.MANDATORY;
+
+//START SNIPPET: code
+@Stateful
+@TransactionAttribute(MANDATORY)
+public class Movies {
+
+ @PersistenceContext(unitName = "movie-unit", type = PersistenceContextType.TRANSACTION)
+ private EntityManager entityManager;
+
+ public void addMovie(Movie movie) throws Exception {
+ entityManager.persist(movie);
+ }
+
+ public void deleteMovie(Movie movie) throws Exception {
+ entityManager.remove(movie);
+ }
+
+ public List<Movie> getMovies() throws Exception {
+ Query query = entityManager.createQuery("SELECT m from Movie as m");
+ return query.getResultList();
+ }
+}
+//END SNIPPET: code
http://git-wip-us.apache.org/repos/asf/tomee/blob/f9f1b8ad/examples/alternate-descriptors/src/test/java/org/superbiz/altdd/MoviesTest.java
----------------------------------------------------------------------
diff --git a/examples/alternate-descriptors/src/test/java/org/superbiz/altdd/MoviesTest.java b/examples/alternate-descriptors/src/test/java/org/superbiz/altdd/MoviesTest.java
index edfc9fa..29a94e5 100644
--- a/examples/alternate-descriptors/src/test/java/org/superbiz/altdd/MoviesTest.java
+++ b/examples/alternate-descriptors/src/test/java/org/superbiz/altdd/MoviesTest.java
@@ -1,99 +1,99 @@
-/**
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.superbiz.altdd;
-
-import junit.framework.TestCase;
-
-import javax.annotation.Resource;
-import javax.ejb.EJB;
-import javax.ejb.SessionContext;
-import javax.ejb.embeddable.EJBContainer;
-import javax.interceptor.AroundInvoke;
-import javax.interceptor.InvocationContext;
-import javax.persistence.EntityManager;
-import javax.persistence.PersistenceContext;
-import javax.transaction.RollbackException;
-import javax.transaction.UserTransaction;
-import java.util.List;
-import java.util.Properties;
-
-//START SNIPPET: code
-public class MoviesTest extends TestCase {
-
- @EJB
- private Movies movies;
-
- @Resource
- private UserTransaction userTransaction;
-
- @PersistenceContext
- private EntityManager entityManager;
-
- public void setUp() throws Exception {
- Properties p = new Properties();
- p.put("movieDatabase", "new://Resource?type=DataSource");
- p.put("movieDatabase.JdbcDriver", "org.hsqldb.jdbcDriver");
- p.put("movieDatabase.JdbcUrl", "jdbc:hsqldb:mem:moviedb");
-
- p.put("openejb.altdd.prefix", "test");
-
- EJBContainer.createEJBContainer(p).getContext().bind("inject", this);
- }
-
- public void test() throws Exception {
-
- userTransaction.begin();
-
- try {
- entityManager.persist(new Movie("Quentin Tarantino", "Reservoir Dogs", 1992));
- entityManager.persist(new Movie("Joel Coen", "Fargo", 1996));
- entityManager.persist(new Movie("Joel Coen", "The Big Lebowski", 1998));
-
- List<Movie> list = movies.getMovies();
- assertEquals("List.size()", 3, list.size());
-
- for (Movie movie : list) {
- movies.deleteMovie(movie);
- }
-
- assertEquals("Movies.getMovies()", 0, movies.getMovies().size());
-
- } finally {
- try {
- userTransaction.commit();
- fail("Transaction should have been rolled back");
- } catch (RollbackException e) {
- // Good, we don't want to clean up the db
- }
- }
- }
-
- public static class Interceptor {
-
- @Resource
- private SessionContext sessionContext;
-
- @AroundInvoke
- public Object invoke(InvocationContext context) throws Exception {
-
- sessionContext.setRollbackOnly();
-
- return context.proceed();
- }
- }
-}
-//END SNIPPET: code
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.superbiz.altdd;
+
+import junit.framework.TestCase;
+
+import javax.annotation.Resource;
+import javax.ejb.EJB;
+import javax.ejb.SessionContext;
+import javax.ejb.embeddable.EJBContainer;
+import javax.interceptor.AroundInvoke;
+import javax.interceptor.InvocationContext;
+import javax.persistence.EntityManager;
+import javax.persistence.PersistenceContext;
+import javax.transaction.RollbackException;
+import javax.transaction.UserTransaction;
+import java.util.List;
+import java.util.Properties;
+
+//START SNIPPET: code
+public class MoviesTest extends TestCase {
+
+ @EJB
+ private Movies movies;
+
+ @Resource
+ private UserTransaction userTransaction;
+
+ @PersistenceContext
+ private EntityManager entityManager;
+
+ public void setUp() throws Exception {
+ Properties p = new Properties();
+ p.put("movieDatabase", "new://Resource?type=DataSource");
+ p.put("movieDatabase.JdbcDriver", "org.hsqldb.jdbcDriver");
+ p.put("movieDatabase.JdbcUrl", "jdbc:hsqldb:mem:moviedb");
+
+ p.put("openejb.altdd.prefix", "test");
+
+ EJBContainer.createEJBContainer(p).getContext().bind("inject", this);
+ }
+
+ public void test() throws Exception {
+
+ userTransaction.begin();
+
+ try {
+ entityManager.persist(new Movie("Quentin Tarantino", "Reservoir Dogs", 1992));
+ entityManager.persist(new Movie("Joel Coen", "Fargo", 1996));
+ entityManager.persist(new Movie("Joel Coen", "The Big Lebowski", 1998));
+
+ List<Movie> list = movies.getMovies();
+ assertEquals("List.size()", 3, list.size());
+
+ for (Movie movie : list) {
+ movies.deleteMovie(movie);
+ }
+
+ assertEquals("Movies.getMovies()", 0, movies.getMovies().size());
+
+ } finally {
+ try {
+ userTransaction.commit();
+ fail("Transaction should have been rolled back");
+ } catch (RollbackException e) {
+ // Good, we don't want to clean up the db
+ }
+ }
+ }
+
+ public static class Interceptor {
+
+ @Resource
+ private SessionContext sessionContext;
+
+ @AroundInvoke
+ public Object invoke(InvocationContext context) throws Exception {
+
+ sessionContext.setRollbackOnly();
+
+ return context.proceed();
+ }
+ }
+}
+//END SNIPPET: code
http://git-wip-us.apache.org/repos/asf/tomee/blob/f9f1b8ad/examples/applet/src/main/java/org/superbiz/applet/Calculator.java
----------------------------------------------------------------------
diff --git a/examples/applet/src/main/java/org/superbiz/applet/Calculator.java b/examples/applet/src/main/java/org/superbiz/applet/Calculator.java
index 73cd714..bb34178 100644
--- a/examples/applet/src/main/java/org/superbiz/applet/Calculator.java
+++ b/examples/applet/src/main/java/org/superbiz/applet/Calculator.java
@@ -1,26 +1,25 @@
-/**
- *
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.superbiz.applet;
-
-import javax.ejb.Remote;
-
-@Remote
-public interface Calculator {
-
- public double add(double x, double y);
-}
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ * <p/>
+ * http://www.apache.org/licenses/LICENSE-2.0
+ * <p/>
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.superbiz.applet;
+
+import javax.ejb.Remote;
+
+@Remote
+public interface Calculator {
+
+ public double add(double x, double y);
+}