http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/entityproxy/src/test/java/org/qi4j/library/entityproxy/SomeRole.java ---------------------------------------------------------------------- diff --git a/libraries/entityproxy/src/test/java/org/qi4j/library/entityproxy/SomeRole.java b/libraries/entityproxy/src/test/java/org/qi4j/library/entityproxy/SomeRole.java deleted file mode 100644 index 8c1e18b..0000000 --- a/libraries/entityproxy/src/test/java/org/qi4j/library/entityproxy/SomeRole.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright (c) 2010, Stanislav Muhametsin. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - - -package org.qi4j.library.entityproxy; - -import org.qi4j.api.common.Optional; -import org.qi4j.api.injection.scope.This; -import org.qi4j.api.mixin.Mixins; -import org.qi4j.api.property.Property; -import org.qi4j.api.unitofwork.concern.UnitOfWorkPropagation; -import org.qi4j.api.unitofwork.concern.UnitOfWorkPropagation.Propagation; - -/** - * - * @author Stanislav Muhametsin - */ -@Mixins({ - SomeRole.SomeRoleMixin.class -}) -public interface SomeRole -{ - - public String getMyString(); - - public void setMyString(String str); - - public interface SomeRoleState - { - @Optional - Property<String> myString(); - } - - public class SomeRoleMixin implements SomeRole - { - - @This private SomeRoleState _state; - - @Override - public String getMyString() - { - return this._state.myString().get(); - } - - @Override - public void setMyString( String str ) - { - this._state.myString().set( str ); - } - - } - - // The reason why proxy mixins are not generic is that sometimes, for example, entity may return the value of @This-injected variable, - // which is not instance of ProxyableEntity, but still an entity. Then a full control is needed. - public class SomeRoleProxyMixin implements SomeRole - { - @This private EntityProxy _proxy; - - @Override - @UnitOfWorkPropagation(Propagation.REQUIRED) - public String getMyString() - { - return this._proxy.getEntity( SomeRole.class ).getMyString(); - } - - @Override - @UnitOfWorkPropagation(Propagation.REQUIRED) - public void setMyString( String str ) - { - this._proxy.getEntity( SomeRole.class ).setMyString( str ); - } - } -}
http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/dev-status.xml ---------------------------------------------------------------------- diff --git a/libraries/exception/dev-status.xml b/libraries/exception/dev-status.xml deleted file mode 100644 index 1e523b4..0000000 --- a/libraries/exception/dev-status.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<module xmlns="http://www.qi4j.org/schemas/2008/dev-status/1"> - <status> - <codebase>early</codebase> - <!--none,early,beta,stable,mature--> - <documentation>none</documentation> - <!-- none, brief, good, complete --> - <unittests>none</unittests> - <!-- none, some, good, complete --> - </status> - <licenses> - <license>ALv2</license> - </licenses> -</module> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/licenses/.svn/all-wcprops ---------------------------------------------------------------------- diff --git a/libraries/exception/licenses/.svn/all-wcprops b/libraries/exception/licenses/.svn/all-wcprops deleted file mode 100644 index 34b9b1c..0000000 --- a/libraries/exception/licenses/.svn/all-wcprops +++ /dev/null @@ -1,5 +0,0 @@ -K 25 -svn:wc:ra_dav:version-url -V 70 -/repos/ops4j/!svn/ver/12441/projects/qi4j/libraries/exception/licenses -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/licenses/.svn/entries ---------------------------------------------------------------------- diff --git a/libraries/exception/licenses/.svn/entries b/libraries/exception/licenses/.svn/entries deleted file mode 100644 index 21f4838..0000000 --- a/libraries/exception/licenses/.svn/entries +++ /dev/null @@ -1,28 +0,0 @@ -8 - -dir -14719 -https://scm.ops4j.org/repos/ops4j/projects/qi4j/libraries/exception/licenses -https://scm.ops4j.org/repos/ops4j - - - -2008-07-26T12:42:38.335187Z -12441 [email protected] - - -svn:special svn:externals svn:needs-lock - - - - - - - - - - - -9b982a3c-3ae5-0310-a4bc-d9a3335569bd - http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/licenses/.svn/format ---------------------------------------------------------------------- diff --git a/libraries/exception/licenses/.svn/format b/libraries/exception/licenses/.svn/format deleted file mode 100644 index 45a4fb7..0000000 --- a/libraries/exception/licenses/.svn/format +++ /dev/null @@ -1 +0,0 @@ -8 http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/pom.xml ---------------------------------------------------------------------- diff --git a/libraries/exception/pom.xml b/libraries/exception/pom.xml deleted file mode 100644 index 14c30db..0000000 --- a/libraries/exception/pom.xml +++ /dev/null @@ -1,37 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.qi4j.sandbox</groupId> - <artifactId>qi4j-sandbox-libraries</artifactId> - <version>0-SNAPSHOT</version> - </parent> - <groupId>org.qi4j.library</groupId> - <artifactId>org.qi4j.library.exception</artifactId> - <name>Qi4j Library - Exception Handling</name> - - <dependencies> - <dependency> - <groupId>org.qi4j.core</groupId> - <artifactId>org.qi4j.core.api</artifactId> - </dependency> - <dependency> - <groupId>org.qi4j.core</groupId> - <artifactId>org.qi4j.core.spi</artifactId> - </dependency> - <dependency> - <groupId>org.qi4j.core</groupId> - <artifactId>org.qi4j.core.bootstrap</artifactId> - </dependency> - <dependency> - <groupId>org.qi4j.core</groupId> - <artifactId>org.qi4j.core.testsupport</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - <scope>test</scope> - </dependency> - </dependencies> -</project> http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/.svn/all-wcprops ---------------------------------------------------------------------- diff --git a/libraries/exception/src/.svn/all-wcprops b/libraries/exception/src/.svn/all-wcprops deleted file mode 100644 index 292a7a7..0000000 --- a/libraries/exception/src/.svn/all-wcprops +++ /dev/null @@ -1,5 +0,0 @@ -K 25 -svn:wc:ra_dav:version-url -V 65 -/repos/ops4j/!svn/ver/13742/projects/qi4j/libraries/exception/src -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/.svn/entries ---------------------------------------------------------------------- diff --git a/libraries/exception/src/.svn/entries b/libraries/exception/src/.svn/entries deleted file mode 100644 index bd80ce2..0000000 --- a/libraries/exception/src/.svn/entries +++ /dev/null @@ -1,34 +0,0 @@ -8 - -dir -14719 -https://scm.ops4j.org/repos/ops4j/projects/qi4j/libraries/exception/src -https://scm.ops4j.org/repos/ops4j - - - -2008-12-16T11:13:26.017490Z -13742 [email protected] - - -svn:special svn:externals svn:needs-lock - - - - - - - - - - - -9b982a3c-3ae5-0310-a4bc-d9a3335569bd - -test -dir - -main -dir - http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/.svn/format ---------------------------------------------------------------------- diff --git a/libraries/exception/src/.svn/format b/libraries/exception/src/.svn/format deleted file mode 100644 index 45a4fb7..0000000 --- a/libraries/exception/src/.svn/format +++ /dev/null @@ -1 +0,0 @@ -8 http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/.svn/all-wcprops ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/.svn/all-wcprops b/libraries/exception/src/main/.svn/all-wcprops deleted file mode 100644 index b2f265e..0000000 --- a/libraries/exception/src/main/.svn/all-wcprops +++ /dev/null @@ -1,5 +0,0 @@ -K 25 -svn:wc:ra_dav:version-url -V 70 -/repos/ops4j/!svn/ver/13742/projects/qi4j/libraries/exception/src/main -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/.svn/entries ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/.svn/entries b/libraries/exception/src/main/.svn/entries deleted file mode 100644 index 3597cb3..0000000 --- a/libraries/exception/src/main/.svn/entries +++ /dev/null @@ -1,31 +0,0 @@ -8 - -dir -14719 -https://scm.ops4j.org/repos/ops4j/projects/qi4j/libraries/exception/src/main -https://scm.ops4j.org/repos/ops4j - - - -2008-12-16T11:13:26.017490Z -13742 [email protected] - - -svn:special svn:externals svn:needs-lock - - - - - - - - - - - -9b982a3c-3ae5-0310-a4bc-d9a3335569bd - -java -dir - http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/.svn/format ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/.svn/format b/libraries/exception/src/main/.svn/format deleted file mode 100644 index 45a4fb7..0000000 --- a/libraries/exception/src/main/.svn/format +++ /dev/null @@ -1 +0,0 @@ -8 http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/.svn/all-wcprops ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/.svn/all-wcprops b/libraries/exception/src/main/java/.svn/all-wcprops deleted file mode 100644 index 0046ee9..0000000 --- a/libraries/exception/src/main/java/.svn/all-wcprops +++ /dev/null @@ -1,5 +0,0 @@ -K 25 -svn:wc:ra_dav:version-url -V 75 -/repos/ops4j/!svn/ver/13742/projects/qi4j/libraries/exception/src/main/java -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/.svn/entries ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/.svn/entries b/libraries/exception/src/main/java/.svn/entries deleted file mode 100644 index 3099041..0000000 --- a/libraries/exception/src/main/java/.svn/entries +++ /dev/null @@ -1,31 +0,0 @@ -8 - -dir -14719 -https://scm.ops4j.org/repos/ops4j/projects/qi4j/libraries/exception/src/main/java -https://scm.ops4j.org/repos/ops4j - - - -2008-12-16T11:13:26.017490Z -13742 [email protected] - - -svn:special svn:externals svn:needs-lock - - - - - - - - - - - -9b982a3c-3ae5-0310-a4bc-d9a3335569bd - -org -dir - http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/.svn/format ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/.svn/format b/libraries/exception/src/main/java/.svn/format deleted file mode 100644 index 45a4fb7..0000000 --- a/libraries/exception/src/main/java/.svn/format +++ /dev/null @@ -1 +0,0 @@ -8 http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/.svn/all-wcprops ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/.svn/all-wcprops b/libraries/exception/src/main/java/org/.svn/all-wcprops deleted file mode 100644 index b966086..0000000 --- a/libraries/exception/src/main/java/org/.svn/all-wcprops +++ /dev/null @@ -1,5 +0,0 @@ -K 25 -svn:wc:ra_dav:version-url -V 79 -/repos/ops4j/!svn/ver/13742/projects/qi4j/libraries/exception/src/main/java/org -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/.svn/entries ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/.svn/entries b/libraries/exception/src/main/java/org/.svn/entries deleted file mode 100644 index 5c5182b..0000000 --- a/libraries/exception/src/main/java/org/.svn/entries +++ /dev/null @@ -1,31 +0,0 @@ -8 - -dir -14719 -https://scm.ops4j.org/repos/ops4j/projects/qi4j/libraries/exception/src/main/java/org -https://scm.ops4j.org/repos/ops4j - - - -2008-12-16T11:13:26.017490Z -13742 [email protected] - - -svn:special svn:externals svn:needs-lock - - - - - - - - - - - -9b982a3c-3ae5-0310-a4bc-d9a3335569bd - -qi4j -dir - http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/.svn/format ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/.svn/format b/libraries/exception/src/main/java/org/.svn/format deleted file mode 100644 index 45a4fb7..0000000 --- a/libraries/exception/src/main/java/org/.svn/format +++ /dev/null @@ -1 +0,0 @@ -8 http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/.svn/all-wcprops ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/.svn/all-wcprops b/libraries/exception/src/main/java/org/qi4j/.svn/all-wcprops deleted file mode 100644 index e4b389d..0000000 --- a/libraries/exception/src/main/java/org/qi4j/.svn/all-wcprops +++ /dev/null @@ -1,5 +0,0 @@ -K 25 -svn:wc:ra_dav:version-url -V 84 -/repos/ops4j/!svn/ver/13742/projects/qi4j/libraries/exception/src/main/java/org/qi4j -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/.svn/entries ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/.svn/entries b/libraries/exception/src/main/java/org/qi4j/.svn/entries deleted file mode 100644 index af9b8aa..0000000 --- a/libraries/exception/src/main/java/org/qi4j/.svn/entries +++ /dev/null @@ -1,31 +0,0 @@ -8 - -dir -14719 -https://scm.ops4j.org/repos/ops4j/projects/qi4j/libraries/exception/src/main/java/org/qi4j -https://scm.ops4j.org/repos/ops4j - - - -2008-12-16T11:13:26.017490Z -13742 [email protected] - - -svn:special svn:externals svn:needs-lock - - - - - - - - - - - -9b982a3c-3ae5-0310-a4bc-d9a3335569bd - -library -dir - http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/.svn/format ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/.svn/format b/libraries/exception/src/main/java/org/qi4j/.svn/format deleted file mode 100644 index 45a4fb7..0000000 --- a/libraries/exception/src/main/java/org/qi4j/.svn/format +++ /dev/null @@ -1 +0,0 @@ -8 http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/.svn/all-wcprops ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/.svn/all-wcprops b/libraries/exception/src/main/java/org/qi4j/library/.svn/all-wcprops deleted file mode 100644 index a29b0c2..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/.svn/all-wcprops +++ /dev/null @@ -1,5 +0,0 @@ -K 25 -svn:wc:ra_dav:version-url -V 92 -/repos/ops4j/!svn/ver/13742/projects/qi4j/libraries/exception/src/main/java/org/qi4j/library -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/.svn/entries ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/.svn/entries b/libraries/exception/src/main/java/org/qi4j/library/.svn/entries deleted file mode 100644 index 5cf1ff0..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/.svn/entries +++ /dev/null @@ -1,31 +0,0 @@ -8 - -dir -14719 -https://scm.ops4j.org/repos/ops4j/projects/qi4j/libraries/exception/src/main/java/org/qi4j/library -https://scm.ops4j.org/repos/ops4j - - - -2008-12-16T11:13:26.017490Z -13742 [email protected] - - -svn:special svn:externals svn:needs-lock - - - - - - - - - - - -9b982a3c-3ae5-0310-a4bc-d9a3335569bd - -exception -dir - http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/.svn/format ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/.svn/format b/libraries/exception/src/main/java/org/qi4j/library/.svn/format deleted file mode 100644 index 45a4fb7..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/.svn/format +++ /dev/null @@ -1 +0,0 @@ -8 http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/all-wcprops ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/all-wcprops b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/all-wcprops deleted file mode 100644 index accc3af..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/all-wcprops +++ /dev/null @@ -1,65 +0,0 @@ -K 25 -svn:wc:ra_dav:version-url -V 102 -/repos/ops4j/!svn/ver/13742/projects/qi4j/libraries/exception/src/main/java/org/qi4j/library/exception -END -ExceptionHandlingNotificationConcern.java -K 25 -svn:wc:ra_dav:version-url -V 144 -/repos/ops4j/!svn/ver/13742/projects/qi4j/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionHandlingNotificationConcern.java -END -ExceptionHandling.java -K 25 -svn:wc:ra_dav:version-url -V 125 -/repos/ops4j/!svn/ver/12464/projects/qi4j/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionHandling.java -END -ExceptionObservable.java -K 25 -svn:wc:ra_dav:version-url -V 127 -/repos/ops4j/!svn/ver/12464/projects/qi4j/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionObservable.java -END -ExceptionObserver.java -K 25 -svn:wc:ra_dav:version-url -V 125 -/repos/ops4j/!svn/ver/12464/projects/qi4j/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionObserver.java -END -SystemErrExceptionHandlingMixin.java -K 25 -svn:wc:ra_dav:version-url -V 139 -/repos/ops4j/!svn/ver/12464/projects/qi4j/libraries/exception/src/main/java/org/qi4j/library/exception/SystemErrExceptionHandlingMixin.java -END -ExceptionObservableMixin.java -K 25 -svn:wc:ra_dav:version-url -V 132 -/repos/ops4j/!svn/ver/13742/projects/qi4j/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionObservableMixin.java -END -ObservableExceptionHandlingService.java -K 25 -svn:wc:ra_dav:version-url -V 142 -/repos/ops4j/!svn/ver/13742/projects/qi4j/libraries/exception/src/main/java/org/qi4j/library/exception/ObservableExceptionHandlingService.java -END -DelegatingExceptionObserver.java -K 25 -svn:wc:ra_dav:version-url -V 135 -/repos/ops4j/!svn/ver/12464/projects/qi4j/libraries/exception/src/main/java/org/qi4j/library/exception/DelegatingExceptionObserver.java -END -NullExceptionHandling.java -K 25 -svn:wc:ra_dav:version-url -V 129 -/repos/ops4j/!svn/ver/12464/projects/qi4j/libraries/exception/src/main/java/org/qi4j/library/exception/NullExceptionHandling.java -END -SimpleExceptionHandlingService.java -K 25 -svn:wc:ra_dav:version-url -V 138 -/repos/ops4j/!svn/ver/13742/projects/qi4j/libraries/exception/src/main/java/org/qi4j/library/exception/SimpleExceptionHandlingService.java -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/entries ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/entries b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/entries deleted file mode 100644 index 0b0f918..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/entries +++ /dev/null @@ -1,158 +0,0 @@ -8 - -dir -14719 -https://scm.ops4j.org/repos/ops4j/projects/qi4j/libraries/exception/src/main/java/org/qi4j/library/exception -https://scm.ops4j.org/repos/ops4j - - - -2008-12-16T11:13:26.017490Z -13742 [email protected] - - -svn:special svn:externals svn:needs-lock - - - - - - - - - - - -9b982a3c-3ae5-0310-a4bc-d9a3335569bd - -ExceptionHandlingNotificationConcern.java -file - - - - -2009-04-05T04:16:42.000000Z -73ff824c08ee67ed5f1ba4a3d3850d29 -2008-12-16T11:13:26.017490Z -13742 [email protected] -has-props - -ExceptionHandling.java -file - - - - -2009-04-05T04:16:42.000000Z -763b3886feab2bd18cf7baae5806d466 -2008-07-30T03:59:42.341738Z -12464 [email protected] -has-props - -ExceptionObservable.java -file - - - - -2009-04-05T04:16:42.000000Z -b1c2bf9efeba4f6be16d052cfa9d577a -2008-07-30T03:59:42.341738Z -12464 [email protected] -has-props - -ExceptionObserver.java -file - - - - -2009-04-05T04:16:42.000000Z -ace5fa42fc4f338d1a5c506cb8459e32 -2008-07-30T03:59:42.341738Z -12464 [email protected] -has-props - -SystemErrExceptionHandlingMixin.java -file - - - - -2009-04-05T04:16:42.000000Z -b5584d5522869f417f76f2f151a3e234 -2008-07-30T03:59:42.341738Z -12464 [email protected] -has-props - -ExceptionObservableMixin.java -file - - - - -2009-04-05T04:16:42.000000Z -092661c2003fdd452b397d20514dd5fd -2008-12-16T11:13:26.017490Z -13742 [email protected] -has-props - -ObservableExceptionHandlingService.java -file - - - - -2009-04-05T04:16:42.000000Z -672d78d16ff53bf03b05638ab48ca377 -2008-12-16T11:13:26.017490Z -13742 [email protected] -has-props - -DelegatingExceptionObserver.java -file - - - - -2009-04-05T04:16:42.000000Z -eae1c8abb25bab16da660f6cef9afdeb -2008-07-30T03:59:42.341738Z -12464 [email protected] -has-props - -NullExceptionHandling.java -file - - - - -2009-04-05T04:16:42.000000Z -122ff5432a8e2b5d607160747dc193eb -2008-07-30T03:59:42.341738Z -12464 [email protected] -has-props - -SimpleExceptionHandlingService.java -file - - - - -2009-04-05T04:16:42.000000Z -98d295d244112f3da0bf768fe6f7be96 -2008-12-16T11:13:26.017490Z -13742 [email protected] -has-props - http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/format ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/format b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/format deleted file mode 100644 index 45a4fb7..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/format +++ /dev/null @@ -1 +0,0 @@ -8 http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/DelegatingExceptionObserver.java.svn-base ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/DelegatingExceptionObserver.java.svn-base b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/DelegatingExceptionObserver.java.svn-base deleted file mode 100644 index bdbd305..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/DelegatingExceptionObserver.java.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:eol-style -V 6 -native -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ExceptionHandling.java.svn-base ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ExceptionHandling.java.svn-base b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ExceptionHandling.java.svn-base deleted file mode 100644 index bdbd305..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ExceptionHandling.java.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:eol-style -V 6 -native -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ExceptionHandlingNotificationConcern.java.svn-base ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ExceptionHandlingNotificationConcern.java.svn-base b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ExceptionHandlingNotificationConcern.java.svn-base deleted file mode 100644 index bdbd305..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ExceptionHandlingNotificationConcern.java.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:eol-style -V 6 -native -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ExceptionObservable.java.svn-base ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ExceptionObservable.java.svn-base b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ExceptionObservable.java.svn-base deleted file mode 100644 index bdbd305..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ExceptionObservable.java.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:eol-style -V 6 -native -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ExceptionObservableMixin.java.svn-base ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ExceptionObservableMixin.java.svn-base b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ExceptionObservableMixin.java.svn-base deleted file mode 100644 index bdbd305..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ExceptionObservableMixin.java.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:eol-style -V 6 -native -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ExceptionObserver.java.svn-base ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ExceptionObserver.java.svn-base b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ExceptionObserver.java.svn-base deleted file mode 100644 index bdbd305..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ExceptionObserver.java.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:eol-style -V 6 -native -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/NullExceptionHandling.java.svn-base ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/NullExceptionHandling.java.svn-base b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/NullExceptionHandling.java.svn-base deleted file mode 100644 index bdbd305..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/NullExceptionHandling.java.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:eol-style -V 6 -native -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ObservableExceptionHandlingService.java.svn-base ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ObservableExceptionHandlingService.java.svn-base b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ObservableExceptionHandlingService.java.svn-base deleted file mode 100644 index bdbd305..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/ObservableExceptionHandlingService.java.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:eol-style -V 6 -native -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/SimpleExceptionHandlingService.java.svn-base ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/SimpleExceptionHandlingService.java.svn-base b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/SimpleExceptionHandlingService.java.svn-base deleted file mode 100644 index bdbd305..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/SimpleExceptionHandlingService.java.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:eol-style -V 6 -native -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/SystemErrExceptionHandlingMixin.java.svn-base ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/SystemErrExceptionHandlingMixin.java.svn-base b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/SystemErrExceptionHandlingMixin.java.svn-base deleted file mode 100644 index bdbd305..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/prop-base/SystemErrExceptionHandlingMixin.java.svn-base +++ /dev/null @@ -1,5 +0,0 @@ -K 13 -svn:eol-style -V 6 -native -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/DelegatingExceptionObserver.java.svn-base ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/DelegatingExceptionObserver.java.svn-base b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/DelegatingExceptionObserver.java.svn-base deleted file mode 100644 index 903b5d6..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/DelegatingExceptionObserver.java.svn-base +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2008 Niclas Hedhman. All rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.qi4j.library.exception; - -import java.util.Iterator; -import java.util.LinkedList; - -public class DelegatingExceptionObserver - implements ExceptionObserver -{ - private LinkedList<ExceptionObserver> observers; - - public DelegatingExceptionObserver( ExceptionObserver existing ) - { - observers = new LinkedList<ExceptionObserver>(); - observers.add( existing ); - } - - public void notify( String message, Object source, Throwable exception ) - { - Iterator<ExceptionObserver> iterator; - synchronized( this ) - { - iterator = observers.iterator(); - } - while( iterator.hasNext() ) - { - ExceptionObserver observer = iterator.next(); - try - { - observer.notify( message, source, exception ); - } - catch( Throwable e ) - { - System.err.println( "WARNING: ExceptionObserver " + observer + " threw an exception. See below." ); - e.printStackTrace( System.err ); - } - } - } - - void addExceptionObserver( ExceptionObserver observer ) - { - synchronized( this ) - { - LinkedList<ExceptionObserver> clone = new LinkedList<ExceptionObserver>(); - clone.addAll( observers ); - clone.add( observer ); - observers = clone; - } - } - - ExceptionObserver removeExceptionObserver( ExceptionObserver observer ) - { - synchronized( this ) - { - LinkedList<ExceptionObserver> clone = new LinkedList<ExceptionObserver>(); - clone.addAll( observers ); - clone.remove( observer ); - if( observers.size() == 1 ) - { - ExceptionObserver last = observers.removeFirst(); - observers = null; - return last; - } - observers = clone; - return this; - } - } - -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ExceptionHandling.java.svn-base ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ExceptionHandling.java.svn-base b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ExceptionHandling.java.svn-base deleted file mode 100644 index 016e8cd..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ExceptionHandling.java.svn-base +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright 2008 Niclas Hedhman. All rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.qi4j.library.exception; - -public interface ExceptionHandling -{ - void exceptionOccurred( String message, Object location, Throwable exception ); -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ExceptionHandlingNotificationConcern.java.svn-base ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ExceptionHandlingNotificationConcern.java.svn-base b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ExceptionHandlingNotificationConcern.java.svn-base deleted file mode 100644 index 428d6fa..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ExceptionHandlingNotificationConcern.java.svn-base +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2008 Niclas Hedhman. All rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.qi4j.library.exception; - -import org.qi4j.api.injection.scope.This; -import org.qi4j.api.property.Property; -import org.qi4j.api.concern.ConcernOf; -import org.qi4j.api.mixin.Mixins; - -@Mixins( ExceptionObservableMixin.class ) -public class ExceptionHandlingNotificationConcern extends ConcernOf<ExceptionHandling> - implements ExceptionHandling -{ - @This private Property<ExceptionObserver> observer; - - public void exceptionOccurred( String message, Object location, Throwable exception ) - { - ExceptionObserver current; - synchronized( this ) - { - current = observer.get(); - } - current.notify( message, location, exception ); - next.exceptionOccurred( message, location, exception ); - } -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ExceptionObservable.java.svn-base ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ExceptionObservable.java.svn-base b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ExceptionObservable.java.svn-base deleted file mode 100644 index 7009895..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ExceptionObservable.java.svn-base +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2008 Niclas Hedhman. All rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.qi4j.library.exception; - -public interface ExceptionObservable -{ - void addExceptionObserver( ExceptionObserver observer ); - - void removeExceptionObserver( ExceptionObserver observer ); -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ExceptionObservableMixin.java.svn-base ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ExceptionObservableMixin.java.svn-base b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ExceptionObservableMixin.java.svn-base deleted file mode 100644 index c95c7ae..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ExceptionObservableMixin.java.svn-base +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2008 Niclas Hedhman. All rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.qi4j.library.exception; - -import org.qi4j.api.injection.scope.This; -import org.qi4j.api.property.Property; - -public class ExceptionObservableMixin - implements ExceptionObservable -{ - @This private Property<ExceptionObserver> observer; - - public void addExceptionObserver( ExceptionObserver observer ) - { - synchronized( this ) - { - ExceptionObserver existing = this.observer.get(); - if( existing == null ) - { - this.observer.set( observer ); - return; - } - this.observer.set( new DelegatingExceptionObserver( existing ) ); - } - } - - public void removeExceptionObserver( ExceptionObserver observer ) - { - synchronized( this ) - { - ExceptionObserver current = this.observer.get(); - if( current == null ) - { - return; - } - if( current == observer ) - { - this.observer.set( null ); - return; - } - if( current instanceof DelegatingExceptionObserver ) - { - DelegatingExceptionObserver delegator = (DelegatingExceptionObserver) this.observer; - this.observer.set( delegator.removeExceptionObserver( observer )); - } - } - } - -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ExceptionObserver.java.svn-base ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ExceptionObserver.java.svn-base b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ExceptionObserver.java.svn-base deleted file mode 100644 index 1155a3e..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ExceptionObserver.java.svn-base +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright 2008 Niclas Hedhman. All rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.qi4j.library.exception; - -public interface ExceptionObserver -{ - void notify( String message, Object source, Throwable exception ); -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/NullExceptionHandling.java.svn-base ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/NullExceptionHandling.java.svn-base b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/NullExceptionHandling.java.svn-base deleted file mode 100644 index ff55d1f..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/NullExceptionHandling.java.svn-base +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2008 Niclas Hedhman. All rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.qi4j.library.exception; - -public class NullExceptionHandling - implements ExceptionHandling -{ - public void exceptionOccurred( String message, Object location, Throwable exception ) - { - // Do Nothing! - } -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ObservableExceptionHandlingService.java.svn-base ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ObservableExceptionHandlingService.java.svn-base b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ObservableExceptionHandlingService.java.svn-base deleted file mode 100644 index 359ff84..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/ObservableExceptionHandlingService.java.svn-base +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2008 Niclas Hedhman. All rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.qi4j.library.exception; - -import org.qi4j.api.concern.Concerns; -import org.qi4j.api.mixin.Mixins; -import org.qi4j.api.service.ServiceComposite; - - -@Concerns( { ExceptionHandlingNotificationConcern.class } ) -@Mixins( { ExceptionObservableMixin.class, NullExceptionHandling.class } ) -public interface ObservableExceptionHandlingService extends ExceptionHandling, ExceptionObservable, ServiceComposite -{ -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/SimpleExceptionHandlingService.java.svn-base ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/SimpleExceptionHandlingService.java.svn-base b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/SimpleExceptionHandlingService.java.svn-base deleted file mode 100644 index 9054cbe..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/SimpleExceptionHandlingService.java.svn-base +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright 2008 Niclas Hedhman. All rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.qi4j.library.exception; - -import org.qi4j.api.service.ServiceComposite; -import org.qi4j.api.mixin.Mixins; - -@Mixins( SystemErrExceptionHandlingMixin.class ) -public interface SimpleExceptionHandlingService extends ExceptionHandling, ServiceComposite -{ -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/SystemErrExceptionHandlingMixin.java.svn-base ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/SystemErrExceptionHandlingMixin.java.svn-base b/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/SystemErrExceptionHandlingMixin.java.svn-base deleted file mode 100644 index 20d9b74..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/.svn/text-base/SystemErrExceptionHandlingMixin.java.svn-base +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2008 Niclas Hedhman. All rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.qi4j.library.exception; - -public class SystemErrExceptionHandlingMixin - implements ExceptionHandling -{ - public void exceptionOccurred( String message, Object location, Throwable exception ) - { - System.err.print( location + " " ); - System.err.println( message ); - exception.printStackTrace( System.err ); - } -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/DelegatingExceptionObserver.java ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/DelegatingExceptionObserver.java b/libraries/exception/src/main/java/org/qi4j/library/exception/DelegatingExceptionObserver.java deleted file mode 100644 index 903b5d6..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/DelegatingExceptionObserver.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2008 Niclas Hedhman. All rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.qi4j.library.exception; - -import java.util.Iterator; -import java.util.LinkedList; - -public class DelegatingExceptionObserver - implements ExceptionObserver -{ - private LinkedList<ExceptionObserver> observers; - - public DelegatingExceptionObserver( ExceptionObserver existing ) - { - observers = new LinkedList<ExceptionObserver>(); - observers.add( existing ); - } - - public void notify( String message, Object source, Throwable exception ) - { - Iterator<ExceptionObserver> iterator; - synchronized( this ) - { - iterator = observers.iterator(); - } - while( iterator.hasNext() ) - { - ExceptionObserver observer = iterator.next(); - try - { - observer.notify( message, source, exception ); - } - catch( Throwable e ) - { - System.err.println( "WARNING: ExceptionObserver " + observer + " threw an exception. See below." ); - e.printStackTrace( System.err ); - } - } - } - - void addExceptionObserver( ExceptionObserver observer ) - { - synchronized( this ) - { - LinkedList<ExceptionObserver> clone = new LinkedList<ExceptionObserver>(); - clone.addAll( observers ); - clone.add( observer ); - observers = clone; - } - } - - ExceptionObserver removeExceptionObserver( ExceptionObserver observer ) - { - synchronized( this ) - { - LinkedList<ExceptionObserver> clone = new LinkedList<ExceptionObserver>(); - clone.addAll( observers ); - clone.remove( observer ); - if( observers.size() == 1 ) - { - ExceptionObserver last = observers.removeFirst(); - observers = null; - return last; - } - observers = clone; - return this; - } - } - -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionHandling.java ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionHandling.java b/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionHandling.java deleted file mode 100644 index 016e8cd..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionHandling.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright 2008 Niclas Hedhman. All rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.qi4j.library.exception; - -public interface ExceptionHandling -{ - void exceptionOccurred( String message, Object location, Throwable exception ); -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionHandlingNotificationConcern.java ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionHandlingNotificationConcern.java b/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionHandlingNotificationConcern.java deleted file mode 100644 index d0f22ee..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionHandlingNotificationConcern.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2008 Niclas Hedhman. All rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.qi4j.library.exception; - -import org.qi4j.api.concern.ConcernOf; -import org.qi4j.api.injection.scope.This; -import org.qi4j.api.mixin.Mixins; -import org.qi4j.api.property.Property; - -@Mixins( ExceptionObservableMixin.class ) -public class ExceptionHandlingNotificationConcern extends ConcernOf<ExceptionHandling> - implements ExceptionHandling -{ - @This private Property<ExceptionObserver> observer; - - public void exceptionOccurred( String message, Object location, Throwable exception ) - { - ExceptionObserver current; - synchronized( this ) - { - current = observer.get(); - } - current.notify( message, location, exception ); - next.exceptionOccurred( message, location, exception ); - } -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionObservable.java ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionObservable.java b/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionObservable.java deleted file mode 100644 index 7009895..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionObservable.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright 2008 Niclas Hedhman. All rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.qi4j.library.exception; - -public interface ExceptionObservable -{ - void addExceptionObserver( ExceptionObserver observer ); - - void removeExceptionObserver( ExceptionObserver observer ); -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionObservableMixin.java ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionObservableMixin.java b/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionObservableMixin.java deleted file mode 100644 index f08e092..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionObservableMixin.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2008 Niclas Hedhman. All rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.qi4j.library.exception; - -import org.qi4j.api.injection.scope.This; -import org.qi4j.api.property.Property; - -public class ExceptionObservableMixin - implements ExceptionObservable -{ - @This private Property<ExceptionObserver> observer; - - public void addExceptionObserver( ExceptionObserver observer ) - { - synchronized( this ) - { - ExceptionObserver existing = this.observer.get(); - if( existing == null ) - { - this.observer.set( observer ); - return; - } - this.observer.set( new DelegatingExceptionObserver( existing ) ); - } - } - - public void removeExceptionObserver( ExceptionObserver observer ) - { - synchronized( this ) - { - ExceptionObserver current = this.observer.get(); - if( current == null ) - { - return; - } - if( current == observer ) - { - this.observer.set( null ); - return; - } - if( current instanceof DelegatingExceptionObserver ) - { - DelegatingExceptionObserver delegator = (DelegatingExceptionObserver) this.observer; - this.observer.set( delegator.removeExceptionObserver( observer ) ); - } - } - } - -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionObserver.java ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionObserver.java b/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionObserver.java deleted file mode 100644 index 1155a3e..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/ExceptionObserver.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright 2008 Niclas Hedhman. All rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.qi4j.library.exception; - -public interface ExceptionObserver -{ - void notify( String message, Object source, Throwable exception ); -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/NullExceptionHandling.java ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/NullExceptionHandling.java b/libraries/exception/src/main/java/org/qi4j/library/exception/NullExceptionHandling.java deleted file mode 100644 index ff55d1f..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/NullExceptionHandling.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2008 Niclas Hedhman. All rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.qi4j.library.exception; - -public class NullExceptionHandling - implements ExceptionHandling -{ - public void exceptionOccurred( String message, Object location, Throwable exception ) - { - // Do Nothing! - } -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/ObservableExceptionHandlingService.java ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/ObservableExceptionHandlingService.java b/libraries/exception/src/main/java/org/qi4j/library/exception/ObservableExceptionHandlingService.java deleted file mode 100644 index 359ff84..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/ObservableExceptionHandlingService.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2008 Niclas Hedhman. All rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.qi4j.library.exception; - -import org.qi4j.api.concern.Concerns; -import org.qi4j.api.mixin.Mixins; -import org.qi4j.api.service.ServiceComposite; - - -@Concerns( { ExceptionHandlingNotificationConcern.class } ) -@Mixins( { ExceptionObservableMixin.class, NullExceptionHandling.class } ) -public interface ObservableExceptionHandlingService extends ExceptionHandling, ExceptionObservable, ServiceComposite -{ -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/SimpleExceptionHandlingService.java ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/SimpleExceptionHandlingService.java b/libraries/exception/src/main/java/org/qi4j/library/exception/SimpleExceptionHandlingService.java deleted file mode 100644 index 4c4177f..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/SimpleExceptionHandlingService.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * Copyright 2008 Niclas Hedhman. All rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.qi4j.library.exception; - -import org.qi4j.api.mixin.Mixins; -import org.qi4j.api.service.ServiceComposite; - -@Mixins( SystemErrExceptionHandlingMixin.class ) -public interface SimpleExceptionHandlingService extends ExceptionHandling, ServiceComposite -{ -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/main/java/org/qi4j/library/exception/SystemErrExceptionHandlingMixin.java ---------------------------------------------------------------------- diff --git a/libraries/exception/src/main/java/org/qi4j/library/exception/SystemErrExceptionHandlingMixin.java b/libraries/exception/src/main/java/org/qi4j/library/exception/SystemErrExceptionHandlingMixin.java deleted file mode 100644 index 20d9b74..0000000 --- a/libraries/exception/src/main/java/org/qi4j/library/exception/SystemErrExceptionHandlingMixin.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Copyright 2008 Niclas Hedhman. All rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - * implied. - * - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.qi4j.library.exception; - -public class SystemErrExceptionHandlingMixin - implements ExceptionHandling -{ - public void exceptionOccurred( String message, Object location, Throwable exception ) - { - System.err.print( location + " " ); - System.err.println( message ); - exception.printStackTrace( System.err ); - } -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/test/.svn/all-wcprops ---------------------------------------------------------------------- diff --git a/libraries/exception/src/test/.svn/all-wcprops b/libraries/exception/src/test/.svn/all-wcprops deleted file mode 100644 index 3e44ac5..0000000 --- a/libraries/exception/src/test/.svn/all-wcprops +++ /dev/null @@ -1,5 +0,0 @@ -K 25 -svn:wc:ra_dav:version-url -V 70 -/repos/ops4j/!svn/ver/12464/projects/qi4j/libraries/exception/src/test -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/test/.svn/entries ---------------------------------------------------------------------- diff --git a/libraries/exception/src/test/.svn/entries b/libraries/exception/src/test/.svn/entries deleted file mode 100644 index c0f2cd1..0000000 --- a/libraries/exception/src/test/.svn/entries +++ /dev/null @@ -1,31 +0,0 @@ -8 - -dir -14719 -https://scm.ops4j.org/repos/ops4j/projects/qi4j/libraries/exception/src/test -https://scm.ops4j.org/repos/ops4j - - - -2008-07-30T03:59:42.341738Z -12464 [email protected] - - -svn:special svn:externals svn:needs-lock - - - - - - - - - - - -9b982a3c-3ae5-0310-a4bc-d9a3335569bd - -java -dir - http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/test/.svn/format ---------------------------------------------------------------------- diff --git a/libraries/exception/src/test/.svn/format b/libraries/exception/src/test/.svn/format deleted file mode 100644 index 45a4fb7..0000000 --- a/libraries/exception/src/test/.svn/format +++ /dev/null @@ -1 +0,0 @@ -8 http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/test/java/.svn/all-wcprops ---------------------------------------------------------------------- diff --git a/libraries/exception/src/test/java/.svn/all-wcprops b/libraries/exception/src/test/java/.svn/all-wcprops deleted file mode 100644 index 93d8820..0000000 --- a/libraries/exception/src/test/java/.svn/all-wcprops +++ /dev/null @@ -1,5 +0,0 @@ -K 25 -svn:wc:ra_dav:version-url -V 75 -/repos/ops4j/!svn/ver/12464/projects/qi4j/libraries/exception/src/test/java -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/test/java/.svn/entries ---------------------------------------------------------------------- diff --git a/libraries/exception/src/test/java/.svn/entries b/libraries/exception/src/test/java/.svn/entries deleted file mode 100644 index a1715d1..0000000 --- a/libraries/exception/src/test/java/.svn/entries +++ /dev/null @@ -1,31 +0,0 @@ -8 - -dir -14719 -https://scm.ops4j.org/repos/ops4j/projects/qi4j/libraries/exception/src/test/java -https://scm.ops4j.org/repos/ops4j - - - -2008-07-30T03:59:42.341738Z -12464 [email protected] - - -svn:special svn:externals svn:needs-lock - - - - - - - - - - - -9b982a3c-3ae5-0310-a4bc-d9a3335569bd - -org -dir - http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/test/java/.svn/format ---------------------------------------------------------------------- diff --git a/libraries/exception/src/test/java/.svn/format b/libraries/exception/src/test/java/.svn/format deleted file mode 100644 index 45a4fb7..0000000 --- a/libraries/exception/src/test/java/.svn/format +++ /dev/null @@ -1 +0,0 @@ -8 http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/test/java/org/.svn/all-wcprops ---------------------------------------------------------------------- diff --git a/libraries/exception/src/test/java/org/.svn/all-wcprops b/libraries/exception/src/test/java/org/.svn/all-wcprops deleted file mode 100644 index 22383d1..0000000 --- a/libraries/exception/src/test/java/org/.svn/all-wcprops +++ /dev/null @@ -1,5 +0,0 @@ -K 25 -svn:wc:ra_dav:version-url -V 79 -/repos/ops4j/!svn/ver/12464/projects/qi4j/libraries/exception/src/test/java/org -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/test/java/org/.svn/entries ---------------------------------------------------------------------- diff --git a/libraries/exception/src/test/java/org/.svn/entries b/libraries/exception/src/test/java/org/.svn/entries deleted file mode 100644 index 59776b7..0000000 --- a/libraries/exception/src/test/java/org/.svn/entries +++ /dev/null @@ -1,31 +0,0 @@ -8 - -dir -14719 -https://scm.ops4j.org/repos/ops4j/projects/qi4j/libraries/exception/src/test/java/org -https://scm.ops4j.org/repos/ops4j - - - -2008-07-30T03:59:42.341738Z -12464 [email protected] - - -svn:special svn:externals svn:needs-lock - - - - - - - - - - - -9b982a3c-3ae5-0310-a4bc-d9a3335569bd - -qi4j -dir - http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/test/java/org/.svn/format ---------------------------------------------------------------------- diff --git a/libraries/exception/src/test/java/org/.svn/format b/libraries/exception/src/test/java/org/.svn/format deleted file mode 100644 index 45a4fb7..0000000 --- a/libraries/exception/src/test/java/org/.svn/format +++ /dev/null @@ -1 +0,0 @@ -8 http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/test/java/org/qi4j/.svn/all-wcprops ---------------------------------------------------------------------- diff --git a/libraries/exception/src/test/java/org/qi4j/.svn/all-wcprops b/libraries/exception/src/test/java/org/qi4j/.svn/all-wcprops deleted file mode 100644 index a9f4e3f..0000000 --- a/libraries/exception/src/test/java/org/qi4j/.svn/all-wcprops +++ /dev/null @@ -1,5 +0,0 @@ -K 25 -svn:wc:ra_dav:version-url -V 84 -/repos/ops4j/!svn/ver/12464/projects/qi4j/libraries/exception/src/test/java/org/qi4j -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/test/java/org/qi4j/.svn/entries ---------------------------------------------------------------------- diff --git a/libraries/exception/src/test/java/org/qi4j/.svn/entries b/libraries/exception/src/test/java/org/qi4j/.svn/entries deleted file mode 100644 index cd88c05..0000000 --- a/libraries/exception/src/test/java/org/qi4j/.svn/entries +++ /dev/null @@ -1,31 +0,0 @@ -8 - -dir -14719 -https://scm.ops4j.org/repos/ops4j/projects/qi4j/libraries/exception/src/test/java/org/qi4j -https://scm.ops4j.org/repos/ops4j - - - -2008-07-30T03:59:42.341738Z -12464 [email protected] - - -svn:special svn:externals svn:needs-lock - - - - - - - - - - - -9b982a3c-3ae5-0310-a4bc-d9a3335569bd - -library -dir - http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/test/java/org/qi4j/.svn/format ---------------------------------------------------------------------- diff --git a/libraries/exception/src/test/java/org/qi4j/.svn/format b/libraries/exception/src/test/java/org/qi4j/.svn/format deleted file mode 100644 index 45a4fb7..0000000 --- a/libraries/exception/src/test/java/org/qi4j/.svn/format +++ /dev/null @@ -1 +0,0 @@ -8 http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/test/java/org/qi4j/library/.svn/all-wcprops ---------------------------------------------------------------------- diff --git a/libraries/exception/src/test/java/org/qi4j/library/.svn/all-wcprops b/libraries/exception/src/test/java/org/qi4j/library/.svn/all-wcprops deleted file mode 100644 index 5b731d1..0000000 --- a/libraries/exception/src/test/java/org/qi4j/library/.svn/all-wcprops +++ /dev/null @@ -1,5 +0,0 @@ -K 25 -svn:wc:ra_dav:version-url -V 92 -/repos/ops4j/!svn/ver/12464/projects/qi4j/libraries/exception/src/test/java/org/qi4j/library -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/test/java/org/qi4j/library/.svn/entries ---------------------------------------------------------------------- diff --git a/libraries/exception/src/test/java/org/qi4j/library/.svn/entries b/libraries/exception/src/test/java/org/qi4j/library/.svn/entries deleted file mode 100644 index d2c471b..0000000 --- a/libraries/exception/src/test/java/org/qi4j/library/.svn/entries +++ /dev/null @@ -1,31 +0,0 @@ -8 - -dir -14719 -https://scm.ops4j.org/repos/ops4j/projects/qi4j/libraries/exception/src/test/java/org/qi4j/library -https://scm.ops4j.org/repos/ops4j - - - -2008-07-30T03:59:42.341738Z -12464 [email protected] - - -svn:special svn:externals svn:needs-lock - - - - - - - - - - - -9b982a3c-3ae5-0310-a4bc-d9a3335569bd - -exception -dir - http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/test/java/org/qi4j/library/.svn/format ---------------------------------------------------------------------- diff --git a/libraries/exception/src/test/java/org/qi4j/library/.svn/format b/libraries/exception/src/test/java/org/qi4j/library/.svn/format deleted file mode 100644 index 45a4fb7..0000000 --- a/libraries/exception/src/test/java/org/qi4j/library/.svn/format +++ /dev/null @@ -1 +0,0 @@ -8 http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/test/java/org/qi4j/library/exception/.svn/all-wcprops ---------------------------------------------------------------------- diff --git a/libraries/exception/src/test/java/org/qi4j/library/exception/.svn/all-wcprops b/libraries/exception/src/test/java/org/qi4j/library/exception/.svn/all-wcprops deleted file mode 100644 index 3fc5e56..0000000 --- a/libraries/exception/src/test/java/org/qi4j/library/exception/.svn/all-wcprops +++ /dev/null @@ -1,5 +0,0 @@ -K 25 -svn:wc:ra_dav:version-url -V 102 -/repos/ops4j/!svn/ver/12464/projects/qi4j/libraries/exception/src/test/java/org/qi4j/library/exception -END http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/test/java/org/qi4j/library/exception/.svn/entries ---------------------------------------------------------------------- diff --git a/libraries/exception/src/test/java/org/qi4j/library/exception/.svn/entries b/libraries/exception/src/test/java/org/qi4j/library/exception/.svn/entries deleted file mode 100644 index a327aea..0000000 --- a/libraries/exception/src/test/java/org/qi4j/library/exception/.svn/entries +++ /dev/null @@ -1,28 +0,0 @@ -8 - -dir -14719 -https://scm.ops4j.org/repos/ops4j/projects/qi4j/libraries/exception/src/test/java/org/qi4j/library/exception -https://scm.ops4j.org/repos/ops4j - - - -2008-07-30T03:59:42.341738Z -12464 [email protected] - - -svn:special svn:externals svn:needs-lock - - - - - - - - - - - -9b982a3c-3ae5-0310-a4bc-d9a3335569bd - http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/exception/src/test/java/org/qi4j/library/exception/.svn/format ---------------------------------------------------------------------- diff --git a/libraries/exception/src/test/java/org/qi4j/library/exception/.svn/format b/libraries/exception/src/test/java/org/qi4j/library/exception/.svn/format deleted file mode 100644 index 45a4fb7..0000000 --- a/libraries/exception/src/test/java/org/qi4j/library/exception/.svn/format +++ /dev/null @@ -1 +0,0 @@ -8 http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/executor/dev-status.xml ---------------------------------------------------------------------- diff --git a/libraries/executor/dev-status.xml b/libraries/executor/dev-status.xml deleted file mode 100644 index 0c93156..0000000 --- a/libraries/executor/dev-status.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0" encoding="UTF-8" ?> -<module xmlns="http://www.qi4j.org/schemas/2008/dev-status/1"> - <status> - <codebase>early</codebase> - <!--none,early,beta,stable,mature--> - <documentation>none</documentation> - <!-- none, brief, good, complete --> - <unittests>some</unittests> - <!-- none, some, good, complete --> - </status> - <licenses> - <license>ALv2</license> - </licenses> -</module> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/executor/pom.xml ---------------------------------------------------------------------- diff --git a/libraries/executor/pom.xml b/libraries/executor/pom.xml deleted file mode 100644 index d720245..0000000 --- a/libraries/executor/pom.xml +++ /dev/null @@ -1,38 +0,0 @@ -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - <parent> - <groupId>org.qi4j.sandbox</groupId> - <artifactId>qi4j-sandbox-libraries</artifactId> - <version>0-SNAPSHOT</version> - </parent> - <groupId>org.qi4j.library</groupId> - <artifactId>org.qi4j.library.executor</artifactId> - <name>Qi4j Library - Executor</name> - - <dependencies> - <dependency> - <groupId>org.qi4j.core</groupId> - <artifactId>org.qi4j.core.api</artifactId> - </dependency> - <dependency> - <groupId>org.qi4j.core</groupId> - <artifactId>org.qi4j.core.bootstrap</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.qi4j.core</groupId> - <artifactId>org.qi4j.core.testsupport</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>org.qi4j.core</groupId> - <artifactId>org.qi4j.core.runtime</artifactId> - <scope>test</scope> - </dependency> - <dependency> - <groupId>junit</groupId> - <artifactId>junit</artifactId> - </dependency> - </dependencies> -</project> http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/executor/src/main/java/org/qi4j/library/executor/ExecuteService.java ---------------------------------------------------------------------- diff --git a/libraries/executor/src/main/java/org/qi4j/library/executor/ExecuteService.java b/libraries/executor/src/main/java/org/qi4j/library/executor/ExecuteService.java deleted file mode 100644 index 5e41afb..0000000 --- a/libraries/executor/src/main/java/org/qi4j/library/executor/ExecuteService.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * Copyright (c) 2008, Rickard Ãberg. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -package org.qi4j.library.executor; - -import java.util.concurrent.Executor; -import org.qi4j.api.mixin.Mixins; -import org.qi4j.api.service.ServiceActivation; - -/** - * JAVADOC - */ -@Mixins( ExecutorMixin.class ) -public interface ExecuteService - extends Executor, ServiceActivation -{ -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/executor/src/main/java/org/qi4j/library/executor/ExecuteSideEffect.java ---------------------------------------------------------------------- diff --git a/libraries/executor/src/main/java/org/qi4j/library/executor/ExecuteSideEffect.java b/libraries/executor/src/main/java/org/qi4j/library/executor/ExecuteSideEffect.java deleted file mode 100644 index 069c1bb..0000000 --- a/libraries/executor/src/main/java/org/qi4j/library/executor/ExecuteSideEffect.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright (c) 2008, Rickard Ãberg. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -package org.qi4j.library.executor; - -import java.lang.annotation.ElementType; -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; -import java.lang.annotation.Target; - -/** - * JAVADOC - */ -@Retention( RetentionPolicy.RUNTIME ) -@Target( { ElementType.METHOD } ) -public @interface ExecuteSideEffect -{ - Class<?> value(); -} http://git-wip-us.apache.org/repos/asf/zest-sandbox/blob/d4dd9c17/libraries/executor/src/main/java/org/qi4j/library/executor/ExecutorMixin.java ---------------------------------------------------------------------- diff --git a/libraries/executor/src/main/java/org/qi4j/library/executor/ExecutorMixin.java b/libraries/executor/src/main/java/org/qi4j/library/executor/ExecutorMixin.java deleted file mode 100644 index 61cca65..0000000 --- a/libraries/executor/src/main/java/org/qi4j/library/executor/ExecutorMixin.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2008, Rickard Ãberg. All Rights Reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -package org.qi4j.library.executor; - -import java.util.concurrent.Executor; -import java.util.concurrent.ExecutorService; -import java.util.concurrent.ScheduledThreadPoolExecutor; -import org.qi4j.api.service.ServiceActivation; - -/** - * Delegate Runnable's to a ScheduledThreadPoolExecutor - */ -public class ExecutorMixin - implements Executor, ServiceActivation -{ - private ExecutorService service; - - public void activateService() throws Exception - { - service = new ScheduledThreadPoolExecutor( 10 ); - } - - public void passivateService() throws Exception - { - System.out.println( "Shutdown executors" ); - service.shutdown(); - } - - public void execute( Runnable runnable ) - { - service.execute( runnable ); - } -}
