Package | Description |
---|---|
org.eiichiro.jaguar |
Jaguar - Component Jam
|
org.eiichiro.jaguar.interceptor |
Interceptor.
|
org.eiichiro.jaguar.scope |
Component scope and context.
|
Modifier and Type | Method and Description |
---|---|
com.google.common.collect.ListMultimap<Class<?>,Descriptor<?>> |
Container.components()
Returns component type-
Descriptor map the container manages. |
Map<Class<? extends Annotation>,Descriptor<? extends Context>> |
Container.contexts()
Returns scope annotation-
Descriptor of Context map the
container manages. |
WeakHashMap<Object,Descriptor<?>> |
Container.instances()
Returns component instance-
Descriptor map the container manages. |
com.google.common.collect.ListMultimap<Annotation,Descriptor<?>> |
Container.interceptors()
Returns intercept annotation-
Descriptor map the container
manages. |
Modifier and Type | Method and Description |
---|---|
<T> T |
Container.component(Descriptor<T> descriptor)
Returns assembled component instance corresponding to the specified
descriptor.
|
Constructor and Description |
---|
Assembler(Container container,
Descriptor<T> descriptor)
Constructs a new
Assembler instance with the specified container
and descriptor. |
Assembler(Container container,
Descriptor<T> descriptor,
T instance)
Constructs a new
Assembler instance with the specified container,
descriptor and component instance. |
Constructor and Description |
---|
Dispatcher(Container container,
Descriptor<?> descriptor)
|
Modifier and Type | Method and Description |
---|---|
<T> T |
ThreadContext.get(Descriptor<T> descriptor)
Returns the component corresponding to the specified
Descriptor
from the ThreadLocal in current thread. |
<T> T |
SingletonContext.get(Descriptor<T> descriptor)
Returns the component corresponding to the specified
Descriptor
from the static global store. |
<T> T |
SessionContext.get(Descriptor<T> descriptor)
Returns the component corresponding to the specified
Descriptor
from the current HttpSession . |
<T> T |
RequestContext.get(Descriptor<T> descriptor)
Returns the component corresponding to the specified
Descriptor
from the current HttpServletRequest . |
<T> T |
PrototypeContext.get(Descriptor<T> descriptor)
Always returns
null . |
<T> T |
Context.get(Descriptor<T> descriptor)
Returns the component corresponding to the specified
Descriptor . |
<T> T |
ApplicationContext.get(Descriptor<T> descriptor)
Returns the component corresponding to the specified
Descriptor
from the current ServletContext . |
<T> void |
ThreadContext.put(Descriptor<T> descriptor,
T component)
Puts the specified component and descriptor pair into the
ThreadLocal in current thread. |
<T> void |
SingletonContext.put(Descriptor<T> descriptor,
T component)
Puts the specified component and descriptor pair into the static global
store.
|
<T> void |
SessionContext.put(Descriptor<T> descriptor,
T component)
Puts the specified component and descriptor pair into the current
HttpSession . |
<T> void |
RequestContext.put(Descriptor<T> descriptor,
T component)
Puts the specified component and descriptor pair into the current
HttpServletRequest . |
<T> void |
PrototypeContext.put(Descriptor<T> descriptor,
T component)
no-op.
|
<T> void |
Context.put(Descriptor<T> descriptor,
T component)
Puts the specified component and descriptor pair.
|
<T> void |
ApplicationContext.put(Descriptor<T> descriptor,
T component)
Puts the specified component and descriptor pair into the current
ServletContext . |
Copyright © 2011-2014 Eiichiro Uchiumi. All Rights Reserved.