com.github.dynamicextensionsalfresco.osgi.ConfigurationValues Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alfresco-integration Show documentation
Show all versions of alfresco-integration Show documentation
Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features
package com.github.dynamicextensionsalfresco.osgi;
import java.util.Collection;
import java.util.Iterator;
import org.springframework.context.ApplicationContext;
import org.springframework.util.Assert;
/**
* Holds configuration values, such as {@link SystemPackage}s and {@link ServiceDefinition}s.
*
* Using a separate class, instead of a generic {@link Collection}, works around issues when autowiring dependencies in
* an {@link ApplicationContext} that contains other {@link Collection} top-level beans.
*
* @author Laurens Fridael
*
* @param
*/
public class ConfigurationValues implements Iterable {
private final Collection values;
public ConfigurationValues(final Collection values) {
Assert.notNull(values);
this.values = values;
}
public Collection getValues() {
return values;
}
@Override
public Iterator iterator() {
return values.iterator();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy