@Test public void getAttributeNotExist() { Assert.assertNull( context.getAttribute( "test1", String.class ) ); }
@Override public <T> T getAttribute( @Nonnull String name, @Nonnull Class<? extends T> valueClass ) { if ( attributes == null ) { return null; } return valueClass.cast( attributes.get( name ) ); }
RequestCacheContextImpl implements RequestCacheContext { @Override public <T> T getAttribute( @Nonnull String name, @Nonnull Class<? extends T> valueClass ) { if ( attributes == null ) { return null; } return valueClass.cast( attributes.get( name ) ); } }
RequestCacheContextImpl implements RequestCacheContext { @Override public <T> T getAttribute( @Nonnull String name, @Nonnull Class<? extends T> valueClass ) { if ( attributes == null ) { return null; } return valueClass.cast( attributes.get( name ) ); } RequestCacheContextImpl( RequestCacheServiceImpl service ); }
RequestCacheContextImpl implements RequestCacheContext { @Override public <T> T getAttribute( @Nonnull String name, @Nonnull Class<? extends T> valueClass ) { if ( attributes == null ) { return null; } return valueClass.cast( attributes.get( name ) ); } RequestCacheContextImpl( RequestCacheServiceImpl service ); @Override void setAttribute( @Nonnull String name, Object value ); @Override T getAttribute( @Nonnull String name, @Nonnull Class<? extends T> valueClass ); @Override void removeAttribute( @Nonnull String name ); @Nonnull @Override CacheManager getCacheManager( @Nonnull String name ); @Override void close(); }
RequestCacheContextImpl implements RequestCacheContext { @Override public <T> T getAttribute( @Nonnull String name, @Nonnull Class<? extends T> valueClass ) { if ( attributes == null ) { return null; } return valueClass.cast( attributes.get( name ) ); } RequestCacheContextImpl( RequestCacheServiceImpl service ); @Override void setAttribute( @Nonnull String name, Object value ); @Override T getAttribute( @Nonnull String name, @Nonnull Class<? extends T> valueClass ); @Override void removeAttribute( @Nonnull String name ); @Nonnull @Override CacheManager getCacheManager( @Nonnull String name ); @Override void close();  }