Is is possible to get the container instance back from Servi开发者_如何学PythonceLocation? I only see the ability to resolve instances of types, not register them. You can\'t. CommonServiceLocator onl
Is it wrong to call a class a FooFactory if it doesn\'t always create Foo objects? For example if I have the following interface:
I have app on GF V3.01 server and remote methods in EJB container. When I call remote methods from my remote swing app process take long time to execute. I read about ServiceLocator , but can no find
For a simple application that use asp.net mvc 3 and .net-4, what service loca开发者_运维知识库tor application is preferred, with performance concern in mind?See these questions:
I\'m trying to refactor my code to use the Common Service Locator. I have a Shared Library that is used by some other components.
I am getting back again and again to it thinking about the best way to perform validation on POCO objects that need access to some context (ISession in NH, IRepository for example).
In a J2EE application, we are using EJB2 in weblogic. To avoid losing time building the initial context and looking up EJB Home interface, I\'m considering the Service Locator Pattern.
Consider this scenario. I have some business logic that now and then will be required to write to a log.
I have say a dozen types T which inherit from EntityObject and IDataObject. I have generic the following interface
DISCLAIMER: I know there is debate between DI and service locator patterns.I have a question that is 开发者_StackOverflow中文版intended to avoid the debate.This question is for the service locator fan