public class SlimAnnotatedTypeStoreImpl extends Object implements SlimAnnotatedTypeStore, BootstrapService
| Constructor and Description |
|---|
SlimAnnotatedTypeStoreImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
cleanup()
Called by Weld when it is shutting down, allowing the service to
perform any cleanup needed.
|
void |
cleanupAfterBoot()
Called by Weld once it finishes initialization and before it starts serving requests.
|
<X> List<SlimAnnotatedType<X>> |
get(Class<X> type)
Retrieves a previously stored list of
SlimAnnotatedTypes that match the given type. |
<X> SlimAnnotatedType<X> |
get(String id)
Retrieves a previously stored
SlimAnnotatedType. |
<X> void |
put(SlimAnnotatedType<X> type)
Put a
SlimAnnotatedType into the store. |
<X> void |
putIfAbsent(SlimAnnotatedType<X> type)
Put a
SlimAnnotatedType into the store. |
public <X> SlimAnnotatedType<X> get(String id)
SlimAnnotatedTypeStoreSlimAnnotatedType.get in interface SlimAnnotatedTypeStoreid - type identifierpublic <X> List<SlimAnnotatedType<X>> get(Class<X> type)
SlimAnnotatedTypeStoreSlimAnnotatedTypes that match the given type.get in interface SlimAnnotatedTypeStoretype - the annotated type typepublic <X> void put(SlimAnnotatedType<X> type)
SlimAnnotatedTypeStoreSlimAnnotatedType into the store.put in interface SlimAnnotatedTypeStoretype - type to storepublic <X> void putIfAbsent(SlimAnnotatedType<X> type)
SlimAnnotatedTypeStoreSlimAnnotatedType into the store. Nothing is done if the store already contains a type with the given id.putIfAbsent in interface SlimAnnotatedTypeStoretype - type to storepublic void cleanupAfterBoot()
BootstrapServicecleanupAfterBoot in interface BootstrapServiceCopyright © 2012 Seam Framework. All Rights Reserved.