Interface IManagedContainer
- All Superinterfaces:
IContainer<Object>, IDeactivateable, ILifecycle, INotifier
- All Known Subinterfaces:
IPluginContainer
- All Known Implementing Classes:
org.eclipse.net4j.internal.util.bundle.AbstractManagedContainer, 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 IContainer
IContainer.Modifiable<E>, IContainer.Persistable<E>, IContainer.Persistence<E>Nested classes/interfaces inherited from interface ILifecycle
ILifecycle.DeferrableActivationNested classes/interfaces inherited from interface INotifier
INotifier.INotifier2 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IManagedContainerThe canonical managed container for the current Net4j platform. -
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 IContainer
getElements, isEmptyMethods inherited from interface ILifecycle
activate, deactivate, getLifecycleState, isActiveMethods inherited from interface INotifier
addListener, getListeners, hasListeners, removeListener
-
Field Details
-
INSTANCE
The canonical managed container for the current Net4j platform.- Since:
- 3.31
-
-
Method Details
-
getName
-
setName
-
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
-
removeElement
-
forEachElement
-
forEachElement
-
forEachElement
-
clearElements
void clearElements() -
loadElements
void loadElements(InputStream stream) throws IOException, FactoryNotFoundException, ProductCreationException -
saveElements
- Throws:
IOException
-