public class CExtManager extends Object
Lookup. However, this implementation provides additional facilities to collect
extensions for specific situations/usages using an additional CExtContext object to express this very
context. Extension providers can thus restrict the usage of their extensions to contexts in which they decided that
the specific extension is reasonable. Extension users in turn can exactly specify their needs and thus can filter
unsuitable extensions for their context.CExtContext,
CExtProvider,
Lookup| Modifier and Type | Method and Description |
|---|---|
<T> T |
getExtension(Class<T> c,
CExtContext context)
Provides the first matching extension implementation of the given type for the given context.
|
<T> Collection<? extends T> |
getExtensions(Class<T> c,
CExtContext context)
Collects all matching extension implementations of the given type for the given context.
|
static CExtManager |
getInstance()
Returns the
CExtManager instance (Singleton). |
public static CExtManager getInstance()
CExtManager instance (Singleton).CExtManager instancepublic <T> Collection<? extends T> getExtensions(Class<T> c, CExtContext context)
Lookup and thus the ordering of the result depends on the order of the CExtProvider
implementations that in turn provide implementations of the given type.T - type of the requested extensionsc - class of the type of the requested extensionscontext - context for which the extensions are requested for
nullpublic <T> T getExtension(Class<T> c, CExtContext context)
Lookup and thus the first matching implementation depends on the order of the CExtProvider
implementations that in turn provide implementations of the given type.T - type of the requested extensionc - class of the type of the requested extensioncontext - context for which the extension is requested fornull if there is no CExtProvider
that provides an extension implementation for the given type and contextCopyright © 2012–2026 cismet GmbH. All rights reserved.