|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.picocontainer.gems.jndi.JNDIProvided<T>
public class JNDIProvided<T>
represents dependency provided via JNDI. This dependency is not to be managed by container at all, so there is no lifecycle, no monitoring etc.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.picocontainer.ComponentAdapter |
|---|
org.picocontainer.ComponentAdapter.NOTHING |
| Constructor Summary | |
|---|---|
JNDIProvided(JNDIObjectReference<T> reference)
create adapter with JNDI reference. |
|
JNDIProvided(Object componentKey,
JNDIObjectReference<T> reference)
create adapter with specified key and reference |
|
JNDIProvided(String jndiName)
create adapter based on JNDI name. |
|
| Method Summary | ||
|---|---|---|
void |
accept(org.picocontainer.PicoVisitor visitor)
as there is no puprose of proceeding further down, we do nothing here |
|
|
findAdapterOfType(Class<U> adapterType)
|
|
Class |
getComponentImplementation()
|
|
T |
getComponentInstance(org.picocontainer.PicoContainer container)
|
|
T |
getComponentInstance(org.picocontainer.PicoContainer container,
Type into)
retrieve instance out of JNDI |
|
Object |
getComponentKey()
|
|
org.picocontainer.ComponentAdapter<T> |
getDelegate()
|
|
String |
getDescriptor()
|
|
void |
verify(org.picocontainer.PicoContainer container)
we have nothing to verify here |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JNDIProvided(Object componentKey,
JNDIObjectReference<T> reference)
componentKey - component keyreference - JNDI reference storing componentpublic JNDIProvided(JNDIObjectReference<T> reference)
reference - JNDI reference storing component
public JNDIProvided(String jndiName)
throws NamingException
jndiName - name to be used
NamingException - will be thrown if something goes
wrong in JNDI| Method Detail |
|---|
public Object getComponentKey()
getComponentKey in interface org.picocontainer.ComponentAdapter<T>public Class getComponentImplementation()
getComponentImplementation in interface org.picocontainer.ComponentAdapter<T>
public T getComponentInstance(org.picocontainer.PicoContainer container)
throws org.picocontainer.PicoCompositionException
getComponentInstance in interface org.picocontainer.ComponentAdapter<T>org.picocontainer.PicoCompositionException
public T getComponentInstance(org.picocontainer.PicoContainer container,
Type into)
throws org.picocontainer.PicoCompositionException
getComponentInstance in interface org.picocontainer.ComponentAdapter<T>org.picocontainer.PicoCompositionException
public void verify(org.picocontainer.PicoContainer container)
throws org.picocontainer.PicoCompositionException
verify in interface org.picocontainer.ComponentAdapter<T>org.picocontainer.PicoCompositionExceptionpublic void accept(org.picocontainer.PicoVisitor visitor)
accept in interface org.picocontainer.ComponentAdapter<T>public org.picocontainer.ComponentAdapter<T> getDelegate()
getDelegate in interface org.picocontainer.ComponentAdapter<T>public <U extends org.picocontainer.ComponentAdapter> U findAdapterOfType(Class<U> adapterType)
findAdapterOfType in interface org.picocontainer.ComponentAdapter<T>public String getDescriptor()
getDescriptor in interface org.picocontainer.ComponentAdapter<T>
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||