Moving from *.endpoint to *.context
This commit is contained in:
@@ -20,7 +20,7 @@ import org.springframework.beans.factory.BeanFactory;
|
||||
import org.springframework.core.convert.ConversionService;
|
||||
|
||||
import org.springframework.integration.core.MessageChannel;
|
||||
import org.springframework.integration.endpoint.metadata.MetadataPersister;
|
||||
import org.springframework.integration.context.metadata.MetadataPersister;
|
||||
import org.springframework.integration.scheduling.PollerMetadata;
|
||||
|
||||
import org.springframework.scheduling.TaskScheduler;
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package org.springframework.integration.endpoint.metadata;
|
||||
package org.springframework.integration.context.metadata;
|
||||
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
|
||||
/**
|
||||
* Simple in-memory implementation of teh {@link org.springframework.integration.endpoint.metadata.MetadataPersister}
|
||||
* Simple in-memory implementation of teh {@link org.springframework.integration.context.metadata.MetadataPersister}
|
||||
* interface suitable for the use cases where it's assured that component only needs ephemeral metadata.
|
||||
*
|
||||
*
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
package org.springframework.integration.endpoint.metadata;
|
||||
|
||||
import java.util.Properties;
|
||||
package org.springframework.integration.context.metadata;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.springframework.integration.endpoint.metadata;
|
||||
package org.springframework.integration.context.metadata;
|
||||
|
||||
import org.springframework.beans.factory.InitializingBean;
|
||||
import org.springframework.beans.factory.config.PropertiesFactoryBean;
|
||||
@@ -13,7 +13,7 @@ import java.util.concurrent.Executor;
|
||||
|
||||
|
||||
/**
|
||||
* Implementation of {@link org.springframework.integration.endpoint.metadata.MetadataPersister} that knows how to write metadata
|
||||
* Implementation of {@link org.springframework.integration.context.metadata.MetadataPersister} that knows how to write metadata
|
||||
* to a {@link java.util.Properties} instance.
|
||||
*
|
||||
*
|
||||
@@ -178,7 +178,7 @@ public class PropertiesBasedMetadataPersister implements MetadataPersister<Strin
|
||||
this.cachedLocationOfPropertiesFile = this.locationOfPropertiesOnDisk.getFile();
|
||||
|
||||
propertiesFactoryBean.setLocations(this.bootstrapResources.toArray(new Resource[bootstrapResources.size()]));
|
||||
// we take the existing Resources [] and use them to bootstrap a Property file when this component wakes up again
|
||||
// we take the existing Resources [] and use them to bootstrap a Properties instance when this component wakes up again
|
||||
propertiesFactoryBean.afterPropertiesSet();
|
||||
properties = propertiesFactoryBean.getObject();
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.springframework.integration.endpoint.metadata;
|
||||
package org.springframework.integration.context.metadata;
|
||||
|
||||
import org.junit.After;
|
||||
import org.junit.Assert;
|
||||
|
||||
Reference in New Issue
Block a user