service-locator
How do I get the container instance back from ServiceLocation?
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[详细]
2023-01-16 13:59 分类:问答Is it wrong to call a class a FooFactory if it doesn't *always* create Foo objects?
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:[详细]
2023-01-13 15:41 分类:问答EJB call from swing
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[详细]
2023-01-13 02:38 分类:问答For a simple web application, what service locator library you prefer to use?
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:[详细]
2023-01-10 06:35 分类:问答Are Consumers of ServiceLocator supposed to call ServiceLocator.Current?
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.[详细]
2023-01-05 18:08 分类:问答Validation without ServiceLocator
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).[详细]
2022-12-30 07:45 分类:问答J2EE/EJB + service locator: is it safe to cache EJB Home lookup result?
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.[详细]
2022-12-28 05:20 分类:问答Which pattern to use for logging? Dependency Injection or Service Locator?
Consider this scenario. I have some business logic that now and then will be required to write to a log.[详细]
2022-12-27 11:09 分类:问答Service locator for generics
I have say a dozen types T which inherit from EntityObject and IDataObject. I have generic the following interface[详细]
2022-12-27 09:35 分类:问答The IOC "child" container / Service Locator
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[详细]
2022-12-27 06:36 分类:问答