|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.system.ServiceFactory
ome.tools.spring.ManagedServiceFactory
public class ManagedServiceFactory
subclass of ome.system.ServiceFactory which retrieves managed
service-
instances. These have all the
necessary layers of AOP interceptors for proper functioning. In fact, the
returned services behave almost exactly as if they were in an application
server ("container").
Field Summary |
---|
Fields inherited from class ome.system.ServiceFactory |
---|
ctx |
Constructor Summary | |
---|---|
ManagedServiceFactory()
|
Method Summary | |
---|---|
protected String |
getDefaultContext()
returns null to prevent the lookup of any context, but rather wait on injection as a ApplicationContextAware |
protected String |
getPrefix()
used by ServiceFactory.getServiceByClass(Class) to find the correct service
proxy in the ServiceFactory.ctx |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
simple injector for the ApplicationContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManagedServiceFactory()
Method Detail |
---|
protected String getPrefix()
ServiceFactory
ServiceFactory.getServiceByClass(Class)
to find the correct service
proxy in the ServiceFactory.ctx
getPrefix
in class ServiceFactory
String
, usually "internal-" or "managed-"protected String getDefaultContext()
ApplicationContextAware
getDefaultContext
in class ServiceFactory
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
ApplicationContext
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.BeansException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: 4.3.4-dbcbce5a-b4
Copyright © 2009 The University of Dundee. All Rights Reserved.