Package org.eclipse.net4j.util.container
Interface IManagedContainer
- All Superinterfaces:
IContainer<Object>
,IDeactivateable
,ILifecycle
,INotifier
- All Known Subinterfaces:
IPluginContainer
- All Known Implementing Classes:
ManagedContainer
- 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 Summary
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.container.IContainer
IContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
ILifecycle.DeferrableActivation
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
INotifier.INotifier2
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPostProcessor
(IElementProcessor postProcessor) void
addPostProcessor
(IElementProcessor postProcessor, boolean processExistingElements) void
int
countElements
(String productGroup) int
countElements
(String productGroup, String factoryType) <T> T
createElement
(String productGroup, String factoryType, String description) <T> T
createElement
(String productGroup, String factoryType, Tree config) <T> void
forEachElement
(String productGroup, Class<T> productType, String description, Consumer<T> consumer) <T> void
forEachElement
(String productGroup, Class<T> productType, Consumer<T> consumer) <T> void
forEachElement
(String productGroup, Class<T> productType, Function<String, String> descriptionProvider, Consumer<T> consumer) getElement
(String productGroup, String factoryType, String description) getElement
(String productGroup, String factoryType, String description, boolean activate) String[]
getElementKey
(Object element) <T> T
getElementOrNull
(String productGroup, String factoryType) <T> T
getElementOrNull
(String productGroup, String factoryType, String description) <T> T
getElementOrNull
(String productGroup, String factoryType, Tree config) Object[]
getElements
(String productGroup) Object[]
getElements
(String productGroup, String factoryType) getFactory
(String productGroup, String factoryType) getFactoryTypes
(String productGroup) getName()
Returns the name of this container, ornull
if no name has been set.void
loadElements
(InputStream stream) putElement
(String productGroup, String factoryType, String description, Object element) registerFactory
(IFactory factory) removeElement
(String productGroup, String factoryType, String description) void
removePostProcessor
(IElementProcessor postProcessor) void
saveElements
(OutputStream stream) void
Sets the name of this container before it is activated.unregisterFactory
(IFactory factory) Methods inherited from interface org.eclipse.net4j.util.container.IContainer
getElements, isEmpty
Methods inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
activate, deactivate, getLifecycleState, isActive
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Method Details
-
getName
String getName()Returns the name of this container, ornull
if no name has been set.- Since:
- 3.8
-
setName
Sets the name of this container before it is activated.- Since:
- 3.8
-
getFactoryRegistry
IRegistry<IFactoryKey,IFactory> getFactoryRegistry() -
registerFactory
-
unregisterFactory
- Since:
- 3.23
-
getPostProcessors
List<IElementProcessor> getPostProcessors() -
addPostProcessor
-
addPostProcessor
-
removePostProcessor
-
getProductGroups
-
getFactoryTypes
-
getFactory
- Throws:
FactoryNotFoundException
-
putElement
-
getElementKey
-
getElements
-
getElements
-
getElement
Object getElement(String productGroup, String factoryType, String description) throws FactoryNotFoundException, ProductCreationException -
getElement
Object getElement(String productGroup, String factoryType, String description, boolean activate) throws FactoryNotFoundException, ProductCreationException - Throws:
FactoryNotFoundException
ProductCreationException
- Since:
- 2.0
-
getElementOrNull
- Throws:
ProductCreationException
- Since:
- 3.23
-
getElementOrNull
<T> T getElementOrNull(String productGroup, String factoryType, String description) throws ProductCreationException - Throws:
ProductCreationException
- Since:
- 3.14
-
getElementOrNull
<T> T getElementOrNull(String productGroup, String factoryType, Tree config) throws ProductCreationException - Throws:
ProductCreationException
- Since:
- 3.23
-
createElement
<T> T createElement(String productGroup, String factoryType, String description) throws FactoryNotFoundException, ProductCreationException - Throws:
FactoryNotFoundException
ProductCreationException
- Since:
- 3.23
-
createElement
<T> T createElement(String productGroup, String factoryType, Tree config) throws FactoryNotFoundException, ProductCreationException - Throws:
FactoryNotFoundException
ProductCreationException
- Since:
- 3.23
-
countElements
- Since:
- 3.22
-
countElements
- Since:
- 3.22
-
removeElement
-
forEachElement
<T> void forEachElement(String productGroup, Class<T> productType, Function<String, String> descriptionProvider, Consumer<T> consumer) - Since:
- 3.13
-
forEachElement
<T> void forEachElement(String productGroup, Class<T> productType, String description, Consumer<T> consumer) - Since:
- 3.13
-
forEachElement
- Since:
- 3.13
-
clearElements
void clearElements() -
loadElements
void loadElements(InputStream stream) throws IOException, FactoryNotFoundException, ProductCreationException -
saveElements
- Throws:
IOException
-