Return-Path: X-Original-To: apmail-onami-commits-archive@minotaur.apache.org Delivered-To: apmail-onami-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A6FB0D039 for ; Sat, 19 Jan 2013 16:28:48 +0000 (UTC) Received: (qmail 13388 invoked by uid 500); 19 Jan 2013 16:28:48 -0000 Delivered-To: apmail-onami-commits-archive@onami.apache.org Received: (qmail 13359 invoked by uid 500); 19 Jan 2013 16:28:48 -0000 Mailing-List: contact commits-help@onami.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@onami.incubator.apache.org Delivered-To: mailing list commits@onami.incubator.apache.org Received: (qmail 13351 invoked by uid 99); 19 Jan 2013 16:28:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jan 2013 16:28:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 19 Jan 2013 16:28:42 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 1E1522388BF1; Sat, 19 Jan 2013 16:27:54 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1435585 [12/13] - in /incubator/onami/site/cache: ./ cobertura/ xref/ xref/org/apache/onami/cache/ Date: Sat, 19 Jan 2013 16:27:51 -0000 To: commits@onami.incubator.apache.org From: simonetripodi@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130119162754.1E1522388BF1@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Modified: incubator/onami/site/cache/xref/org/apache/onami/cache/CacheModule.html URL: http://svn.apache.org/viewvc/incubator/onami/site/cache/xref/org/apache/onami/cache/CacheModule.html?rev=1435585&r1=1435584&r2=1435585&view=diff ============================================================================== --- incubator/onami/site/cache/xref/org/apache/onami/cache/CacheModule.html (original) +++ incubator/onami/site/cache/xref/org/apache/onami/cache/CacheModule.html Sat Jan 19 16:27:50 2013 @@ -11,54 +11,56 @@ 1 package org.apache.onami.cache; 2 3 /* -4 * Licensed to the Apache Software Foundation (ASF) under one or more -5 * contributor license agreements. See the NOTICE file distributed with -6 * this work for additional information regarding copyright ownership. -7 * The ASF licenses this file to You under the Apache License, Version 2.0 -8 * (the "License"); you may not use this file except in compliance with -9 * the License. You may obtain a copy of the License at -10 * -11 * http://www.apache.org/licenses/LICENSE-2.0 -12 * -13 * Unless required by applicable law or agreed to in writing, software -14 * distributed under the License is distributed on an "AS IS" BASIS, -15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -16 * See the License for the specific language governing permissions and -17 * limitations under the License. -18 */ -19 -20 import static java.util.Arrays.asList; +4 * Licensed to the Apache Software Foundation (ASF) under one +5 * or more contributor license agreements. See the NOTICE file +6 * distributed with this work for additional information +7 * regarding copyright ownership. The ASF licenses this file +8 * to you under the Apache License, Version 2.0 (the +9 * "License"); you may not use this file except in compliance +10 * with the License. You may obtain a copy of the License at +11 * +12 * http://www.apache.org/licenses/LICENSE-2.0 +13 * +14 * Unless required by applicable law or agreed to in writing, +15 * software distributed under the License is distributed on an +16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +17 * KIND, either express or implied. See the License for the +18 * specific language governing permissions and limitations +19 * under the License. +20 */ 21 -22 import static com.google.inject.matcher.Matchers.annotatedWith; -23 import static com.google.inject.matcher.Matchers.any; -24 -25 import java.lang.annotation.Annotation; +22 import static java.util.Arrays.asList; +23 +24 import static com.google.inject.matcher.Matchers.annotatedWith; +25 import static com.google.inject.matcher.Matchers.any; 26 -27 import com.google.inject.AbstractModule; +27 import java.lang.annotation.Annotation; 28 -29 public abstract class CacheModule -30 extends AbstractModule -31 { -32 -33 @Override -34 @SuppressWarnings( "unchecked" ) -35 protected final void configure() -36 { -37 configureCache(); -38 -39 for ( CacheInterceptor<? extends Annotation> interceptor : asList( new CachePutInterceptor(), -40 new CacheResultInterceptor(), -41 new CacheRemoveEntryInterceptor(), -42 new CacheRemoveAllInterceptor() ) ) -43 { -44 requestInjection( interceptor ); -45 bindInterceptor( any(), annotatedWith( interceptor.getInterceptedAnnotationType() ), interceptor ); -46 } -47 } -48 -49 protected abstract void configureCache(); +29 import com.google.inject.AbstractModule; +30 +31 public abstract class CacheModule +32 extends AbstractModule +33 { +34 +35 @Override +36 @SuppressWarnings( "unchecked" ) +37 protected final void configure() +38 { +39 configureCache(); +40 +41 for ( CacheInterceptor<? extends Annotation> interceptor : asList( new CachePutInterceptor(), +42 new CacheResultInterceptor(), +43 new CacheRemoveEntryInterceptor(), +44 new CacheRemoveAllInterceptor() ) ) +45 { +46 requestInjection( interceptor ); +47 bindInterceptor( any(), annotatedWith( interceptor.getInterceptedAnnotationType() ), interceptor ); +48 } +49 } 50 -51 } +51 protected abstract void configureCache(); +52 +53 }
Modified: incubator/onami/site/cache/xref/org/apache/onami/cache/CachePutInterceptor.html URL: http://svn.apache.org/viewvc/incubator/onami/site/cache/xref/org/apache/onami/cache/CachePutInterceptor.html?rev=1435585&r1=1435584&r2=1435585&view=diff ============================================================================== --- incubator/onami/site/cache/xref/org/apache/onami/cache/CachePutInterceptor.html (original) +++ incubator/onami/site/cache/xref/org/apache/onami/cache/CachePutInterceptor.html Sat Jan 19 16:27:50 2013 @@ -11,66 +11,68 @@ 1 package org.apache.onami.cache; 2 3 /* -4 * Licensed to the Apache Software Foundation (ASF) under one or more -5 * contributor license agreements. See the NOTICE file distributed with -6 * this work for additional information regarding copyright ownership. -7 * The ASF licenses this file to You under the Apache License, Version 2.0 -8 * (the "License"); you may not use this file except in compliance with -9 * the License. You may obtain a copy of the License at -10 * -11 * http://www.apache.org/licenses/LICENSE-2.0 -12 * -13 * Unless required by applicable law or agreed to in writing, software -14 * distributed under the License is distributed on an "AS IS" BASIS, -15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -16 * See the License for the specific language governing permissions and -17 * limitations under the License. -18 */ -19 -20 import javax.cache.Cache; -21 import javax.cache.annotation.CacheInvocationContext; -22 import javax.cache.annotation.CacheKey; -23 import javax.cache.annotation.CacheKeyInvocationContext; -24 import javax.cache.annotation.CachePut; -25 -26 import org.aopalliance.intercept.MethodInvocation; +4 * Licensed to the Apache Software Foundation (ASF) under one +5 * or more contributor license agreements. See the NOTICE file +6 * distributed with this work for additional information +7 * regarding copyright ownership. The ASF licenses this file +8 * to you under the Apache License, Version 2.0 (the +9 * "License"); you may not use this file except in compliance +10 * with the License. You may obtain a copy of the License at +11 * +12 * http://www.apache.org/licenses/LICENSE-2.0 +13 * +14 * Unless required by applicable law or agreed to in writing, +15 * software distributed under the License is distributed on an +16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +17 * KIND, either express or implied. See the License for the +18 * specific language governing permissions and limitations +19 * under the License. +20 */ +21 +22 import javax.cache.Cache; +23 import javax.cache.annotation.CacheInvocationContext; +24 import javax.cache.annotation.CacheKey; +25 import javax.cache.annotation.CacheKeyInvocationContext; +26 import javax.cache.annotation.CachePut; 27 -28 final class CachePutInterceptor -29 extends AfterBeforeInvocationInterceptor<CachePut> -30 { -31 -32 @Override -33 public Class<CachePut> getInterceptedAnnotationType() -34 { -35 return CachePut.class; -36 } -37 -38 @Override -39 protected void hitCache( CacheInvocationContext<CachePut> context ) -40 { -41 CacheKeyInvocationContext<CachePut> keyedContext = (CacheKeyInvocationContext<CachePut>) context; -42 Object value = keyedContext.getValueParameter().getValue(); -43 -44 if ( value == null ) -45 { -46 if ( context.getCacheAnnotation().cacheNull() ) -47 { -48 // Null values are cached, set value to the null placeholder -49 value = NULL_PLACEHOLDER; -50 } -51 else -52 { -53 // Ignore null values -54 return; -55 } -56 } -57 -58 Cache<Object, Object> cache = getCacheResolverFactory( context ).getCacheResolver( context ).resolveCache( context ); -59 CacheKey cacheKey = getCacheKeyGenerator( context ).generateCacheKey( keyedContext ); -60 cache.put( cacheKey, value ); -61 } -62 -63 } +28 import org.aopalliance.intercept.MethodInvocation; +29 +30 final class CachePutInterceptor +31 extends AfterBeforeInvocationInterceptor<CachePut> +32 { +33 +34 @Override +35 public Class<CachePut> getInterceptedAnnotationType() +36 { +37 return CachePut.class; +38 } +39 +40 @Override +41 protected void hitCache( CacheInvocationContext<CachePut> context ) +42 { +43 CacheKeyInvocationContext<CachePut> keyedContext = (CacheKeyInvocationContext<CachePut>) context; +44 Object value = keyedContext.getValueParameter().getValue(); +45 +46 if ( value == null ) +47 { +48 if ( context.getCacheAnnotation().cacheNull() ) +49 { +50 // Null values are cached, set value to the null placeholder +51 value = NULL_PLACEHOLDER; +52 } +53 else +54 { +55 // Ignore null values +56 return; +57 } +58 } +59 +60 Cache<Object, Object> cache = getCacheResolverFactory( context ).getCacheResolver( context ).resolveCache( context ); +61 CacheKey cacheKey = getCacheKeyGenerator( context ).generateCacheKey( keyedContext ); +62 cache.put( cacheKey, value ); +63 } +64 +65 }
Modified: incubator/onami/site/cache/xref/org/apache/onami/cache/CacheRemoveAllInterceptor.html URL: http://svn.apache.org/viewvc/incubator/onami/site/cache/xref/org/apache/onami/cache/CacheRemoveAllInterceptor.html?rev=1435585&r1=1435584&r2=1435585&view=diff ============================================================================== --- incubator/onami/site/cache/xref/org/apache/onami/cache/CacheRemoveAllInterceptor.html (original) +++ incubator/onami/site/cache/xref/org/apache/onami/cache/CacheRemoveAllInterceptor.html Sat Jan 19 16:27:50 2013 @@ -11,44 +11,46 @@ 1 package org.apache.onami.cache; 2 3 /* -4 * Licensed to the Apache Software Foundation (ASF) under one or more -5 * contributor license agreements. See the NOTICE file distributed with -6 * this work for additional information regarding copyright ownership. -7 * The ASF licenses this file to You under the Apache License, Version 2.0 -8 * (the "License"); you may not use this file except in compliance with -9 * the License. You may obtain a copy of the License at -10 * -11 * http://www.apache.org/licenses/LICENSE-2.0 -12 * -13 * Unless required by applicable law or agreed to in writing, software -14 * distributed under the License is distributed on an "AS IS" BASIS, -15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -16 * See the License for the specific language governing permissions and -17 * limitations under the License. -18 */ -19 -20 import javax.cache.Cache; -21 import javax.cache.annotation.CacheInvocationContext; -22 import javax.cache.annotation.CacheRemoveAll; -23 -24 final class CacheRemoveAllInterceptor -25 extends AfterBeforeInvocationInterceptor<CacheRemoveAll> -26 { -27 -28 @Override -29 public Class<CacheRemoveAll> getInterceptedAnnotationType() -30 { -31 return CacheRemoveAll.class; -32 } -33 -34 @Override -35 protected void hitCache( CacheInvocationContext<CacheRemoveAll> context ) -36 { -37 Cache<Object, Object> cache = getCacheResolverFactory( context ).getCacheResolver( context ).resolveCache(context); -38 cache.removeAll(); -39 } -40 -41 } +4 * Licensed to the Apache Software Foundation (ASF) under one +5 * or more contributor license agreements. See the NOTICE file +6 * distributed with this work for additional information +7 * regarding copyright ownership. The ASF licenses this file +8 * to you under the Apache License, Version 2.0 (the +9 * "License"); you may not use this file except in compliance +10 * with the License. You may obtain a copy of the License at +11 * +12 * http://www.apache.org/licenses/LICENSE-2.0 +13 * +14 * Unless required by applicable law or agreed to in writing, +15 * software distributed under the License is distributed on an +16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +17 * KIND, either express or implied. See the License for the +18 * specific language governing permissions and limitations +19 * under the License. +20 */ +21 +22 import javax.cache.Cache; +23 import javax.cache.annotation.CacheInvocationContext; +24 import javax.cache.annotation.CacheRemoveAll; +25 +26 final class CacheRemoveAllInterceptor +27 extends AfterBeforeInvocationInterceptor<CacheRemoveAll> +28 { +29 +30 @Override +31 public Class<CacheRemoveAll> getInterceptedAnnotationType() +32 { +33 return CacheRemoveAll.class; +34 } +35 +36 @Override +37 protected void hitCache( CacheInvocationContext<CacheRemoveAll> context ) +38 { +39 Cache<Object, Object> cache = getCacheResolverFactory( context ).getCacheResolver( context ).resolveCache(context); +40 cache.removeAll(); +41 } +42 +43 }
Modified: incubator/onami/site/cache/xref/org/apache/onami/cache/CacheRemoveEntryInterceptor.html URL: http://svn.apache.org/viewvc/incubator/onami/site/cache/xref/org/apache/onami/cache/CacheRemoveEntryInterceptor.html?rev=1435585&r1=1435584&r2=1435585&view=diff ============================================================================== --- incubator/onami/site/cache/xref/org/apache/onami/cache/CacheRemoveEntryInterceptor.html (original) +++ incubator/onami/site/cache/xref/org/apache/onami/cache/CacheRemoveEntryInterceptor.html Sat Jan 19 16:27:50 2013 @@ -11,53 +11,55 @@ 1 package org.apache.onami.cache; 2 3 /* -4 * Licensed to the Apache Software Foundation (ASF) under one or more -5 * contributor license agreements. See the NOTICE file distributed with -6 * this work for additional information regarding copyright ownership. -7 * The ASF licenses this file to You under the Apache License, Version 2.0 -8 * (the "License"); you may not use this file except in compliance with -9 * the License. You may obtain a copy of the License at -10 * -11 * http://www.apache.org/licenses/LICENSE-2.0 -12 * -13 * Unless required by applicable law or agreed to in writing, software -14 * distributed under the License is distributed on an "AS IS" BASIS, -15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -16 * See the License for the specific language governing permissions and -17 * limitations under the License. -18 */ -19 -20 import javax.cache.Cache; -21 import javax.cache.annotation.CacheInvocationContext; -22 import javax.cache.annotation.CacheKey; -23 import javax.cache.annotation.CacheKeyInvocationContext; -24 import javax.cache.annotation.CacheRemoveEntry; -25 -26 /** -27 * -28 */ -29 final class CacheRemoveEntryInterceptor -30 extends AfterBeforeInvocationInterceptor<CacheRemoveEntry> -31 { -32 -33 @Override -34 public Class<CacheRemoveEntry> getInterceptedAnnotationType() -35 { -36 return CacheRemoveEntry.class; -37 } -38 -39 @Override -40 protected void hitCache( CacheInvocationContext<CacheRemoveEntry> context ) -41 { -42 CacheKeyInvocationContext<CacheRemoveEntry> keyedContext = (CacheKeyInvocationContext<CacheRemoveEntry>) context; -43 -44 Cache<Object, Object> cache = getCacheResolverFactory( context ).getCacheResolver( context ).resolveCache( context ); -45 CacheKey cacheKey = getCacheKeyGenerator( context ).generateCacheKey( keyedContext ); -46 -47 cache.remove( cacheKey ); -48 } -49 -50 } +4 * Licensed to the Apache Software Foundation (ASF) under one +5 * or more contributor license agreements. See the NOTICE file +6 * distributed with this work for additional information +7 * regarding copyright ownership. The ASF licenses this file +8 * to you under the Apache License, Version 2.0 (the +9 * "License"); you may not use this file except in compliance +10 * with the License. You may obtain a copy of the License at +11 * +12 * http://www.apache.org/licenses/LICENSE-2.0 +13 * +14 * Unless required by applicable law or agreed to in writing, +15 * software distributed under the License is distributed on an +16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +17 * KIND, either express or implied. See the License for the +18 * specific language governing permissions and limitations +19 * under the License. +20 */ +21 +22 import javax.cache.Cache; +23 import javax.cache.annotation.CacheInvocationContext; +24 import javax.cache.annotation.CacheKey; +25 import javax.cache.annotation.CacheKeyInvocationContext; +26 import javax.cache.annotation.CacheRemoveEntry; +27 +28 /** +29 * +30 */ +31 final class CacheRemoveEntryInterceptor +32 extends AfterBeforeInvocationInterceptor<CacheRemoveEntry> +33 { +34 +35 @Override +36 public Class<CacheRemoveEntry> getInterceptedAnnotationType() +37 { +38 return CacheRemoveEntry.class; +39 } +40 +41 @Override +42 protected void hitCache( CacheInvocationContext<CacheRemoveEntry> context ) +43 { +44 CacheKeyInvocationContext<CacheRemoveEntry> keyedContext = (CacheKeyInvocationContext<CacheRemoveEntry>) context; +45 +46 Cache<Object, Object> cache = getCacheResolverFactory( context ).getCacheResolver( context ).resolveCache( context ); +47 CacheKey cacheKey = getCacheKeyGenerator( context ).generateCacheKey( keyedContext ); +48 +49 cache.remove( cacheKey ); +50 } +51 +52 }
Modified: incubator/onami/site/cache/xref/org/apache/onami/cache/CacheResultInterceptor.html URL: http://svn.apache.org/viewvc/incubator/onami/site/cache/xref/org/apache/onami/cache/CacheResultInterceptor.html?rev=1435585&r1=1435584&r2=1435585&view=diff ============================================================================== --- incubator/onami/site/cache/xref/org/apache/onami/cache/CacheResultInterceptor.html (original) +++ incubator/onami/site/cache/xref/org/apache/onami/cache/CacheResultInterceptor.html Sat Jan 19 16:27:50 2013 @@ -11,49 +11,51 @@ 1 package org.apache.onami.cache; 2 3 /* -4 * Licensed to the Apache Software Foundation (ASF) under one or more -5 * contributor license agreements. See the NOTICE file distributed with -6 * this work for additional information regarding copyright ownership. -7 * The ASF licenses this file to You under the Apache License, Version 2.0 -8 * (the "License"); you may not use this file except in compliance with -9 * the License. You may obtain a copy of the License at -10 * -11 * http://www.apache.org/licenses/LICENSE-2.0 -12 * -13 * Unless required by applicable law or agreed to in writing, software -14 * distributed under the License is distributed on an "AS IS" BASIS, -15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -16 * See the License for the specific language governing permissions and -17 * limitations under the License. -18 */ -19 -20 import javax.cache.annotation.CacheInvocationContext; -21 import javax.cache.annotation.CacheResult; -22 -23 import org.aopalliance.intercept.MethodInvocation; +4 * Licensed to the Apache Software Foundation (ASF) under one +5 * or more contributor license agreements. See the NOTICE file +6 * distributed with this work for additional information +7 * regarding copyright ownership. The ASF licenses this file +8 * to you under the Apache License, Version 2.0 (the +9 * "License"); you may not use this file except in compliance +10 * with the License. You may obtain a copy of the License at +11 * +12 * http://www.apache.org/licenses/LICENSE-2.0 +13 * +14 * Unless required by applicable law or agreed to in writing, +15 * software distributed under the License is distributed on an +16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +17 * KIND, either express or implied. See the License for the +18 * specific language governing permissions and limitations +19 * under the License. +20 */ +21 +22 import javax.cache.annotation.CacheInvocationContext; +23 import javax.cache.annotation.CacheResult; 24 -25 /** -26 * -27 */ -28 final class CacheResultInterceptor -29 extends CacheInterceptor<CacheResult> -30 { -31 -32 @Override -33 public Class<CacheResult> getInterceptedAnnotationType() -34 { -35 return CacheResult.class; -36 } -37 -38 @Override -39 protected Object invoke( CacheInvocationContext<CacheResult> context, MethodInvocation invocation ) -40 throws Throwable -41 { -42 // TODO Auto-generated method stub -43 return null; -44 } -45 -46 } +25 import org.aopalliance.intercept.MethodInvocation; +26 +27 /** +28 * +29 */ +30 final class CacheResultInterceptor +31 extends CacheInterceptor<CacheResult> +32 { +33 +34 @Override +35 public Class<CacheResult> getInterceptedAnnotationType() +36 { +37 return CacheResult.class; +38 } +39 +40 @Override +41 protected Object invoke( CacheInvocationContext<CacheResult> context, MethodInvocation invocation ) +42 throws Throwable +43 { +44 // TODO Auto-generated method stub +45 return null; +46 } +47 +48 }
Modified: incubator/onami/site/cache/xref/org/apache/onami/cache/DefaultCacheInvocationParameter.html URL: http://svn.apache.org/viewvc/incubator/onami/site/cache/xref/org/apache/onami/cache/DefaultCacheInvocationParameter.html?rev=1435585&r1=1435584&r2=1435585&view=diff ============================================================================== --- incubator/onami/site/cache/xref/org/apache/onami/cache/DefaultCacheInvocationParameter.html (original) +++ incubator/onami/site/cache/xref/org/apache/onami/cache/DefaultCacheInvocationParameter.html Sat Jan 19 16:27:50 2013 @@ -11,71 +11,73 @@ 1 package org.apache.onami.cache; 2 3 /* -4 * Licensed to the Apache Software Foundation (ASF) under one or more -5 * contributor license agreements. See the NOTICE file distributed with -6 * this work for additional information regarding copyright ownership. -7 * The ASF licenses this file to You under the Apache License, Version 2.0 -8 * (the "License"); you may not use this file except in compliance with -9 * the License. You may obtain a copy of the License at -10 * -11 * http://www.apache.org/licenses/LICENSE-2.0 -12 * -13 * Unless required by applicable law or agreed to in writing, software -14 * distributed under the License is distributed on an "AS IS" BASIS, -15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -16 * See the License for the specific language governing permissions and -17 * limitations under the License. -18 */ -19 -20 import java.lang.annotation.Annotation; -21 import java.util.Set; -22 -23 import javax.cache.annotation.CacheInvocationParameter; +4 * Licensed to the Apache Software Foundation (ASF) under one +5 * or more contributor license agreements. See the NOTICE file +6 * distributed with this work for additional information +7 * regarding copyright ownership. The ASF licenses this file +8 * to you under the Apache License, Version 2.0 (the +9 * "License"); you may not use this file except in compliance +10 * with the License. You may obtain a copy of the License at +11 * +12 * http://www.apache.org/licenses/LICENSE-2.0 +13 * +14 * Unless required by applicable law or agreed to in writing, +15 * software distributed under the License is distributed on an +16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +17 * KIND, either express or implied. See the License for the +18 * specific language governing permissions and limitations +19 * under the License. +20 */ +21 +22 import java.lang.annotation.Annotation; +23 import java.util.Set; 24 -25 final class DefaultCacheInvocationParameter -26 implements CacheInvocationParameter -27 { -28 -29 private final Class<?> rawType; +25 import javax.cache.annotation.CacheInvocationParameter; +26 +27 final class DefaultCacheInvocationParameter +28 implements CacheInvocationParameter +29 { 30 -31 private final Object value; +31 private final Class<?> rawType; 32 -33 private final Set<Annotation> annotations; +33 private final Object value; 34 -35 private final int parameterPosition; +35 private final Set<Annotation> annotations; 36 -37 public DefaultCacheInvocationParameter( Class<?> rawType, -38 Object value, -39 Set<Annotation> annotations, -40 int parameterPosition ) -41 { -42 this.rawType = rawType; -43 this.value = value; -44 this.annotations = annotations; -45 this.parameterPosition = parameterPosition; -46 } -47 -48 public Class<?> getRawType() -49 { -50 return rawType; -51 } -52 -53 public Object getValue() -54 { -55 return value; -56 } -57 -58 public Set<Annotation> getAnnotations() -59 { -60 return annotations; -61 } -62 -63 public int getParameterPosition() -64 { -65 return parameterPosition; -66 } -67 -68 } +37 private final int parameterPosition; +38 +39 public DefaultCacheInvocationParameter( Class<?> rawType, +40 Object value, +41 Set<Annotation> annotations, +42 int parameterPosition ) +43 { +44 this.rawType = rawType; +45 this.value = value; +46 this.annotations = annotations; +47 this.parameterPosition = parameterPosition; +48 } +49 +50 public Class<?> getRawType() +51 { +52 return rawType; +53 } +54 +55 public Object getValue() +56 { +57 return value; +58 } +59 +60 public Set<Annotation> getAnnotations() +61 { +62 return annotations; +63 } +64 +65 public int getParameterPosition() +66 { +67 return parameterPosition; +68 } +69 +70 }