Questions tagged [service-factory]

25 questions
13
votes
5 answers

how to override a service provider in java

This is more a general question by example: I'm using xstream and woodstox, woodstox comes with a service provider for javax.xml.stream.XMLOutputFactory in woodstox jar registering com.ctc.wstx.stax.WstxOutputFactory. I want to provide my own…
Shalom938
  • 909
  • 2
  • 10
  • 24
8
votes
3 answers

osgi: Using ServiceFactories?

I'm currently trying to get a simple bundle containing a Service Factory running. This is my factory class: public class SvcFactory implements ServiceFactory { @Override public ServiceB getService(Bundle bundle, …
Marc-Christian Schulze
  • 3,154
  • 3
  • 35
  • 45
3
votes
1 answer

XML Schema not working with Web Service Software Factory

I am trying to create an XML schema to use with the Web Service Software Factory. It's a fairly simple schema that is just a group of person objects. The (simplified) schema file looks like:
Jeff Hornby
  • 12,948
  • 4
  • 40
  • 61
2
votes
3 answers

Problem with large solutions and service factory

My team is developing WCF services in Visual Studio 2008 SP1 with the Service Factory Modeling Edition. The problem is that we have so many services to develop and we've put everything in the same solution. 250 projects later, the solution barely…
Dan
  • 3,665
  • 1
  • 31
  • 39
2
votes
1 answer

Handling two different application flows

We are building an application where we have to have both old and new version to work side by side (V1 is old and V2 is new). Now to handle new flow we are using same old interfaces with everything being the same and differs only in functionality,…
2
votes
1 answer

Collect Service Fabric Cluster logs in Azure

I am new to Service Fabric Cluster and I am trying to collect logs from my cluster in Azure. Basically, I have an event source "XXXXX" defined in ServiceEventSource.cs. Locally, when I add this source to the ETW Providers in the Diagnostics Events…
PMerlet
  • 2,568
  • 4
  • 23
  • 39
2
votes
2 answers

How can a service factory instantiated bean have access to a httpServletRequest object?

Ok, I had a bounty about this same subject with only a partial answer so I'm going to open this one and simplify the subject since I guess the original one was way too bloated. I'm facing a situation where I basically have a filter that gets a…
jigzat
  • 3,498
  • 1
  • 21
  • 23
2
votes
1 answer

Service Factory implementation using declarative services in OSGi

I am registering an OSGi service using OSGi declarative service and setting servicefactory="true" as follows.
Ravish
  • 2,428
  • 2
  • 18
  • 24
1
vote
2 answers

Service factory: extremely long path/filenames problems

I have been trying out Service Factory and have run into some problems in regards to long filenames - surpassing the limit in Vista/XP. The problem is that when generating code from the models service factory prefixes everything with the namespace…
Xerx
  • 3,755
  • 8
  • 32
  • 28
1
vote
2 answers

Type passed in is not ComponentType, it does not have 'ɵcmp' property. Routing not injecting into AngularRouter using config service injection

I am using an app initializer to try and populate the routes from a database prior to launch. it should be very straightforward but I am getting the error above and I am not sure why. The type passed in is not ComponentType, it does not have…
1
vote
1 answer

what is the purpose of @Component in OSGI factory implementations?

I am trying to implement servicefactory using apache felix scr annotations. @Component @Service(serviceFactory = true) @Properties(value = { @Property(name = "className", value = "interface1") }) public class Tinterfaceimpl1 implements Tinterface…
Shriram
  • 4,343
  • 8
  • 37
  • 64
1
vote
1 answer

Selfhosted WCF not running Factory(CustomHostServiceFactory)?

I have a WCF service that can be placed in both IIS7 and in selfhost. The SVC file looks like this : <%@ ServiceHost Language="C#" Debug="False" Service="MyApp.ServiceImplementation.MyAppClientService"…
Banshee
  • 15,376
  • 38
  • 128
  • 219
0
votes
0 answers

How can I write a factory for services that implement a generic interface?

Given a set of services that each implement a generic interface where the type parameters all have a common base, how can I write a factory method to return an instance of one of these services? There seems to be no way to write a return type for…
Ian Horwill
  • 2,957
  • 2
  • 24
  • 24
0
votes
1 answer

Web service software factory 2008 Modelling edition Generate Code button no Enabled

I installed following softwares to enable WCF modeling projects in Visual Studio 2008 SP1. But one option 'Generate Code' is not visible for WCF Contract diagrams. 1) Web service software factory Modelling edition 2008 2) Guidance Automation…
sqlnewbie
  • 857
  • 3
  • 16
  • 39
0
votes
1 answer

How to write factory pattern in OSGi?

I have multiple Impl classes which implements the same service. I need to write a single factory class in osgi where I should write getter method to return appropriate Impl Object. Below is the code I tried. I am struck in factory class. Any ideas…
keyanwb
  • 63
  • 1
  • 7
1
2