Package org.eclipse.net4j.util.container
Interface IManagedContainer
- 
- All Superinterfaces:
- IContainer<java.lang.Object>,- IDeactivateable,- ILifecycle,- INotifier
 - All Known Subinterfaces:
- IPluginContainer
 - All Known Implementing Classes:
- ManagedContainer
 
 public interface IManagedContainer extends IContainer<java.lang.Object>, ILifecycle - Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceIManagedContainer.ContainerAware- 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.container.IContainerIContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>
 - 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycleILifecycle.DeferrableActivation
 - 
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifierINotifier.INotifier2
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddPostProcessor(IElementProcessor postProcessor)voidaddPostProcessor(IElementProcessor postProcessor, boolean processExistingElements)voidclearElements()<T> voidforEachElement(java.lang.String productGroup, java.lang.Class<T> productType, java.lang.String description, java.util.function.Consumer<T> consumer)<T> voidforEachElement(java.lang.String productGroup, java.lang.Class<T> productType, java.util.function.Consumer<T> consumer)<T> voidforEachElement(java.lang.String productGroup, java.lang.Class<T> productType, java.util.function.Function<java.lang.String,java.lang.String> descriptionProvider, java.util.function.Consumer<T> consumer)java.lang.ObjectgetElement(java.lang.String productGroup, java.lang.String factoryType, java.lang.String description)java.lang.ObjectgetElement(java.lang.String productGroup, java.lang.String factoryType, java.lang.String description, boolean activate)java.lang.String[]getElementKey(java.lang.Object element)<T> TgetElementOrNull(java.lang.String productGroup, java.lang.String factoryType, java.lang.String description)java.lang.Object[]getElements(java.lang.String productGroup)java.lang.Object[]getElements(java.lang.String productGroup, java.lang.String factoryType)IFactorygetFactory(java.lang.String productGroup, java.lang.String factoryType)IRegistry<IFactoryKey,IFactory>getFactoryRegistry()java.util.Set<java.lang.String>getFactoryTypes(java.lang.String productGroup)java.lang.StringgetName()Returns the name of this container, ornullif no name has been set.java.util.List<IElementProcessor>getPostProcessors()java.util.Set<java.lang.String>getProductGroups()voidloadElements(java.io.InputStream stream)java.lang.ObjectputElement(java.lang.String productGroup, java.lang.String factoryType, java.lang.String description, java.lang.Object element)IManagedContainerregisterFactory(IFactory factory)java.lang.ObjectremoveElement(java.lang.String productGroup, java.lang.String factoryType, java.lang.String description)voidremovePostProcessor(IElementProcessor postProcessor)voidsaveElements(java.io.OutputStream stream)voidsetName(java.lang.String name)Sets the name of this container before it is activated.- 
Methods inherited from interface org.eclipse.net4j.util.container.IContainergetElements, isEmpty
 - 
Methods inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycleactivate, deactivate, getLifecycleState, isActive
 - 
Methods inherited from interface org.eclipse.net4j.util.event.INotifieraddListener, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
getNamejava.lang.String getName() Returns the name of this container, ornullif no name has been set.- Since:
- 3.8
 
 - 
setNamevoid setName(java.lang.String name) Sets the name of this container before it is activated.- Since:
- 3.8
 
 - 
getFactoryRegistryIRegistry<IFactoryKey,IFactory> getFactoryRegistry() 
 - 
registerFactoryIManagedContainer registerFactory(IFactory factory) 
 - 
getPostProcessorsjava.util.List<IElementProcessor> getPostProcessors() 
 - 
addPostProcessorvoid addPostProcessor(IElementProcessor postProcessor, boolean processExistingElements) 
 - 
addPostProcessorvoid addPostProcessor(IElementProcessor postProcessor) 
 - 
removePostProcessorvoid removePostProcessor(IElementProcessor postProcessor) 
 - 
getProductGroupsjava.util.Set<java.lang.String> getProductGroups() 
 - 
getFactoryTypesjava.util.Set<java.lang.String> getFactoryTypes(java.lang.String productGroup) 
 - 
getFactoryIFactory getFactory(java.lang.String productGroup, java.lang.String factoryType) throws FactoryNotFoundException - Throws:
- FactoryNotFoundException
 
 - 
putElementjava.lang.Object putElement(java.lang.String productGroup, java.lang.String factoryType, java.lang.String description, java.lang.Object element)
 - 
getElementKeyjava.lang.String[] getElementKey(java.lang.Object element) 
 - 
getElementsjava.lang.Object[] getElements(java.lang.String productGroup) 
 - 
getElementsjava.lang.Object[] getElements(java.lang.String productGroup, java.lang.String factoryType)
 - 
getElementjava.lang.Object getElement(java.lang.String productGroup, java.lang.String factoryType, java.lang.String description) throws FactoryNotFoundException, ProductCreationException
 - 
getElementjava.lang.Object getElement(java.lang.String productGroup, java.lang.String factoryType, java.lang.String description, boolean activate) throws FactoryNotFoundException, ProductCreationException- Throws:
- FactoryNotFoundException
- ProductCreationException
- Since:
- 2.0
 
 - 
getElementOrNull<T> T getElementOrNull(java.lang.String productGroup, java.lang.String factoryType, java.lang.String description)- Since:
- 3.14
 
 - 
removeElementjava.lang.Object removeElement(java.lang.String productGroup, java.lang.String factoryType, java.lang.String description)
 - 
forEachElement<T> void forEachElement(java.lang.String productGroup, java.lang.Class<T> productType, java.util.function.Function<java.lang.String,java.lang.String> descriptionProvider, java.util.function.Consumer<T> consumer)- Since:
- 3.13
 
 - 
forEachElement<T> void forEachElement(java.lang.String productGroup, java.lang.Class<T> productType, java.lang.String description, java.util.function.Consumer<T> consumer)- Since:
- 3.13
 
 - 
forEachElement<T> void forEachElement(java.lang.String productGroup, java.lang.Class<T> productType, java.util.function.Consumer<T> consumer)- Since:
- 3.13
 
 - 
clearElementsvoid clearElements() 
 - 
loadElementsvoid loadElements(java.io.InputStream stream) throws java.io.IOException, FactoryNotFoundException, ProductCreationException- Throws:
- java.io.IOException
- FactoryNotFoundException
- ProductCreationException
 
 - 
saveElementsvoid saveElements(java.io.OutputStream stream) throws java.io.IOException- Throws:
- java.io.IOException
 
 
- 
 
-