congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DeserializingConverter.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.springframework.core.serializer.support.DeserializingConverter
constructor

Best Java code snippets using org.springframework.core.serializer.support.DeserializingConverter.<init> (Showing top 15 results out of 315)

origin: spring-projects/spring-data-redis

/**
 * Creates a new {@link JdkSerializationRedisSerializer} using a {@link ClassLoader}.
 *
 * @param classLoader the {@link ClassLoader} to use for deserialization. Can be {@literal null}.
 * @since 1.7
 */
public JdkSerializationRedisSerializer(@Nullable ClassLoader classLoader) {
  this(new SerializingConverter(), new DeserializingConverter(classLoader));
}
origin: spring-projects/spring-data-redis

/**
 * Creates a new {@link JdkSerializationRedisSerializer} using the default class loader.
 */
public JdkSerializationRedisSerializer() {
  this(new SerializingConverter(), new DeserializingConverter());
}
origin: spring-projects/spring-framework

@Test(expected = SerializationFailedException.class)
public void deserializationFailure() {
  DeserializingConverter fromBytes = new DeserializingConverter();
  fromBytes.convert("Junk".getBytes());
}
origin: spring-projects/spring-session

private static GenericConversionService createDefaultConversionService() {
  GenericConversionService converter = new GenericConversionService();
  converter.addConverter(Object.class, byte[].class,
      new SerializingConverter());
  converter.addConverter(byte[].class, Object.class,
      new DeserializingConverter());
  return converter;
}
origin: spring-projects/spring-session

private GenericConversionService createConversionServiceWithBeanClassLoader() {
  GenericConversionService conversionService = new GenericConversionService();
  conversionService.addConverter(Object.class, byte[].class,
      new SerializingConverter());
  conversionService.addConverter(byte[].class, Object.class,
      new DeserializingConverter(this.classLoader));
  return conversionService;
}
origin: spring-projects/spring-framework

@Test
public void serializeAndDeserializeString() {
  SerializingConverter toBytes = new SerializingConverter();
  byte[] bytes = toBytes.convert("Testing");
  DeserializingConverter fromBytes = new DeserializingConverter();
  assertEquals("Testing", fromBytes.convert(bytes));
}
origin: org.springframework.data/spring-data-redis

/**
 * Creates a new {@link JdkSerializationRedisSerializer} using a {@link ClassLoader}.
 *
 * @param classLoader the {@link ClassLoader} to use for deserialization. Can be {@literal null}.
 * @since 1.7
 */
public JdkSerializationRedisSerializer(@Nullable ClassLoader classLoader) {
  this(new SerializingConverter(), new DeserializingConverter(classLoader));
}
origin: org.springframework.data/spring-data-redis

/**
 * Creates a new {@link JdkSerializationRedisSerializer} using the default class loader.
 */
public JdkSerializationRedisSerializer() {
  this(new SerializingConverter(), new DeserializingConverter());
}
origin: apache/servicemix-bundles

/**
 * Creates a new {@link JdkSerializationRedisSerializer} using the default class loader.
 */
public JdkSerializationRedisSerializer() {
  this(new SerializingConverter(), new DeserializingConverter());
}
origin: apache/servicemix-bundles

/**
 * Creates a new {@link JdkSerializationRedisSerializer} using a {@link ClassLoader}.
 *
 * @param classLoader the {@link ClassLoader} to use for deserialization. Can be {@literal null}.
 * @since 1.7
 */
public JdkSerializationRedisSerializer(@Nullable ClassLoader classLoader) {
  this(new SerializingConverter(), new DeserializingConverter(classLoader));
}
origin: org.springframework.session/spring-session-data-mongodb

public JdkMongoSessionConverter(Duration maxInactiveInterval) {
  this(new SerializingConverter(), new DeserializingConverter(), maxInactiveInterval);
}
origin: com.giffing.wicket.spring.boot.starter/wicket-spring-boot-starter

public SpringDevToolsSerializer(){
  this.deserializer = new DeserializingConverter(new DefaultDeserializer(Thread.currentThread().getContextClassLoader()));
}
 
origin: MarcGiffing/wicket-spring-boot

public SpringDevToolsSerializer(){
  this.deserializer = new DeserializingConverter(new DefaultDeserializer(Thread.currentThread().getContextClassLoader()));
}

origin: org.springframework.session/spring-session-data-mongodb

@Bean
public MongoOperationsSessionRepository mongoSessionRepository(MongoOperations mongoOperations) {
  MongoOperationsSessionRepository repository = new MongoOperationsSessionRepository(mongoOperations);
  repository.setMaxInactiveIntervalInSeconds(this.maxInactiveIntervalInSeconds);
  if (this.mongoSessionConverter != null) {
    repository.setMongoSessionConverter(this.mongoSessionConverter);
  } else {
    JdkMongoSessionConverter mongoSessionConverter = new JdkMongoSessionConverter(
      new SerializingConverter(),
      new DeserializingConverter(this.classLoader),
      Duration.ofSeconds(MongoOperationsSessionRepository.DEFAULT_INACTIVE_INTERVAL));
    repository.setMongoSessionConverter(mongoSessionConverter);
  }
  if (StringUtils.hasText(this.collectionName)) {
    repository.setCollectionName(this.collectionName);
  }
  return repository;
}
origin: org.springframework.session/spring-session-data-mongodb

@Bean
public ReactiveMongoOperationsSessionRepository reactiveMongoOperationsSessionRepository(ReactiveMongoOperations operations) {
  
  ReactiveMongoOperationsSessionRepository repository = new ReactiveMongoOperationsSessionRepository(operations);
  if (this.mongoSessionConverter != null) {
    repository.setMongoSessionConverter(this.mongoSessionConverter);
  } else {
    JdkMongoSessionConverter mongoSessionConverter = new JdkMongoSessionConverter(
      new SerializingConverter(),
      new DeserializingConverter(this.classLoader),
      Duration.ofSeconds(ReactiveMongoOperationsSessionRepository.DEFAULT_INACTIVE_INTERVAL));
    repository.setMongoSessionConverter(mongoSessionConverter);
  }
  if (this.maxInactiveIntervalInSeconds != null) {
    repository.setMaxInactiveIntervalInSeconds(this.maxInactiveIntervalInSeconds);
  }
  if (this.collectionName != null) {
    repository.setCollectionName(this.collectionName);
  }
  if (this.mongoOperations != null) {
    repository.setBlockingMongoOperations(this.mongoOperations);
  }
  
  return repository;
}
org.springframework.core.serializer.supportDeserializingConverter<init>

Javadoc

Create a DeserializingConverter with default java.io.ObjectInputStreamconfiguration, using the "latest user-defined ClassLoader".

Popular methods of DeserializingConverter

  • convert

Popular in Java

  • Updating database using SQL prepared statement
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • URLConnection (java.net)
    A connection to a URL for reading or writing. For HTTP connections, see HttpURLConnection for docume
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JLabel (javax.swing)
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now