use of org.commonjava.indy.model.core.io.IndyObjectMapper in project indy by Commonjava.
the class DataFileStoreDataManagerTest method setup.
@Before
public void setup() throws Exception {
fileCfg = new DataFileConfiguration(temp.newFolder("data"), temp.newFolder("work"));
final DataFileManager fileMgr = new DataFileManager(fileCfg, new DataFileEventManager());
mgr = new DataFileStoreDataManager(fileMgr, new IndyObjectMapper(false), new StoreEventDispatcherStub(), new DefaultIndyConfiguration());
}
use of org.commonjava.indy.model.core.io.IndyObjectMapper in project indy by Commonjava.
the class CDIJacksonProvider method locateMapper.
@Override
public ObjectMapper locateMapper(final Class<?> type, final MediaType mediaType) {
IndyObjectMapper aom = mapper;
if (aom == null) {
final CDI<Object> cdi = CDI.current();
aom = cdi.select(IndyObjectMapper.class).get();
}
Logger logger = LoggerFactory.getLogger(getClass());
logger.info("Returning IndyObjectMapper: {} with registered modules: {}", aom, aom.getRegisteredModuleNames());
return aom;
}
use of org.commonjava.indy.model.core.io.IndyObjectMapper in project indy by Commonjava.
the class LegacyDataMigrationActionTest method setup.
@Before
public void setup() throws Exception {
dfm = new DataFileManager(temp.newFolder("stores"), new DataFileEventManager());
IndyObjectMapper mapper = new IndyObjectMapper(true);
final StoreEventDispatcher sed = new StoreEventDispatcherStub();
action = new LegacyDataMigrationAction(dfm, new DataFileStoreDataManager(dfm, mapper, sed, new DefaultIndyConfiguration()), mapper);
}
use of org.commonjava.indy.model.core.io.IndyObjectMapper in project indy by Commonjava.
the class AbstractIndyFunctionalTest method createIndyClient.
protected Indy createIndyClient() throws IndyClientException {
SiteConfig config = new SiteConfigBuilder("indy", fixture.getUrl()).withRequestTimeoutSeconds(60).build();
Collection<IndyClientModule> modules = getAdditionalClientModules();
return new Indy(config, new MemoryPasswordManager(), new IndyObjectMapper(getAdditionalMapperModules()), modules.toArray(new IndyClientModule[modules.size()]));
}
Aggregations