the library exposed interface. Expert Java please help.

Hi all.

Excuse my noobishness once more, but I have a design-oriented question.

I want to offer some features of other applications via library.

But want to restrict the user from this library to only a set limited features.

(1) is there a way of only a set of classes (obviously public) to be exposed to the user?

For example, let's say we have 2 classes:

public class ExposedFunctionality
{
 private HiddenFunctionality hf = new HiddenFunctionality();
 public void useMe()
 {
   // do something
 }
}

public class HiddenFunctionality
{
// ... some meat
}

(2) how to hide the HiddenFunctionality of the user of the library?

Thank you

Also, if you want higher levels of functionality, you can use the CodeSigningKey to do certain functions, classes, etc. limited. I use this to limit what applications can read data that is generated by my applications. The only thing I'd be suspicious of OS5.0 is (and I think that 4.7) If you place a CodeSigningKey on a file, even the operating system cannot read from the file and the default FileExplorer will often hang (sometimes mometarily... sometimes a few minutes) in a directory where it is a signed file.

Tags: BlackBerry Developers

Similar Questions

Maybe you are looking for

  • Set an alarm using application built-in clock that repeats every two weeks

    How to set a recurring alarm on iPad, using the clock application, that happen the same day and time, all * other * week. Must be in the "Clock" app and do not use calendar not 3rd party applications. Thank you DH

  • Firefox ESR 10.0.12 disables the flash plugin - updates to the latest version do not work?

    Suddenly - without the measures taken by me - FF ESR 10.0.12 refuses to accept Adobe Flash? (System Win 7 Ultimate 64)It started with a very boring bar, which cost me 2 hours to turn it off, which told me to update a plugin from Adobe Reader very old

  • Mouse/trackpad problem

    I've updated my new macbook el Captain update (not sure of the exact name) and it worked fine, but recently my trackpad just randomly stop move or leave me a click while I do anything. The whole system would be stuck on all the screen was on. The onl

  • Timed by analog material out with PXI-6733

    Hello I'm a little confused on the possibilities for the material of analog timing of release of a PXI-6733, using pulses of DIO to a separate device. I want to generate an analog voltage on the signal for synchronization from another device. Lets sa

  • Inverse of GetGraphCoordsFromPoint?

    I need to superimpose a camembert (from piechart.fp, with a transparent background) on a XY graph, with pie centered at some (x, y) coordinates on the graph. How can I programmatically obtain the coordinates of the Panel from the point (x, y) on a ch