Software Defined Networking
1752806 Members
6101 Online
108789 Solutions
New Discussion

How to use two different services in a function?

 
mmehdi
Occasional Advisor

How to use two different services in a function?

Hello All

 

Is there anyway that we can write a method where it has two different services as input; for example:

 

    @Reference(name = "ControllerService",
            cardinality = ReferenceCardinality.OPTIONAL_UNARY,
            policy = ReferencePolicy.DYNAMIC)
    private ControllerService cs;

 

    @Reference(name = "FlowService",
    cardinality = ReferenceCardinality.OPTIONAL_UNARY,
    policy = ReferencePolicy.DYNAMIC)
    private FlowService fs;

 

protected void bindControllerFlowService(ControllerService  cs, FlowService  fs){

...

{

 

Thanks

Best

Mehdi