|
|
|||||||||
| 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 |
|---|
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(PicoVisitor visitor)
as there is no puprose of proceeding further down, we do nothing here |
|
|
findAdapterOfType(Class<U> adapterType)
|
|
Class |
getComponentImplementation()
|
|
T |
getComponentInstance(PicoContainer container)
|
|
T |
getComponentInstance(PicoContainer container,
Type into)
retrieve instance out of JNDI |
|
Object |
getComponentKey()
|
|
ComponentAdapter<T> |
getDelegate()
|
|
String |
getDescriptor()
|
|
void |
verify(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 ComponentAdapter<T>public Class getComponentImplementation()
getComponentImplementation in interface ComponentAdapter<T>
public T getComponentInstance(PicoContainer container)
throws PicoCompositionException
getComponentInstance in interface ComponentAdapter<T>PicoCompositionException
public T getComponentInstance(PicoContainer container,
Type into)
throws PicoCompositionException
getComponentInstance in interface ComponentAdapter<T>PicoCompositionException
public void verify(PicoContainer container)
throws PicoCompositionException
verify in interface ComponentAdapter<T>PicoCompositionExceptionpublic void accept(PicoVisitor visitor)
accept in interface ComponentAdapter<T>public ComponentAdapter<T> getDelegate()
getDelegate in interface ComponentAdapter<T>public <U extends ComponentAdapter> U findAdapterOfType(Class<U> adapterType)
findAdapterOfType in interface ComponentAdapter<T>public String getDescriptor()
getDescriptor in interface ComponentAdapter<T>
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||