Changeset 6122 for VirtualCollectionRegistry/trunk
- Timestamp:
- 03/31/15 15:54:41 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/VirtualCollectionRegistryImpl.java
r5653 r6122 45 45 private PersistentIdentifierProvider pid_provider; 46 46 @Autowired 47 private OAIProvider oaiProvider;48 @Autowired49 47 @Qualifier("creation") 50 48 private VirtualCollectionValidator validator; … … 98 96 } 99 97 100 logger.info("Shutting down OAI provider"); 101 oaiProvider.shutdown(); 98 final OAIProvider oaiProvider = OAIProvider.instance(); 99 if (oaiProvider != null) { 100 logger.info("Shutting down OAI provider"); 101 oaiProvider.shutdown(); 102 } 102 103 } 103 104 … … 647 648 * TODO: if an error occurred while minting PID, the VCR 648 649 * should handle this more gracefully and not stubbornly 649 * re-try ... 650 * re-try ... 650 651 */ 651 652 PersistentIdentifier pid = pid_provider.createIdentifier(vc); … … 704 705 private static ScheduledExecutorService createSingleThreadScheduledExecutor(final String threadName) { 705 706 return Executors.newSingleThreadScheduledExecutor(new ThreadFactory() { 706 // decorate default thread factory so that we can provide a 707 // decorate default thread factory so that we can provide a 707 708 // custom thread name 708 709 final AtomicInteger i = new AtomicInteger(0);
Note: See TracChangeset
for help on using the changeset viewer.