@Test public void testSerialization() throws ClassNotFoundException, IOException { final SimpleFeatureType ftype = AnalyticFeature.createGeometryFeatureAdapter( "centroid", new String[] {"extra1"}, BasicFeatureTypes.DEFAULT_NAMESPACE, ClusteringUtils.CLUSTERING_CRS).getFeatureType(); final Index index = new SpatialDimensionalityTypeProvider().createIndex(new SpatialOptions()); final FeatureDataAdapter adapter = new FeatureDataAdapter(ftype); adapter.init(index); final SerializableAdapterStore store = new SerializableAdapterStore(new MemoryAdapterStore(new DataTypeAdapter<?>[] {adapter})); final String id = "centroid"; assertNotNull(checkSerialization(store).getAdapter(id)); }
@Override public DataTypeAdapter<?> getAdapter(final String typeName) { return getAdapterStore().getAdapter(typeName); }
SerializableAdapterStore implements TransientAdapterStore, Serializable { @Override public DataTypeAdapter<?> getAdapter(final String typeName) { return getAdapterStore().getAdapter(typeName); } }
SerializableAdapterStore implements TransientAdapterStore, Serializable { @Override public DataTypeAdapter<?> getAdapter(final String typeName) { return getAdapterStore().getAdapter(typeName); } SerializableAdapterStore();  SerializableAdapterStore(final TransientAdapterStore adapterStore); }
SerializableAdapterStore implements TransientAdapterStore, Serializable { @Override public DataTypeAdapter<?> getAdapter(final String typeName) { return getAdapterStore().getAdapter(typeName); } SerializableAdapterStore();  SerializableAdapterStore(final TransientAdapterStore adapterStore); @Override void addAdapter(final DataTypeAdapter<?> adapter); @Override DataTypeAdapter<?> getAdapter(final String typeName); @Override boolean adapterExists(final String typeName); @Override CloseableIterator<DataTypeAdapter<?>> getAdapters(); @Override void removeAll(); @Override void removeAdapter(final String typeName); }
SerializableAdapterStore implements TransientAdapterStore, Serializable { @Override public DataTypeAdapter<?> getAdapter(final String typeName) { return getAdapterStore().getAdapter(typeName); } SerializableAdapterStore();  SerializableAdapterStore(final TransientAdapterStore adapterStore); @Override void addAdapter(final DataTypeAdapter<?> adapter); @Override DataTypeAdapter<?> getAdapter(final String typeName); @Override boolean adapterExists(final String typeName); @Override CloseableIterator<DataTypeAdapter<?>> getAdapters(); @Override void removeAll(); @Override void removeAdapter(final String typeName);  }