Constructor and Description |
---|
PicoBasedContainer(org.picocontainer.MutablePicoContainer container) |
Modifier and Type | Method and Description |
---|---|
<T> boolean |
canProvide(java.lang.Class<T> type)
Verifies if this container can provide an instance for
the given class.
|
org.picocontainer.MutablePicoContainer |
getContainer() |
<T> T |
instanceFor(java.lang.Class<T> type)
Retrieves the appropriate instance for the given class.
|
public PicoBasedContainer(org.picocontainer.MutablePicoContainer container)
public <T> T instanceFor(java.lang.Class<T> type)
Container
instanceFor
in interface Container
type
- of the required componentpublic <T> boolean canProvide(java.lang.Class<T> type)
Container
canProvide
in interface Container
type
- of the required componentpublic org.picocontainer.MutablePicoContainer getContainer()
Copyright © 2013 Caelum. All Rights Reserved.