public abstract class AbstractWeldInitiator extends Object implements javax.enterprise.inject.Instance<Object>, org.jboss.weld.environment.ContainerInstance
| Modifier and Type | Class and Description |
|---|---|
protected static class |
AbstractWeldInitiator.AbstractBuilder<I extends AbstractWeldInitiator,T extends AbstractWeldInitiator.AbstractBuilder<I,T>> |
protected class |
AbstractWeldInitiator.ToInject |
| Modifier and Type | Field and Description |
|---|---|
protected Set<javax.enterprise.inject.spi.Bean<?>> |
beans |
protected org.jboss.weld.environment.se.WeldContainer |
container |
protected org.jboss.weld.junit.WeldCDIExtension |
extension |
protected List<AbstractWeldInitiator.ToInject> |
instancesToInject |
protected Set<Class<? extends Annotation>> |
scopesToActivate |
protected org.jboss.weld.environment.se.Weld |
weld |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractWeldInitiator(org.jboss.weld.environment.se.Weld weld,
List<Object> instancesToInject,
Set<Class<? extends Annotation>> scopesToActivate,
Set<javax.enterprise.inject.spi.Bean<?>> beans,
Map<String,Object> resources,
Function<javax.enterprise.inject.spi.InjectionPoint,Object> ejbFactory,
Function<javax.enterprise.inject.spi.InjectionPoint,Object> persistenceUnitFactory,
Function<javax.enterprise.inject.spi.InjectionPoint,Object> persistenceContextFactory) |
| Modifier and Type | Method and Description |
|---|---|
org.jboss.weld.environment.se.WeldContainer |
container()
This method should be used when a Weld-specific API is needed.
|
protected AbstractWeldInitiator.ToInject |
createToInject(Object instanceToInject) |
static org.jboss.weld.environment.se.Weld |
createWeld()
The returned
Weld instance has:
automatic discovery disabled
concurrent deployment disabled
|
void |
destroy(Object instance) |
javax.enterprise.event.Event<Object> |
event()
Allows to fire events.
|
Object |
get() |
javax.enterprise.inject.spi.BeanManager |
getBeanManager() |
String |
getId() |
protected org.jboss.weld.environment.se.WeldContainer |
initWeldContainer(org.jboss.weld.environment.se.Weld weld) |
protected void |
injectInstances() |
boolean |
isAmbiguous() |
boolean |
isRunning() |
boolean |
isUnsatisfied() |
Iterator<Object> |
iterator() |
protected void |
releaseInstances() |
org.jboss.weld.inject.WeldInstance<Object> |
select(Annotation... qualifiers) |
<U> org.jboss.weld.inject.WeldInstance<U> |
select(Class<U> subtype,
Annotation... qualifiers) |
<U> org.jboss.weld.inject.WeldInstance<U> |
select(javax.enterprise.util.TypeLiteral<U> subtype,
Annotation... qualifiers) |
void |
shutdown()
Note that any container-based operation will result in
IllegalStateException after shutdown. |
protected void |
shutdownWeldContainer() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorprotected final org.jboss.weld.environment.se.Weld weld
protected final List<AbstractWeldInitiator.ToInject> instancesToInject
protected final Set<Class<? extends Annotation>> scopesToActivate
protected final Set<javax.enterprise.inject.spi.Bean<?>> beans
protected final org.jboss.weld.junit.WeldCDIExtension extension
protected volatile org.jboss.weld.environment.se.WeldContainer container
protected AbstractWeldInitiator(org.jboss.weld.environment.se.Weld weld,
List<Object> instancesToInject,
Set<Class<? extends Annotation>> scopesToActivate,
Set<javax.enterprise.inject.spi.Bean<?>> beans,
Map<String,Object> resources,
Function<javax.enterprise.inject.spi.InjectionPoint,Object> ejbFactory,
Function<javax.enterprise.inject.spi.InjectionPoint,Object> persistenceUnitFactory,
Function<javax.enterprise.inject.spi.InjectionPoint,Object> persistenceContextFactory)
public static org.jboss.weld.environment.se.Weld createWeld()
Weld instance has:
Weld instance suitable for testingprotected AbstractWeldInitiator.ToInject createToInject(Object instanceToInject)
public org.jboss.weld.inject.WeldInstance<Object> select(Annotation... qualifiers)
select in interface javax.enterprise.inject.Instance<Object>public <U> org.jboss.weld.inject.WeldInstance<U> select(Class<U> subtype, Annotation... qualifiers)
select in interface javax.enterprise.inject.Instance<Object>public <U> org.jboss.weld.inject.WeldInstance<U> select(javax.enterprise.util.TypeLiteral<U> subtype,
Annotation... qualifiers)
select in interface javax.enterprise.inject.Instance<Object>public boolean isUnsatisfied()
isUnsatisfied in interface javax.enterprise.inject.Instance<Object>public boolean isAmbiguous()
isAmbiguous in interface javax.enterprise.inject.Instance<Object>public void destroy(Object instance)
destroy in interface javax.enterprise.inject.Instance<Object>public javax.enterprise.event.Event<Object> event()
public javax.enterprise.inject.spi.BeanManager getBeanManager()
getBeanManager in interface org.jboss.weld.environment.ContainerInstancepublic String getId()
getId in interface org.jboss.weld.environment.ContainerInstancepublic void shutdown()
IllegalStateException after shutdown.shutdown in interface org.jboss.weld.environment.ContainerInstancepublic boolean isRunning()
true if the container was initialized completely and is not shut down yet, false otherwisepublic org.jboss.weld.environment.se.WeldContainer container()
protected void injectInstances()
protected void releaseInstances()
protected org.jboss.weld.environment.se.WeldContainer initWeldContainer(org.jboss.weld.environment.se.Weld weld)
protected void shutdownWeldContainer()
Copyright © 2018. All rights reserved.