|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.qi4j.library.spring.importer.SpringImporter
public class SpringImporter
Import a service from Spring. This assumes that the service has been imported into the assembly using the SpringImporterAssembler, so that the ApplicationContext is available as service meta-info.
Constructor Summary | |
---|---|
SpringImporter()
|
Method Summary | |
---|---|
Object |
importService(ImportedServiceDescriptor serviceDescriptor)
Import a service from Spring by looking it up in the ApplicationContext. |
boolean |
isActive(Object instance)
Ask if the underlying service is currently active or not. |
boolean |
isAvailable(Object instance)
Ask if the service is available or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpringImporter()
Method Detail |
---|
public Object importService(ImportedServiceDescriptor serviceDescriptor) throws ServiceImporterException
importService
in interface ServiceImporter
serviceDescriptor
- The service descriptor.
ServiceImporterException
public boolean isActive(Object instance)
ServiceImporter
isActive
in interface ServiceImporter
instance
- the instance to be checked
public boolean isAvailable(Object instance)
ServiceImporter
isAvailable
in interface ServiceImporter
instance
- the instance to be checked
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |