|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExtensionLoader
ExtensionLoader
Describes a way for the Archive
to load extensions.
If an implementation is not set in the Domain
's
Configuration
, ServiceExtensionLoader
is set as the
default strategy to load extensions.
Method Summary | ||
---|---|---|
|
addOverride(Class<T> extensionClass,
Class<? extends T> extensionImplClass)
Add a Override to the normal Extension loading. |
|
|
getExtensionFromExtensionMapping(Class<T> extensionClass)
Gets the extension for the given type from the extensionMapping |
|
|
load(Class<T> extensionClass,
Archive<?> baseArchive)
Load a Extension. |
Method Detail |
---|
<T extends Assignable> T load(Class<T> extensionClass, Archive<?> baseArchive)
T
- extensionClass
- The Extension interfacebaseArchive
- The base archive to use
<T extends Assignable> ExtensionLoader addOverride(Class<T> extensionClass, Class<? extends T> extensionImplClass)
T
- The type of ExtensionextensionClass
- The Extension interface classextensionImplClass
- The Extension implementation class
<T extends Assignable> String getExtensionFromExtensionMapping(Class<T> extensionClass)
T
- The type of ExtensionextensionClass
- The Extension interface class
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |