@Test public void test() { HibernateCollectionsSerializerFactory factory = new HibernateCollectionsSerializerFactory(new Kryo()); Serializer serializer = factory.newSerializer(PERSISTENT_LIST_CLASS); assertNotNull(serializer); }
@Override public Serializer newSerializer( final Class<?> type ) { if( HIBERNATE_ABSTRACT_COLLECTION_CLASS == null ) { return null; } else if ( HIBERNATE_ABSTRACT_COLLECTION_CLASS.isAssignableFrom( type ) ) { return new FieldSerializer( _kryo, type ); } return null; }
HibernateCollectionsSerializerFactory implements SerializerFactory { @Override public Serializer newSerializer( final Class<?> type ) { if( HIBERNATE_ABSTRACT_COLLECTION_CLASS == null ) { return null; } else if ( HIBERNATE_ABSTRACT_COLLECTION_CLASS.isAssignableFrom( type ) ) { return new FieldSerializer( _kryo, type ); } return null; } }
HibernateCollectionsSerializerFactory implements SerializerFactory { @Override public Serializer newSerializer( final Class<?> type ) { if( HIBERNATE_ABSTRACT_COLLECTION_CLASS == null ) { return null; } else if ( HIBERNATE_ABSTRACT_COLLECTION_CLASS.isAssignableFrom( type ) ) { return new FieldSerializer( _kryo, type ); } return null; } HibernateCollectionsSerializerFactory( final Kryo kryo ); }
HibernateCollectionsSerializerFactory implements SerializerFactory { @Override public Serializer newSerializer( final Class<?> type ) { if( HIBERNATE_ABSTRACT_COLLECTION_CLASS == null ) { return null; } else if ( HIBERNATE_ABSTRACT_COLLECTION_CLASS.isAssignableFrom( type ) ) { return new FieldSerializer( _kryo, type ); } return null; } HibernateCollectionsSerializerFactory( final Kryo kryo ); @Override Serializer newSerializer( final Class<?> type ); }
HibernateCollectionsSerializerFactory implements SerializerFactory { @Override public Serializer newSerializer( final Class<?> type ) { if( HIBERNATE_ABSTRACT_COLLECTION_CLASS == null ) { return null; } else if ( HIBERNATE_ABSTRACT_COLLECTION_CLASS.isAssignableFrom( type ) ) { return new FieldSerializer( _kryo, type ); } return null; } HibernateCollectionsSerializerFactory( final Kryo kryo ); @Override Serializer newSerializer( final Class<?> type );  }