Interfaces: Optional Operations

Sometimes, reading interfaces' API's, I see "optional operations" next to some methods. Does that mean that one can actually not implement such a method and yet it would compile, or only that the implemented method can do whatever the programmer wants it to do, and yet the implementation would be considered good one?
If the first take, that is that the implementation can be omitted, how does one set methods optional while writing an interface (i.e., is there a reserved word for that)?
Thanks Ori

It means that an implementation can literally consist solely of throw new UnsupportedOperationException();

Similar Messages

  • System Options Operating Unit is Blank in Accounting Tab

    Hi,
    I get System Options Operating Unit Blank in Accounting Tab in Oracle Receivables. I have set the profile value ok.
    Please help me how to get Operatin Unit.
    Regard's
    HNP

    Hi,
    No I have not run Replicate Seed Data program from System admin early.But when I try to run, it's ask for parameters for operating Unit.When I select LOV from parameters for operating Unit it's give error No entries found for List of Values.
    Please guide me to solve the problem.
    Thank's
    Regard's
    HNP

  • Setting persistent interface options not availible in preferences.

    Hello,
    I'm looking for the proper place (file(s) to edit) to add customized network interface options which will be applied at boot up and anytime there are network location (kicker) change.
    I need to assign en0 a non default metric upon system boot and any time the interface may be reset. I can do this with "ifconfig en0 metric 100" but am looking for where I can automate this without requiring the client to type it in each time it is required.
    All machines are 10.5.x or 10.6.x.
    Thanks for your help,
    greg

    Insofar as system boot is concerned, you could create a launchd.plist file to do this and put it in /Library/LaunchDaemons/. Here is a draft plist that might do this -- in other words, I copied one of mine and made a couple of quick text edits so this may or may not work. But it should get you going down the right path.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
    "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>metric</string>
    <key>Disabled</key>
    <false/>
    <key>ProgramArguments</key>
    <array>
    <string>/sbin/ifconfig</string>
    <string>en0</string>
    <string>metric</string>
    <string>100</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    </dict>
    </plist>
    You may be able to use something like the "watchpaths" key if something in a file or directory someplace changes when the interface may be reset. That would add another key like
    <key>WatchPaths</key>
    <array>
    <string>/path/to/file/or/directory/to/watch</string>
    </array>
    Do a man launchd and man launchd.plist to read more about how to create launchd jobs. Also, look at how Apple has done some of theirs: /System/Library/LaunchDaemons/com.apple.periodic-daily.plist, for example.

  • This advertised application will not be installed because it might be unsafe. Contact your administrator to change the installation user interface option of the package to basic.

    Hi there,
    I was wondering whether anyone could tell me which feature in Windows 7 produces this message "This advertised application will not be installed because it might be unsafe. Contact your administrator to change the installation user interface option of
    the package to basic." and whether it can be turned off in Windows to prevent this message from appearing when installing certain programs that aren't WHQL certified. At first I thought it was the UAC control that generated this message but found out
    that it wasn't and then thought it was the DEP control and found out that it wasn't this either. I'm only seem to be getting this message when installing FileDirector Component Service Version 3 on a few of our workstations which is an add-on that allows file
    integration with Office and is part of FileDirector WinClient Version 3.
    Your help would be much appreciated.
    Many thanks,
    RocknRollTim
    P.S. I know of a way to bypass this message but would ideally not like to have the feature turned on and for the message not to be appear for non WHQL certified program installations in order to make non WHQL certified program installations in the future much
    easier, more simpler and straightforward to carry out. I was redirected by a moderator off the Microsoft Community Forum.

    Hi,
    You can try following options to disable this prompt, but we don't recommend you to do so since this feature helps you to protect your computer.
    Option 1: Run command as admin:
    bcdedit -set loadoptions DDISABLE_INTEGRITY_CHECKS
    bcdedit -set TESTSIGNING ON
    Restart your computer to apply changes.
    Option 2: Disable in GPO:
    1.Type gpedit.msc in the Run dialog and press Enter.
    2.In the Group Policy Editor, navigate to User Configuration → Administrative Templates → System → Driver Installation.
    3.Double-click on Code signing for device drivers in the right-side pane as shown above.
    4.In the windows that opens, choose Enabled. In the Options, choose Ignore as shown. Then click on the OK button to save the settings.
    Restart your computer to apply changes.
    Kate Li
    TechNet Community Support
    Unmarked as Answer based on OP's request. 
    https://social.technet.microsoft.com/Forums/en-US/35ab1279-c3a1-46be-9f7d-45e8606c1410/this-advertised-application-will-not-be-installed-because-it-might-be-unsafe-contact-your?forum=w7itproappcompat
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

  • Audio interface options.... impending crisis?

    this is probably of interest to many pro audio people.
    I just noticed that the new macbookpro does not have firewire 800, only firewire 400. given that this machine is obviously a pro machine (the name is a giveaway) which would normally have implied including firewire 800, this doesn't bode well for the future of the inclusion of high end firewire..
    given the paucity of options for audio hardware in the PCI-express world, and the fact that firewire 800 is currently the best option in the absence of PCI, it looks like we are truly headed for a drought in pro audio interface options until new cards and boxes start rolling out. IMO, this is not the greatest of situations.
    opinions?

    Check Harmony Central every day.
    http://www.harmony-central.com
    The Winter NAMM convention is in a week and a half and there should be lots of announcements from audio interface manufacturers about how they're going to stay compatible with Intel on Mac.
    The MacBook Pro has a card slot that could host future SATA and FireWire 800 interfaces from third parties. Some are on the market already, so the question would be driver support.

  • User Interface option not shown

    Just installed Adobe Creative Cloud ->Flash Professional CS6 --My question is, I'm trying to change the user interface to dark grey. the program installed in white. When I go to Edit->Preferences->General there is no "user interface" option. Anyone know how to fix this?

    Hi,
    You can install any CC application if you have a valid creative cloud subscription. Please try the following
    1. Install Adobe Creative Cloud desktop application from https://creative.adobe.com/products/creative-cloud
    2. Login with your Creative Cloud credentials
    3. Click on the Apps section where you will see the list of cc products for installation under FIND NEW APPS category
    4. You should find Flash Professional CC and Mobile Device Packaging for installation
    Thanks!
    Mohan

  • Optional Operations

    Suppose I have an abstract class
    public abstract class Foo {
        public abstract void bar();
    }What is the correct way to make bar() an optional operation, similar to the add() methods in AbstractList class? (read: "How is this done is AbstractList?).
    Thanks in advance.

    What is the correct way to make bar() an optional
    operation, similar to the add() methods in
    AbstractList class? (read: "How is this done is
    AbstractList?).I did not think add() was optional but here is an optional method from the AbstractList class (copied from its source code):
        public Object set(int index, Object element) {
         throw new UnsupportedOperationException();
        }The idea is that the default method throws an Exception; therefore, if the implementing class does not override the method then it is unusable.

  • The cpu interface option

    Hi!
    I have a MSI K7N2 Delta ILSR mainboard with a AMD Athlon XP 3200+ cpu installed. This cpu runs with 400Mhz fsb and the mainboard bios is the latest version (7.8). I also have 2x 256Mb TwinMos DDR running in dual channel mode with the timings 2.5-3-3-8. Nothing is overclocked and everything is working fine.
    What I would like to know is what the "cpu interface" option in the bios really does. It can be set to "normal" or "high performance". When is set to high performance, testing with sisoft sandra 2005 shows an increase in the memory bandwidth and the results with 3dmark2003 are also higher. Is this some sort of overclock? If so, what does it change? Does it have long term consequences or can it damage anything?

    These are the benchmark results:
    Normal settings:
    -system performance: auto
    -cpu fsb clock: 200Mhz
    -cpu interface: normal
    -fsb/dram ratio: by spd
    -current dram clock: 200Mhz
    -memory timings: by spd
    -t-ras: 8
    -t-rcd: 3
    -t-rp: 3
    -cas latency: 2.5
    results:
    Sandra 2005:
    Cache & memory benchmark:
    Combined Index : 4273 MB/s
    Speed Factor : 14.0
    2kB Blocks : 18752 MB/s
    4kB Blocks : 19737 MB/s
    8kB Blocks : 20245 MB/s
    16kB Blocks : 16395 MB/s
    32kB Blocks : 13564 MB/s
    64kB Blocks : 12682 MB/s
    128kB Blocks : 8311 MB/s
    256kB Blocks : 6853 MB/s
    512kB Blocks : 6800 MB/s
    1MB Blocks : 1459 MB/s
    4MB Blocks : 1445 MB/s
    16MB Blocks : 1450 MB/s
    64MB Blocks : 1448 MB/s
    256MB Blocks : 1442 MB/s
    Memory bandwidth benchmark:
    RAM Bandwidth Int Buff'd aEMMX/aSSE : 2801 MB/s
    RAM Bandwidth Float Buff'd aEMMX/aSSE : 2624 MB/s
    Int Buff'd aEMMX/aSSE (Integer STREAM) Results Breakdown
    Assignment : 2803MB/s
    Scaling : 2798MB/s
    Addition : 2796MB/s
    Triad : 2810MB/s
    Data Item Size : 8 byte(s)
    Buffering Used : Yes
    Offset Displacement Used : Yes
    Bandwidth Efficiency : 88% (estimated)
    Float Buff'd aEMMX/aSSE (Float STREAM) Results Breakdown
    Assignment : 2797MB/s
    Scaling : 2630MB/s
    Addition : 2555MB/s
    Triad : 2516MB/s
    Data Item Size : 8 byte(s)
    Buffering Used : Yes
    Offset Displacement Used : Yes
    Bandwidth Efficiency : 82% (estimated)
    Everest:
    Reading: 2753
    Write: 1099
    3dmark03:
    3DMark Score   7816 3DMarks
    GT1 - Wings of Fury   191,9 FPS
    GT2 - Battle of Proxycon   60,7 FPS
    GT3 - Troll's Lair   50,1 FPS
    GT4 - Mother Nature   46,8 FPS
    CPU Score   701 CPUMarks
    CPU Test 1   78,4 FPS
    CPU Test 2   12,4 FPS
    Fill Rate (Single-Texturing)   1637,9 MTexels/s
    Fill Rate (Multi-Texturing)   3905,3 MTexels/s
    Vertex Shader   22,2 FPS
    Pixel Shader 2.0   125,2 FPS
    Ragtroll   33,6 FPS
    No sounds   42,0 FPS
    24 sounds   37,6 FPS
    60 sounds   35,4 FPS
    High performance settings:
    -system performance: high performance
    -cpu fsb clock: 200Mhz
    -cpu interface: high performance
    -fsb/dram ratio: auto
    -current dram clock: auto
    -memory timings: high performance
    -t-ras: 8
    -t-rcd: 3
    -t-rp: 3
    -cas latency: 2.5
    results:
    Sandra 2005:
    Cache & memory benchmark:
    Combined Index : 4351 MB/s
    Speed Factor : 13.5
    2kB Blocks : 18641 MB/s
    4kB Blocks : 19727 MB/s
    8kB Blocks : 20255 MB/s
    16kB Blocks : 16401 MB/s
    32kB Blocks : 13568 MB/s
    64kB Blocks : 12659 MB/s
    128kB Blocks : 8326 MB/s
    256kB Blocks : 6865 MB/s
    512kB Blocks : 6819 MB/s
    1MB Blocks : 1511 MB/s
    4MB Blocks : 1500 MB/s
    16MB Blocks : 1497 MB/s
    64MB Blocks : 1497 MB/s
    256MB Blocks : 1497 MB/s
    Memory bandwidth benchmark:
    RAM Bandwidth Int Buff'd aEMMX/aSSE : 3009 MB/s
    RAM Bandwidth Float Buff'd aEMMX/aSSE : 2811 MB/s
    Int Buff'd aEMMX/aSSE (Integer STREAM) Results Breakdown
    Assignment : 3024MB/s
    Scaling : 3023MB/s
    Addition : 2989MB/s
    Triad : 3002MB/s
    Data Item Size : 8 byte(s)
    Buffering Used : Yes
    Offset Displacement Used : Yes
    Bandwidth Efficiency : 94% (estimated)
    Float Buff'd aEMMX/aSSE (Float STREAM) Results Breakdown
    Assignment : 3023MB/s
    Scaling : 2834MB/s
    Addition : 2710MB/s
    Triad : 2677MB/s
    Data Item Size : 8 byte(s)
    Buffering Used : Yes
    Offset Displacement Used : Yes
    Bandwidth Efficiency : 88% (estimated)
    Everest:
    Reading: 3033
    Writing: 1150
    3dmark03
    3DMark Score   7877 3DMarks
    GT1 - Wings of Fury   195,7 FPS
    GT2 - Battle of Proxycon   60,8 FPS
    GT3 - Troll's Lair   50,3 FPS
    GT4 - Mother Nature   47,4 FPS
    CPU Score   718 CPUMarks
    CPU Test 1   80,5 FPS
    CPU Test 2   12,7 FPS
    Fill Rate (Single-Texturing)   1637,5 MTexels/s
    Fill Rate (Multi-Texturing)   3905,3 MTexels/s
    Vertex Shader   22,2 FPS
    Pixel Shader 2.0   125,2 FPS
    Ragtroll   33,8 FPS
    No sounds   43,8 FPS
    24 sounds   39,9 FPS
    60 sounds   37,0 FPS
    As you can see, the computer is faster with this option set to high performance... But I just can't figure out what it changes. All the timings seem to remain the same...

  • RFC start on explicit host - fast sync interface options to iSeries

    Hi all,
    Sorry if this is going to be a bit long..
    Back on my old stomping grounds, times change, so do backend systems, we're now running SAP on Unix/Oracle with iseries SAP systems being phased out. This also meant that I moved from hardcore as400 techie to a more intermediate figure between application and real basis. Oh well.
    I have an interesting situation though. We need to establish an ATP check interface between Unix/Oracle CRM 5.0 and our legacy iseries application. ATP check is basically checking if stock is present for a customer order. The check is performed during ordering so it should be realtime and fast.
    A number of people with more money than knowledge decided the best bet was to implement a biztalk webservice between CRM and iseries. The webservice would call a stored procedure via jdbc. It'll work I'm convinced.
    We have been given until monday to come up with a good alternative (which basically means the weekend..)
    From an infrastructure point of view I do not want this at all for several reasons.
    Our main applications are SAP and legacy as400 with SAP XI in the middle, so at least if we use a intermediate system we should use XI. Introducing a new platform is foolish and bad for maintenance and support
    Since the interface should be lean and mean I'm thinking maybe bypass XI as well. Basically these are the options for this interface:
    1: CRM HTTP (RFC) to XI to as400 stored procedure
    2: CRM HTTP (RFC) to XI to apache webserver
    3: CRM HTTP RFC directly to iseries apache webserver
    option 2 could be useful if we have to do a lot of mapping in the interface (which I do not expect)
    Apache webservers call a iseries program which will (probably) send back back a XML with the stock info
    Then I looked into my old iseries on as400 redbook and found these two further options:
    4: Using a CPI-C connection from CRM to iseries for direct program call (SG244672 12.7.1)
    5: using a RFC connection from CRM to iseries for direct program call (SG244672 12.7.2)
    I'm not too familiar with cpi-c so I investigated the RFC option a bit. The tests I have done sofar have either failed because of firewall issues or because this option is not supported in certain system implementations (SAP on iseries 46d does not allow it
    The one issue I'm not certain about yet is whether the receiving iseries system needs a SAP gateway. Since it is completely legacy at the moment it has no SAP components at all. If I would have to install a SAP gateway for this I'm not sure if we're still lean and mean.
    So questions: is there any experience with option 5 to iseries? If option 5 does not seem feasible I'll probably advice to go to option 3, we have some experience with that and will also definitely work.
    Any other comments on these infrasructure scenario's are very welcome too!
    Thanks
    Tom
    Edited by: Tom van Rooyen on Apr 24, 2010 4:28 AM
    Edited by: Volker Gueldenpfennig on Apr 24, 2010 11:10 AM

    Hi Tom,
    tja, what shall we say ?
    if you are really interested in a VERY fast and "rock-stable" solution, RFC should be your friend ))
    We are having lots of eperience with your "option 5" ...
    We even support that
    You can have a look at:
    http://www.consolut.net/en/s/download/contool.html
    There are tools available, that could help you ... and they do work ... but I think, there is no documentation attached to that ...
    The biggest issue in my eyes is your timeframe and the current weekend ...
    We could definetely help you here and make it to a fast and reliable solution ...
    Regards
    Volker Gueldenpfennig, consolut international ag
    http://www.consolut.net - http://www.4soi.de - http://www.easymarketplace.de

  • Optional operations on extended data type

    Hello everyone,
    I am currently working on a project where I have to read data from either a database or a file and depending on how much information is available different statistics will be computed.
    Currently I have two data types MyRecord and ExtendedMyRecord which are both interfaces and provide getter methods to retrieve the data. ExtendedMyRecord extends MyRecord. For both interfaces there is a default implementation.
    The first thing the application does is it loads records from the database - whcih in most cases are MyRecord objects. Afterwards statistics are calculated for the whole set of records.
    In case all records are of type ExtendedMyRecord additional operations may be performed.
    However what got me thinking is that MyRecord currently has three fields and ExtendedMyRecord has 6 fields. In the current architecture I have to create new classes and interfaces in case I ever have to extend the number of fields in the database (or I would have to change one of the interfaces and put the additional fields there and change all code using them).
    Does it make more sense to provide a boolean operation isAvailable() which can be used to determine whether a particular field was available for a certain record or is the design I currently use - where I check using instanceof - the better approach?
    Any ideas?
    Kind Regards,
    snowbird

    The first thing the application does is it loads
    records from the database - whcih in most cases are
    MyRecord objects. Afterwards statistics are
    calculated for the whole set of records.
    In case all records are of type ExtendedMyRecord
    additional operations may be performed.That description doesn't sound good to me.
    Database operations require three things
    1. Functionality to access the database.
    2. Data specific to the database (like a connection)
    3. Data specific to the application (like a customer name which might be stored in a record in the database.)
    Your description sounds like you are mixing 1 and 3 (and perhaps throwing 2 in as well.)
    That is always wrong. Because only the database layer should have 1 and 2. 3 is entirely seperate from 1 and 2 and should be kept that way.
    Keeping it seperate leads to the following type of structures....
    - Customer, has the name, account, etc.
    - CustomerCollection, contains a list of Customer.
    - CustomerDao, this takes a Customer and stores it, updates it, etc. It also has queries that creates CustomerCollection.
    There are variations on the above where there might be more classes for each of the above. But in all cases Customer is never a "record".
    In Java Blueprints, the Customer record about would be a Transfer Object (or Data Transfer Object) and CustomerDao would be a Data Access Object.

  • Cisco Wireless AP radio interface shutdown/Operation Status Down

    Hi,
    I am trying to troubleshoot the cause of the wireless AP 1142 radio shutdown; I was wondering where may be a good place to start on it/possibility of the radio shutting down. Once the radio is shown as down; I would just need to re-enable (disable/enable) it and the status changes to up status. I have attached a screen catpure of the radio interface showning down.
    The AP radios shutting down is intermittent; some APs has their "A/N" radio interface shutdown while others has their "G/N" radio interface shutdown. Not too sure what may most likely be causing it to shutdown?
    Any input is appreciated.
    Thanks.

    Do you have controller ?? if yes then posts out put of sh sysinfo commad.
    Paste the output of sh version command from AP.
    Also check: 
    1. Choose Wireless > 802.11a/n or 802.11b/g/n > Network
    Select the 802.11a (or 802.11b/g) Network Status check box to enable the 802.11a or 802.11b/g band.
    2. Wireless > Access Points > All APs then click on specific AP and make sure admin status is enable.
    Reagrds

  • Firmware update with black menu interface option?

    Hello folks and Apple people,
    I purchased my black 30gb iPod a few weeks ago, and it's cool except for the fact anything that comes in contact with the casing scratches it. A little disappointed in that but from what I gather the only thing to resolve the issue has been to put the soft white case in with each model (which also scratches the acrylic) :-/
    Anyway, my main question is one that I think others would be interested to know about. Are Apple going to release a version of the software for this iPod that permits me to change the menus from a white background to a black one with white text? It looks a little out of place with such a cool black unit, and a black user interface would seriously rock.
    I can only hope!
    Athlon 64 3500+   Windows XP Pro   Waiting to buy my first Intel Mac as soon as they come out!!

    Sounds cool, but it would probably look goofy and hard to see the album art. But i do like the idea of being able to change background and menu colors.

  • Interface options

    I'm trying to figure out a way to interface online the SAP R/3 with an external non-SAP system. For example when a shipment is created in the R/3 environment, it is suppose to create the same shipment in an external system immediately. Which solution do you think it's best to use, IDOC, Badi, other...
      Thanks in advance.

    Hi keerthi,
    I also think the bapi approch would be more interesting. Could you me point me out (high level), what would be the steps to do this? I'm guessing:
    - use an exit called in the shipment creation
    - define rfc connection (tcode - sm59), to target system
    I'm not so sure of the next steps... how do i create de bapi to communicate and send the data to the target system ?
    Thanks a lot

  • "With Xib for user interface" option Disabled

    I was able to use the "With Xib for user interface" a couple of days ago but now when I try to create new object-c file with xib interface, I cant use the checkbox. It is disabled. What may be the problem? How can I create a file with xib again?

    Does the following Stack Overflow question help you?
    How to create new View Controllers in XCode 4.3
    If not, you're going to have provide more information for anyone to help you. What version of Xcode are you using? What type of Objective-C file are you creating? What type of project are you adding the file to?

  • Interface options to allow user to download attachments

    I am adding the capability to my web-based e-mail application to aloow users to get their attachments when the read their messages. I can find the attachments fine, I can save them to the local filesystem fine, I can also store them in my database (mySQL) fine, but I have a design issue.
    What is the "best' way to allow the user to GET their attachments?
    Any ideas or help would be appreciated.
    Bob

    you can probably do it through a squirrelmail plugin, but the mail password should be the same as the account's OD password, unless you've configured mail to run off a separate directory or local user list.

Maybe you are looking for