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 ClassesNested 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.DeferrableActivationNested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
INotifier.INotifier2 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPostProcessor(IElementProcessor postProcessor) voidaddPostProcessor(IElementProcessor postProcessor, boolean processExistingElements) voidintcountElements(String productGroup) intcountElements(String productGroup, String factoryType) <T> TcreateElement(String productGroup, String factoryType, String description) <T> TcreateElement(String productGroup, String factoryType, Tree config) <T> voidforEachElement(String productGroup, Class<T> productType, String description, Consumer<T> consumer) <T> voidforEachElement(String productGroup, Class<T> productType, Consumer<T> consumer) <T> voidforEachElement(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> TgetElementOrNull(String productGroup, String factoryType) <T> TgetElementOrNull(String productGroup, String factoryType, String description) <T> TgetElementOrNull(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, ornullif no name has been set.voidloadElements(InputStream stream) putElement(String productGroup, String factoryType, String description, Object element) registerFactory(IFactory factory) removeElement(String productGroup, String factoryType, String description) voidremovePostProcessor(IElementProcessor postProcessor) voidsaveElements(OutputStream stream) voidSets the name of this container before it is activated.unregisterFactory(IFactory factory) Methods inherited from interface org.eclipse.net4j.util.container.IContainer
getElements, isEmptyMethods inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
activate, deactivate, getLifecycleState, isActiveMethods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Method Details
-
getName
String getName()Returns the name of this container, ornullif 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:
FactoryNotFoundExceptionProductCreationException- 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:
FactoryNotFoundExceptionProductCreationException- Since:
- 3.23
-
createElement
<T> T createElement(String productGroup, String factoryType, Tree config) throws FactoryNotFoundException, ProductCreationException - Throws:
FactoryNotFoundExceptionProductCreationException- 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
-