Question of multiple interface

I have two interface as below:
public interface A{
void hello();
public interface B{
void hello();
I want a class named ABImpl to implements both A and B with different code.
How can deal with this? thanks.
My tester class is as below.
public class Tester{
public static void main(String[] args){
ABImpl ab = new ABImpl();
A a = ab;
B b = ab;
a.hello();
b.hello();
}

Implement two different classes. One implementing Interface A, and another one Implementing Inteface B.
Note: I know this is probably the baddest code, what can you do when there are two interfaces with the same signature? Do not ever use the interfaces, or clases as an instance variables rather use them as a generic definition of an object!!!
But I cannot modify the interface because these
interfaces is gived by other coporation. Probably you may want to ask the vendor the use of two interefaces with the same signaure?
>
I know C++ can do this by extends multiple class. but

Similar Messages

  • WSA Multiple Interface Question

    Due to the fact that the ASA has a limitation with WCCP (http://www.cisco.com/en/US/docs/security/asa/asa80/configuration/guide/dhcp.html#wp1094628) of having the client and WCCP proxy on the same interface not allowing WCCP redirect pass through. I was curious if anyone has deployed a WSA in a dual homed infrastructure to support the multiple interfaces and pass through limitations? Would love to have p1 assigned the inside proxy and p2 assigned for the dmz proxy. I have not tested this yet but will be tomorrow, figured I would post tonight to solicit feedback.
    Cisco ASA 5550 - 8.0.4(32)
    outside - x.x.x.x
    dmz - 10.255.0.100 /24
    inside - 10.0.0.100 /24
    WSA P1 - 10.0.0.200 - currently supports inside -> outside proxy
    WSA P2 - 10.255.0.200 ????? to support the dmz -> outside proxy???

    The WSA does not support pass through / inline mode.

  • Single IDOC to Multiple Interface Mapping

    We have a requirement in our project where one masterdata IDOC will be sent from a SAP MDM box and will be transformed to a target IDOC and be sent to an SAP SNC box. However, the scenario is that depending on the contents of the IDOC, there can be multiple IDOCs that need to be created. For example, the single MDM IDOC has V1, V2 and V3 values then the IDOCS that should be sent to the SAP SNC box should be three.
    The IT head of the customer decided against using Enhanced Interface Determination (since the problem can be easily solved using a 1:n mapping) due to the complexity especially when the solution is rolled out to other regions as each region has it's own logic (currently, the other implementation has only 1:1 mapping so there is no problem). I had developed a 1:n mapping but the resulting map is too big and very complex.
    What I tried to do is to create separate mappings for each scenario that an IDOC needs to be generated out of the values from the received IDOC in XI and then define rules in the Interface Determination. Problem is that XI throws an error stating that multiple interfaces are found. So I cannot use Interface Determination to trigger creation of multiple IDOCS of the same type with different values from a single IDOC sent by the same SAP box.
    Question is, is there any way to solve this requirement without using Enhanced Receiver Determination. I was thinking of BPM but not really sure how to do it.
    Thanks in advance!
    Best Regards,
    Rommel Mendoza
    Hewlett Packard Asia-Pacific, Ltd.

    Thanks a lot for that.
    For example, We have this input Message:
    <ZMATMA>
      <IDOC>
        <E1MARAM>
           <E1MARMM>
               <MEINH>IT</MEINH>
           </E1MARMM>
           <E1MARMM>
               <MEINH>CS</MEINH>
           </E1MARMM>
           <E1MARMM>
               <MEINH>SW</MEINH>
           </E1MARMM>
        </E1MARAM>
      </IDOC>
    </ZMATMA>
    then there should be an output of:
    <SAVEMULTIPLE204>
      <IDOC>
        <BUOM>IT</BUOM>
      </IDOC>
    </SAVEMULTIPLE204>
    <SAVEMULTIPLE204>
      <IDOC>
        <BUOM>CS</BUOM>
      </IDOC>
    </SAVEMULTIPLE204>
    <SAVEMULTIPLE204>
      <IDOC>
        <BUOM>SW</BUOM>
      </IDOC>
    </SAVEMULTIPLE204>
    The logic is when the MEINH field of the ZMATMA02 IDOC has the values: IT, CS and SW, create one IDOC for each.
    Thanks in advance!
    Edited by: Rommel Mendoza on Nov 6, 2008 7:30 PM

  • Delete a column froma  table that is used in multiple interfaces

    Is there a way to delete a column from a table where the table is being used in an interface ? The only way I could find so far was to delete the interface, delete the column then recreate the interface.
    Otherwise deleting warns that the object is referred to by another object and lists the interfaces.
    unfortunately the table in question is being referred to in multiple interfaces, so I'd prefer not to have to recreate all of them.
    Many thanks

    You can delete all the mappings (source an target) which refer to this column and then physically delete the column.
    It's long but maybe better than dropping the whole interfaces using this column.
    Regards and Merry Christmas
    Brice

  • DHCP and multiple interfaces

    Is it better to list each machine and interface as a separate entry in 10.5.7 DHCP or make a single entry with multiple interfaces?
    I am looking at grouping my Wireless AP, instead of having to list each one separately.
    For example:
    MAIN-MDF00-01
    XX:XX:XX:XX:XX:XX 10.0.2.1
    Or
    MDF-AP
    XX:XX:XX:XX:XX:XX 10.0.2.1
    XX:XX:XX:YY:YY:YY 10.0.2.2

    Joe,
         Currently you cannot base the anchoring on the AP group.  It is only based on the SSID.
    Now, do you really need to split up the guest into different subnets?  Or are you concerned about the AP groups?
    If you truly need to break up the guest to different subnets, then you would need to create different SSID on the internal and anchor controller.  Then on the anchor, link to the appropriate interface.
         If you are concerned about the AP group, don't be.  Just because you are using the AP group, doesn't meant that all the guest ssid can't link to the same interface, they can.  You can even create a dummy interface on the internal WLC, so that if the anchoring doesn't work, they do not get an address.
    Cheers,
    Steve
    If  this helps you and/or answers your question please mark the question as "answered" and/or rate it, so other users can easily find it.

  • How to use multiple Interfaces for the same BS?

    Hi @ ,
    Is it possible to have a scenarion where i am using multiple interfaces in the same BS based upon some conditional field in the message.
    I amnot able to get the solution I know with condition editor I can have multiple receivers but in my scenarion based upon message fiels i have to decide which BAPI to be used and wht mapping and then post it to the same System
    Any help will be highly rewarded
    Regards

    Hi-
    Yes it is possible you can use multimapping for mapping the interfaces.
    To know more about multimapping see
    http://help.sap.com/saphelp_nw04/helpdata/en/21/6faf35c2d74295a3cb97f6f3ccf43c/content.htm
    Some more helpful links
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

  • Multiple Interfaces on a single web service URL

    we have a scenario where we have a multiple interfaces that are related to SD that needs to be exposed to another system. When we generate the WSDL from XI - it seems we can do only for one interface at a time.
    Is there a way - where in we can expose a single URL and treat these interfaces as web methods on that single URL? (similar to .Net or Java)
    If yes - how do we do that?
    Thanks.

    That will not be possible. Instead you have to expose only one interface which takes generic data as input. In the mapping, depending on dat, you should map them to various other interfaces which would definetly make your scenario complex..
    In XI each outbound interface is a separate web service (method).
    VJ

  • LDAP design question for multiple sites

    LDAP design question for multiple sites
    I'm planning to implement the Sun Java System Directory Server 5.2 2005Q1 for replacing the NIS.
    Currently we have 3 sites with different NIS domains.
    Since the NFS over the WAN connection is very unreliable, I would like to implement as follows:
    1. 3 LDAP servers + replica for each sites.
    2. Single username and password for every end user cross those 3 sites.
    3. Different auto_master, auto_home and auto_local maps for three sites. So when user login to different site, the password is the same but the home directory is different (local).
    So the questions are
    1. Should I need to have 3 domains for LDAP?
    2. If yes for question 1, then how can I keep the username password sync for three domains? If no for question 1, then what is the DIT (Directory Infrastructure Tree) or directory structure I should use?
    3. How to make auto map work on LDAP as well as mount local home directory?
    I really appreciate that some LDAP experta can light me up on this project.

    Thanks for your information.
    My current environment has 3 sites with 3 different NIS domainname: SiteA: A.com, SiteB:B.A.com, SiteC:C.A.com (A.com is our company domainname).
    So everytime I add a new user account and I need to create on three NIS domains separately. Also, the password is out of sync if user change the password on one site.
    I would like to migrate NIS to LDAP.
    I want to have single username and password for each user on 3 sites. However, the home directory is on local NFS filer.
    Say for userA, his home directory is /user/userA in passwd file/map. On location X, his home directory will mount FilerX:/vol/user/userA,
    On location Y, userA's home directory will mount FilerY:/vol/user/userA.
    So the mount drive is determined by auto_user map in NIS.
    In other words, there will be 3 different auto_user maps in 3 different LDAP servers.
    So userA login hostX in location X will mount home directory on local FilerX, and login hostY in location Y will mount home directory on local FilerY.
    But the username and password will be the same on three sites.
    That'd my goal.
    Some LDAP expert suggest me the MMR (Multiple-Master-Replication). But I still no quite sure how to do MMR.
    It would be appreciated if some LDAP guru can give me some guideline at start point.
    Best wishes

  • Single SOAP receiver adapter for multiple interfaces

    Hi,
    I have to send multiple interfaces like Vendor, Customer, Material to one receiver.
    I want to configure only one communication channel (receiver SOAP adapter) to send all these interfaces. Is this possible?
    Currently I am provided with different URLs from the receiver system as below.
    http://host:port/Services/Vendor.wsdl
    http://host:port/Services/customer.wsdl
    http://host:port/ServicesMaterial.wsdl
    I will be having 3 Sender agreement, 3 receiver determination, 3 interface determination and 3 Receiver agreement.
    I want only one SOAP reciever adapter which goes inside all the above 3 Receiver agreement.
    So When I give the target url as http://host:port/Services, the messages fail.
    But When I specify the full targert url in the adapter as http://host:port/Services/Vendor.wsdl then it works.
    Which means I would have to create as many communication channel as interfaces.
    Is there a work around for this?

    hi kantheri,
       For this, we have to fill the TargetURL and the SOAPAction in Receiver Communication channel dynamically.
    So, we need to write UDF in Message Mappings using DynamicConfiguration to fill the TargetURL and the SOAPAction Dynamically.
    DynamicConfigurationKey keyURL = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP","THeaderSOAPACTION");
    DynamicConfigurationKey targetURL=DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP","TServerLocation");
    // access dynamic configuration
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    conf.put(keyURL,"Soap action");
    conf.put(targetURL,"target url");
    return "";
    In this UDF, we are filling the TargetURL in u201CTServerLocationu201D message attribute and SOAPAction in u201CTHeaderSOAPActionu201D message attribute.
    So, whenever we execute this corresponding operation these values will be filled in receiver communication channel at runtime.
    TargetURL- Give some dummy URL or http:// 
    SOAPAction - *
    regards,
    ganesh.

  • BPM using multiple interface

    Hi All,
    i have a sceanrio where i have one sender idoc and multiple(5) soap receivers.so i have five interface that have same sender idoc and different soap receiver.Soap is syncronous and sending us the response of that message.
    So we have to create a scenario as IDOCSoapRequestSoapResponse---File  for each interface
    I know it requires BPM to fullfill the condition of multiple interface.Please suggest the BPM design to achive the scenario.
    Regards
    Laxmi Bhushan

    hi Laxmi Bhushan Jha ,
    IDOCSoapRequestSoapResponse---File for each interface
    As per my knowledge that is poosiable and simple with SOAP Lookup in ESR Mapping
    for Soap Lookup:
    Webservice Calls From a User Defined Function.
    and coming to id:
    in receiver determination , we need to define multiple recievers
    in interface determiination, we define multiple operation mappings.
    thanks,

  • Idoc to multiple interfaces in XI

    Hi,
    how can we handle same Idoc ( MATMAS.MATMAS03) sending to multiple interfaces in XI otherthan using multi mapping?
    If we develop one scenario now and in future if you want to send same idoc to different systems, do we have to change the existing interface?. Alternatively is it possible to add another interface?. Please clarify.

    ok, as it's case 1, I think it's easier.
    You have two ways:
    1. Inside <b>ID</b>, use your previous Scenario:
    => after that, you will have 1 scenario...
    1.1 Create a new Business Process (BPM_2)
    1.2 Inside your <u>existing</u> Receiver Determination, add your new BPM_2 as a receiver (use righ-click + "insert above").
    1.3 with your triplet "Sender_name + Sender_interface + BPM_2", create your Interface Determination
    1.4 As receiver is a BPM, Receiver Agreement is not needed.
    Then, you need to configure the step "BPM_2 -> Receiver_2"
    1.5 Create a Receiver Determination between your BPM_2 (sender) and your receiver_2.
    1.6 create your Interface Determination
    1.7 create your Receiver Agreement (receiver adapter)
    2. Inside <b>ID</b>, use a new Scenario:
    => after that, you will have 2 scenarios which use the SAME Receiver Determination "Matmas -> Receiver_1 + BPM_2"
    2.1 create a new Scenario
    2.2 <b>ADD</b> to this scenario your existing Receiver Determination ("Matmas -> Receiver_1").
    2.2 do the same steps than "1.1 -> 1.7"
    At the end, you will have:
    Matmas --> | Receiver_1              => File_1 with single Idoc
                | BPM_2
                  BPM_2 --> Receiver_2    => File_2 with collected IDocs
    Mickael
    Message was edited by: Mickael Huchet

  • SWIG - C++/Java and multiple interface inheritance - SWIG typemaps

    In C++ I have the following. Can someone explain how to use SWIG typemaps to accomplish multiple interface inheritance in Java? I understand there is a javainterfaces typemap built into SWIG however I am such a newb with SWIG I really don't know where to start.
    class IRemoteSyncIO
    public:
      virtual ~IRemoteSyncIO () {}
    protected:
      IRemoteSyncIO () {}
    private:
      IRemoteSyncIO (const IRemoteSyncIO&);
      IRemoteSyncIO& operator= (const IRemoteSyncIO&);
    class IRemoteAsyncIO
    public:
      virtual ~IRemoteAsyncIO () {}
    protected:
      IRemoteAsyncIO () {}
    private:
      IRemoteAsyncIO (const IRemoteAsyncIO&);
      IRemoteAsyncIO& operator= (const IRemoteAsyncIO&);
    class RemoteMpe : public IRemoteSyncIO, public IRemoteAsyncIO
    }Thanks!

    Actually now I understand what you mean.... Ok, now I am going to modify the problem slightly and add Interface2 into the picture. The new code is:
    interface Interface1<SelfType extends Interface1<SelfType>>
    interface Interface2
    class Superclass implements Interface1<Superclass>
    class Dependant<Type extends Interface1<Type>>
       public static <Type extends Interface1<Type> & Interface2> Dependant<Type> getInstance(Class<Type> c)
         return new Dependant<Type>();
    class Subclass extends Superclass implements Interface2
      public Subclass()
        Dependant<Subclass> dependant = Dependant.getInstance(Subclass.class);
    }Now, previously I could replace:
    Dependant<Subclass> dependant = Dependant.getInstance(Subclass.class);
    with
    Dependant<Superclass> dependant = Dependant.getInstance(Superclass.class);
    and it solved the problem, but now that Type must implement Interface2 I cannot.
    The reason I added this requirement is that this is actually what is going on in my applicationI had made mistakely omited this detail from the original use-case.
    Can you think up of a possible solution to this new use-case?
    Thanks,
    Gili

  • Question about IDashedAttributeValues interface

    Hi to everyone,<br />I have a question about IDashedAttributeValues interface.<br />If I would like to apply custom dashes kDashedAttributeValuesBoss to a page item. I would expect that my code will look like this:<br /><br />InterfacePtr<IDashedAttributeValues> pAttribute(::CreateObject(kDashedAttributeValuesBoss));<br /><br />pAttribute->SetPhase( nPhase );<br />pAttribute->SetCornerAdjustment((IDashedAttributeValues::CornerAdjustment)nCornerAdjust ment);<br />pAttribute->SetValue( 0, nDash0 );<br /><br />But InDesign crashes at SetValue code. I could understand InDesign. It is out of range. But, how to specify the length of value array or to add value into array?<br /><br />Thanks in advance,<br />Alexander Staroverov<br />Developer Engineer<br />Comosoft GmbH

    Thank you to all, I have found the answer in SDK samples:<br /><br />void SnpGraphicHelper::AddDashedValues(const K2Vector<PMReal>& dashAndGapValues)<br />{<br />IDataBase* db = fItemList.GetDataBase();<br />InterfacePtr<IDocument> theDocument(db, db->GetRootUID(), UseDefaultIID());<br />     InterfacePtr<IUIDData> uidData(::CreateObject2<IUIDData>(kDashedAttributeValuesBoss));<br />     ASSERT(uidData != nil);<br />     uidData->Set(::GetUIDRef(theDocument));<br />     InterfacePtr<IDashedAttributeValues> dashedAttributeValues(uidData, UseDefaultIID());<br />     if (dashedAttributeValues != nil && dashAndGapValues.size() > 0) {<br />          for (int32 i = 0; i < dashAndGapValues.size(); i++) {<br />               dashedAttributeValues->SetValue(i, dashAndGapValues[i]);<br />          }<br />          this->AddAnAttribute(dashedAttributeValues);<br />     }<br />}

  • Assigning multiple interfaces for Oracle API Gateway (OAG)

    We are deploying Oracle API Gateway to throttle our incoming API requests. We would like to keep the incoming external API requests separate from the internal configuration management so that they go through different interfaces when accessing the OAG server. This is mainly for security reasons so that the external people won’t have access to the interface used by internal operations team to manage OAG. Based on your experience, is there any standard best practice to accomplish this? We were thinking to perhaps use two of the server’s network interfaces with different IPs, one for the incoming API requests and the other for the internal admin management of OAG. But not sure if this is the best way to do what we need. We are aware of OAG's capability to support two separate ports to handle this situation, but would like a more secure set-up that could completely eliminate external access to the OAG management done by the IT team.
    Would appreciate any thoughts on best practices used regarding multiple interfaces for OAG set-up. Thank you. Oracle Marketing Cloud.

    You are on the right track.
    Here is how you can achieve this:
    You can use multiple network interfaces on the UNIX machine and setup networking/routing in such a way that all external traffic comes on on one card and is routed internally via a different card.
    Segregate difference types of services (i.e to be used by external clients vs internal apps) into difference different "Service Groups". Have each of these service groups listen on different port + NIC card (under Listeners, you can define a port to list to list on a specific network address and port instead of *).
    Setup additional protection for services that will be accessed by external clients. Use "Threatening Content " filter to protect your services.
    Setup 2 way SSL for the interface that will be called by external clients. Setup a DN based authorization check if you want to have both authentication and authorization.
    Hope this helps.
    -Thanks,
    Ankit Kumar

  • Launching multiple interface at one time

    Can we launch multiple interface at one go? I have scenario .In that scenario I have created a package and defined the multiple stages. After the completion of one stage next step will be launched. In one step I have to populate 5 tables for different kind of validation and transformation and after successful validation I have to do next processing. For this I have to create 5 different interfaces. But I don’t want to run these 5 interface one by one .I want to do it in parallel. Can I achieve this?
    Regards,
    Vineet

    Hi,
    I couldn't see this option at diagram. Could you, please, give more details about how to put "multiples" next steps? I could use just one. (what ODI version are you?)
    In the way that I know, you need to generate scenarios of the 5 interfaces and "drag and drop" it at a package and create the flow (green line) between them.
    At each interface scenario, go to options tab, "Synchronous/Asynchronous" option and choose Asynchronous.
    This will start the interfaces at parallel.

Maybe you are looking for

  • Songs won't continuous play in playlist on itunes, Please Help!!

    Just recently when I try to play my music on my computer on itunes it won't continuous play in my playlists. Just one song at a time. I cannot figure it out. Can anyone help? Any suggestions?

  • Icons not appearing - is this normal?

    I'm in stage 3 at the moment (have been for 26 hours...) and in my iTunes Music screen I have no cloud icons next to any songs.  I added the column "iCloud Status" and there it says either Matched, Uploaded, or Waiting, but no icons.  Is this normal?

  • Creating contract with service line items

    Hi, My requirement is to create contract with multiple service line item. The issue is my system is ECC5 so i don't have BAPIS like BAPI_CONTRACT_CREATE or BAPI_SERVICE_CREATE .How do we achieve this without writing a bdc. Do we have any equivalent b

  • SAP INSTALLATION SCREEN SHOTS

    hi, can i get the screen shots and software requirements for SAP ECC6.0 Installation.

  • ZONE configuration steps in solaris 10

    Hi Please help me to setup the zone configuration in solaris10 Thanks Abi................................