public final class ParentExtensionStorage extends Object
"deltaspike.parent.extension.enabled"
to "e;true"e;
All your Extension has to do is to register itself in
BeforeBeanDiscovery
.
Later at boot time the Extension can lookup it's parent Extension instance and
e.g. check which classes got scanned in the parent ClassLoader.
The ExtensionInfo automatically gets removed if the webapp gets undeployed.Modifier and Type | Method and Description |
---|---|
static void |
addExtension(javax.enterprise.inject.spi.Extension extension)
Add info about an Extension to our storage
This method is usually called during boostrap via
@Observes BeforeBeanDiscovery . |
static <T extends javax.enterprise.inject.spi.Extension> |
getParentExtension(javax.enterprise.inject.spi.Extension extension) |
public static void addExtension(javax.enterprise.inject.spi.Extension extension)
@Observes BeforeBeanDiscovery
.public static <T extends javax.enterprise.inject.spi.Extension> T getParentExtension(javax.enterprise.inject.spi.Extension extension)
Copyright © 2020 The Apache Software Foundation. All rights reserved.