Package org.apache.johnzon.jsonb.cdi
Class JohnzonCdiExtension
- java.lang.Object
-
- org.apache.johnzon.jsonb.cdi.JohnzonCdiExtension
-
- All Implemented Interfaces:
jakarta.enterprise.inject.spi.Extension
public class JohnzonCdiExtension extends Object implements jakarta.enterprise.inject.spi.Extension
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
canWrite
private Collection<JohnzonJsonb>
jsonbs
private ReentrantLock
lock
-
Constructor Summary
Constructors Constructor Description JohnzonCdiExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
cleanUp(jakarta.enterprise.inject.spi.BeforeShutdown beforeShutdown)
boolean
isCanWrite()
(package private) void
started(jakarta.enterprise.inject.spi.BeforeBeanDiscovery beforeBeanDiscovery)
void
track(JohnzonJsonb jsonb)
void
untrack(JohnzonJsonb jsonb)
-
-
-
Field Detail
-
jsonbs
private final Collection<JohnzonJsonb> jsonbs
-
lock
private final ReentrantLock lock
-
canWrite
private volatile boolean canWrite
-
-
Method Detail
-
isCanWrite
public boolean isCanWrite()
-
track
public void track(JohnzonJsonb jsonb)
-
untrack
public void untrack(JohnzonJsonb jsonb)
-
started
void started(@Observes jakarta.enterprise.inject.spi.BeforeBeanDiscovery beforeBeanDiscovery)
-
cleanUp
void cleanUp(@Observes jakarta.enterprise.inject.spi.BeforeShutdown beforeShutdown)
-
-