Creating a API: questions

We want to deliver an api and a library. The users may only see the relevant things in the javadoc that we deliver, and use that relevant things (since many classes do things that are too difficult, and are inherent to changes).
how can we achieve this?

If the class is public, client code will be able to instantiate it.
You can prevent this to some extent by declaring classes or methods as something other than public (private, protected or default access), but then the same restrictions will apply to your own code.
If the design of your application/library is sound, you should be able to separate the interface (in the API sense of the word) of your library from the implementation, even to the point of having two separate jars (one with the API, one with the implementation).
Your "end users" should then be able to work with the just the API jar during development and only use the implementation jar at runtime.

Similar Messages

  • How to create an API java with Netbeans???

    can you please help me on creating an api with netbeans and explaine me how can i make it communicate with existing platforms.thank's

    First please learn how to ask a reasonable question that is both answerable and framed in a way that someone here would want to answer it: [How To Ask Questions The Smart Way|http://www.catb.org/~esr/faqs/smart-questions.html]

  • Ask for Tips to split a receipt (creating though API)

    Hello,
    I am currently having an issue with a certain receipt ( which is created by API )..
    I guess the issue caused from a great number of lines it holds ...up to more than 18000 lines
    so I might need to change the way receitp created.
    as it is.. 1 Receipt with 18000 lines
    To be ... several receipt with splited 18000 lines. ( I think it's ideal for this case )
    however , I'm not really familiar with EBS .
    It would be nice to have tips or pointers..
    thanks in advance

    This is a user-to-user technical support forum. You're not addressing Apple here. If you're having an issue with Apple Technical support, I'd suggest calling them back and asking for a supervisor.
    You can also use the feedback link:
    http://www.apple.com/feedback
    You're also welcome to ask your technical support question here. Perhaps someone can help.

  • Am being prompted to enter security questions when making a purchase on my new IPad.  I don't believe I have ever setup security questions on my apple id.  How to I create new security questions?

    I am being prompted to enter security questions when making a purchase on my new IPad.  I don't believe I have ever setup security questions on my apple id.  I have tried logging into my apple id and have chosen the security and priviacy settings to set up security questions.  However I am prompted to enter answers to security questions and am told they don't match.  How to I create new security questions or reset them? 

    You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (104011)

  • How can I create a new Question thread?

    How to create a new "Question Thread" regarding the account payment ?

    Hello MotionBoy,
    There are two ways to go about creating a new thread to run a step.  The first is to create a new sequence, into which you put the LabVIEW step you want to run and any other steps that may go along with it.  Then use a sequence call step to call this newly created sequence.  Set the Execution Options of the Sequence call step to 'Use New Thread.'  This will allow you to run a set of steps in a new thread, not just a VI.  The second method, which is only available for a LabVIEW VI, is to use the “Run VI Asynchronously” step.  This can be accessed if you right-click within your sequence and select Insert Step » LabVIEW Utility » Run VI Asynchronously.  This step will allow you to call a VI and have it automatically open in a new thread.  You can further customize this step by opening the configuration menu in the Step Settings.
    To address the current behavior of your steps I would like to know if the modules in steps 1 & 2 pass data between them or it would be desirable for them to do so?  If so you are going to need a more complex synchronization structure such as TestStand/LabVIEW queues. There is a simple example you may want to look at in the TestStand examples, under the Synchronization folder that demonstrates how to use queues. Otherwise the above solution should be all you need.
    John B.
    Applications Engineer
    National Instruments

  • Error while invoking Create Applicant api thru apps adapter

    Hi All,
    We are trying to invoke Create Applicant API(hr_applicant_api.create_applicant) thru apps adapter but we are getting below error message - (we are using ebs 12.1.1 and soa 11.1.1.3)
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'PFCCreateIRCApplicantEbizAPI' failed due to: Stored procedure invocation error. Error while trying to prepare and execute the APPS.XX_BPEL_PFCCREATEIRCAPPLICANTE.HR_APPLICANT_API$CREATE_APPLI API. An error occurred while preparing and executing the APPS.XX_BPEL_PFCCREATEIRCAPPLICANTE.HR_APPLICANT_API$CREATE_APPLI API. Cause: java.sql.SQLException: ORA-20001: PER_????_PER_INV_COR_LANG ORA-06512: at "APPS.HR_APPLICANT_API", line 867 ORA-06512: at "APPS.XX_BPEL_PFCCREATEIRCAPPLICANTE", line 136 ORA-06512: at line 1 ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. </summary></part><part name="detail"><detail>ORA-20001: PER_????_PER_INV_COR_LANG ORA-06512: at "APPS.HR_APPLICANT_API", line 867 ORA-06512: at "APPS.XX_BPEL_PFCCREATEIRCAPPLICANTE", line 136 ORA-06512: at line 1
    below is the input to api -
    <db:P_DATE_RECEIVED>
    2011-10-10T00:00:00.000+05:30
    </db:P_DATE_RECEIVED>
    <db:P_BUSINESS_GROUP_ID>
    1994
    </db:P_BUSINESS_GROUP_ID>
    <db:P_LAST_NAME>
    Alam
    </db:P_LAST_NAME>
    <db:P_PERSON_TYPE_ID>
    6252
    </db:P_PERSON_TYPE_ID>
    <db:P_PER_COMMENTS/>
    <db:P_DATE_OF_BIRTH>
    1981-01-01T00:00:00.000+05:30
    </db:P_DATE_OF_BIRTH>
    <db:P_EMAIL_ADDRESS>
    [email protected]
    </db:P_EMAIL_ADDRESS>
    <db:P_EXPENSE_CHECK_SEND_TO_ADDRES>
    </db:P_EXPENSE_CHECK_SEND_TO_ADDRES>
    <db:P_FIRST_NAME>
    Irfan
    </db:P_FIRST_NAME>
    <db:P_MARITAL_STATUS>
    S
    </db:P_MARITAL_STATUS>
    <db:P_MIDDLE_NAMES/>
    <db:P_NATIONAL_IDENTIFIER>
    </db:P_NATIONAL_IDENTIFIER>
    <db:P_PREVIOUS_LAST_NAME>
    </db:P_PREVIOUS_LAST_NAME>
    <db:P_SEX>
    M
    </db:P_SEX>
    <db:P_TITLE>
    Mr
    </db:P_TITLE>
    <db:P_WORK_TELEPHONE/>
    <db:P_PER_INFORMATION_CATEGORY>
    AE
    </db:P_PER_INFORMATION_CATEGORY>
    <db:P_PER_INFORMATION18>
    205
    </db:P_PER_INFORMATION18>
    <db:P_BACKGROUND_CHECK_STATUS>
    </db:P_BACKGROUND_CHECK_STATUS>
    <db:P_BACKGROUND_DATE_CHECK/>
    <db:P_CORRESPONDENCE_LANGUAGE>
    English
    </db:P_CORRESPONDENCE_LANGUAGE>
    <db:P_HOLD_APPLICANT_DATE_UNTIL/>
    <db:P_MAILSTOP>
    </db:P_MAILSTOP>
    <db:P_OFFICE_NUMBER/>
    <db:P_RESUME_EXISTS>
    Y
    </db:P_RESUME_EXISTS>
    <db:P_RESUME_LAST_UPDATED>
    0011-09-28T00:00:00.000+05:30
    </db:P_RESUME_LAST_UPDATED>
    <db:P_STUDENT_STATUS/>
    <db:P_WORK_SCHEDULE>
    </db:P_WORK_SCHEDULE>
    <db:P_TOWN_OF_BIRTH/>
    <db:P_REGION_OF_BIRTH>
    </db:P_REGION_OF_BIRTH>
    <db:P_COUNTRY_OF_BIRTH/>
    Thanks in Advance,
    Rakesh.

    > 2009-05-29 12:17:55 Error Adapter Framework caught exception: null
    > 2009-05-29 12:17:55 Error Delivering the message to the application using connection SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException.
    This is a generic error message which does not have any information about the error which has occurred.
    Do you see any error messages in the SOAP client?
    Regards
    Stefan

  • Task Does not get triggered when User is created through API

    Hi,
    Each new user in our OIM environment is supposed to have a iPlanet account. I have configured the access policy for the same and it works.There is also a process task which needs to be triggered once the user is successfully created in the DS. Following is my issue:
    1.When the new user is created through the admin console, the user is provisioned successfully to DS as well because of the access policy and the task also gets triggered successfully.
    2. There is an approval workflow for another resource, at the end of which a user needs to be created through APIs in OIM. The user gets created successfully in OIM and also get provisionined to DS just like in the above use case. However, the task fails in this case. I see that the task is being triggered from the user's resource profile, but the status is rejected.
    Can someone please tell me why is this happening. I initially though there was some issue with my adapter for the task, but in case 1 it works just fine.
    Following is the exception I get as soon as the iPlanet connector finishes creating the user in DS:
    java.lang.ClassCastException: java.lang.String
    at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpSETFIELDSONUSERCREATE.implementation(adpSETFIELDSONUSERCREATE.java:51)
    at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
    Thanks,
    Supreetha

    Hi,
    Have you checked the process data that you are passing to this adapter and check the mapping of process data to the adapter variable. Try to log the value which you get from process data. I got this error when I was trying to use the literal value from process data as "true" for a boolean value. This is a bug. This value is not actually a boolean value. It threw me error too sometimes back. Either you pass the boolean value from adaptor factory as a literal value or change the type boolean both in your code and the adapter.
    OIM works strangely. ;) All the best,
    Manila

  • By API action, how can I get the list of user IDs within a specific group  (which is created by API) ?

    By API action, how can I get the list of user IDs within a
    specific group (which is created by API) ?
    or How can I get the group (which is I create by API) ID to
    which a specific user belong by API action?
    Thanks
    Alex

    The poster already posted at the Acrobat Users Community, Interactive Forms that sums up a client order from catalog. The sample form posted to Acrobat.com was a revision of the sample form that came with Acrobat 4.0. There are some fairly advance scripts, templates, and document level functions involved with this form.

  • Cant create an API app (365 connector or MS SQL connector)

    I am trying to create some API apps but when i go through the process for O365 connector as follows nothing gets created.
    Click the +(bottom left)
    Click "Web + Mobile"
    click marketplace
    Click on "API Apps" on left hand side 
    click "create" on the office 365 connector banner
    select app service plan
    click create 
    it shows some dots '......." as if its doing something and then back to the Office 365 connector configuration screen except this time the Create button is grayed out and no matter what I do the create button never comes back to life. 
    Also not connector is created or shows up in my list of API apps. I've tried making new service plans in different resource group, changing the name around but nothing seems to make creation of the connector go through. 
    Same exact thing happens with the MS SQL connector but the settings are obviously different. End result no api app is created. 
    Anyone experiencing this or know how to resolve it?

    Hi Rice,
    A lot of work was done to improve reliability of the preview since launch. Can I recommend that you try again, ideally in a new App Service plan? We appreciate you sticking with us - we're keen to get bits into people's hands as soon as possible to get early
    feedback on product direction. In this case that meant a small %age of customers saw some rough edges, our apologies for this.
    Let me know how you get on.
    Josh
    http://twitter.com/joshtwist

  • Creating an API

    Hi Experts,
    I need to know the process/steps that is involved in creating an API.
    We are loading data from Informatica into BW and are planning to create a "trigger" file at the end of each informatica load.We have to create an API that looks for these trigger file's and then raise the "Start" function in the BW process chains.
    Thanks
    Aravind Pattabiraman

    Hi,
    chk the links below on API
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/e2dc189770719ce10000000a1553f6/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b1089290-0201-0010-288c-98e4d26487ee
    Remya

  • How can I create a matrix question? Specifically, I need a question in table format that allows each respondent to list a number of events and then data for each event (date, location, number of participants, topics covered, etc.

    How can I create a matrix question? Specifically, I need a question in table format that allows each respondent to list a number of events and then data for each event (date, location, number of participants, topics covered, etc.

    Hi,
    Sorry, we do not support a matrix-question field.   Please try the multilines text field (where your participant can enter multiple lines in the input text box) and see if it works for you.
    Thanks,
    Lucia

  • Tips for creating quizzes and questions

    This question was posted in response to the following article: http://help.adobe.com/en_US/presenter/using/WS1C0CA4CD-0EE9-42af-9D7C-FF810A4128A7.html

    When I create a quiz question, the feedback and correct/incorrect messages default with a very unattractive fill color. It will distract the learners. How can I correct this? This color is not showing up in Themes or in the Quiz Appearance pane.

  • I am being forced to create 3 security question from your dropdown list and I can choose the questions but can't enter anything in the answer field??

    I am being forced to create 3 security question from your dropdown list and I can choose the questions but can't enter anything in the answer field??

    The problem is twenty three people leaving or twenty three thousand leaving has zero impact on a carrier with over 100 million customers. And they have the lowest churn rate. So if 10,000 or 20,000 or more churn out it means little to the carrier.
    If you have a real lawyer he/she will advise you that you have no case. The device was not lost or stolen by the carrier, you were not eligible for a new device, and like any business who employs large numbers of poorly trained personnel who make low wages what was told to you is not in writing. So a verbal exchange does not hold up.
    In fact in Verizon's customer agreement it has such a disclaimer against any verbal exchanges so if you have that agreement in writing, go get them.
    The posting on public forums and places like Face Book, Linkin, Google+ or a personal web site can open you up to a lawsuit for Dilution of Trade Name, and other offences. However if you have proof then go for it.
    Unfortunately that is how big business works today. A pity

  • When I enter my password to purchase a song, I need to create new security questions. Whenever I finish making thm and submit them, a box says "An error has occurred. We could not save your changes." How do I make it go away?

    When I enter my password to purchase a song, I need to create new security questions. When I finish writing them out and I hit submit, a box comes up with the words: "An error has occurred. We could not save your changes." What does that mean and how do I make it go away?

    Potentially the issue may be the combination of actual distance and the presence of any Wi-Fi interference at the location of the AirPort Express that may be the culprit here. The bottom line is you would want the Express to be within a 25+ dB range of the Extreme to be sure that it can consistently stay connected to it.
    For more details on proper base station placement, check out the following AirPort User tip. Please post back your results.

  • I created my itunes account YEARS ago!! And I can't remember the answers to my security questions? Because I cannot remember the answers I cannot make purchases in the app store. Please help me create new security questions.

    I created my itunes account YEARS ago!! And I can't remember the answers to my security questions? Because I cannot remember the answers I cannot make purchases in the app store. Please help me create new security questions. Please help me.

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then you can try going to https://appleid.apple.com/and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you might see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then see if this user tip helps you get the questions reset :https://discussions.apple.com/docs/DOC-4551
    e.g. you can try contacting iTunes Support :http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then try Apple ID Account Security
    or try ringing the number for Apple  in your country and ask to talk to the Account Security Team : http://support.apple.com/kb/HE57

Maybe you are looking for

  • Help needed in query friends

    Hi, I have a table with Data as follows countryname id - name - Date 1 - argentina - 11/28/2006 12:53:21 PM 2 - alabnia - 12/01/2006 10:00:21 PM 3 - us - 12/01/2006 05:00:21 PM 4 - france - 12/02/2006 04:00:21 PM 5 - canada - 12/03/2006 03:00:21 PM 6

  • Aspect Ratio - Black Bars Left and Right on Widescreen TV

    Hi - I have downloaded a couple of TV series to my laptop PC using ITunes. These playback on my laptop screen filling the screen. I got an Apple TV yesterday, synced it with my Laptop ITunes library and there are black bars on either side of my 1080

  • Internal Reconciliation - upto a specific date in ageing receivables

    Hi! I have run the following query to produce an ageing report. However, the ageing shows reconciled transactions as outstanding in the ageing buckets. My query is as follows: DECLARE @D1 DATETIME SET @D1=  '1900-01-01 00:00:00.000' select T1.cardcod

  • IPod takes 5 minitues to show up in iTunes

    Ehen starting up iTunes, it takes about 5 minutes before my iPod shows up on the left side. I did a restore but that didn't help. How can I fix this problem?

  • Trouble converting a math statistic document

    Have trouble converting a scanned math statistics document. I am unable to turn off the OCR on my scanner an help