de.intarsys.tools.functor.StandardFunctorOutlet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of isrt Show documentation
Show all versions of isrt Show documentation
The basic runtime tools and interfaces for intarsys components.
package de.intarsys.tools.functor;
import java.util.ArrayList;
import java.util.List;
public class StandardFunctorOutlet implements IFunctorOutlet {
private List factories = new ArrayList();
public List getFunctorFactories() {
return new ArrayList(factories);
}
public IFunctorFactory lookupFunctorFactory(String id) {
if (id == null) {
return null;
}
for (IFunctorFactory factory : factories) {
if (factory.getId().equals(id)) {
return factory;
}
}
return null;
}
public void registerFunctorFactory(IFunctorFactory factory) {
factories.add(factory);
}
public void unregisterFunctorFactory(IFunctorFactory factory) {
factories.remove(factory);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy