public interface MutableGlobalContext extends GlobalContext
ClassLoadAction and FieldAnnotationProcessor during the
 system
 initialization to make parts visible in the GlobalContext| Modifier and Type | Method and Description | 
|---|---|
| void | registerPart(Object part,
            Class<?>... lookupClasses)Registers the given part for the given lookup classes. | 
| void | registerPart(String uniqueName,
            Object part,
            Class<?>... lookupClasses)Registers the given part for the given name and lookup classes. | 
findPart, getNamedParts, getPart, getPart, getPartCollection, getParts, getParts, registerDynamicPart, wirevoid registerPart(@Nonnull Object part, @Nonnull Class<?>... lookupClasses)
Note that the given part does not need to implement the given interfaces or classes.
part - the object to be stored in the global context.lookupClasses - the list of classes (don't need to be interfaces) by which this part can be
                      fetched from the global context. At least one class should be given, otherwise the
                      part will be discarded.void registerPart(@Nonnull String uniqueName, @Nonnull Object part, @Nonnull Class<?>... lookupClasses)
uniqueName - the name of this part, which can be used to retrieve this part from the global
                      context. This name doesn't have to be globally unique, but within each of
                      the given lookup classes.part - the object to be stored in the global context.lookupClasses - the list of classes (don't need to be interfaces) by which this part can be
                      fetched from the global context. At least one class should be given, otherwise the
                      part will be discarded.Copyright © 2018. All rights reserved.