Where to package my interfaces

It seems that the general rule to making a GUI application is to seperate the "Business Logic" from the "Presentation Logic". From this, I'm guessing I'll need to package all my GUI stuff together, and all the business logic layer stuff together.
The GUI will then talk to the Biz lay through an interface right?
This is not a single file right? Would this would be a set of interfaces all packaged together? If so, where is the most common place to package it?
Or perhaps I'm completely wrong... any suggestions appreciated, thanks!!!

It seems that the general rule to making a GUI
application is to seperate the "Business Logic" from
the "Presentation Logic". This is absolutely true.
From this, I'm guessing I'll
need to package all my GUI stuff together, and all the
business logic layer stuff together.If you mean the package names and structure then I would had adapted this structure:
1. I will have a package under which I will put the application common classes and interfaces.
com.myapp.common.eventhandler.EventHandler (interface)
com.myapp.common.eventhandler.AbstractEventHandler (default implementation)
com.myapp.common.form.Form (interface)
com.myapp.common.form.AbstractForm (default implementation)2. Create for each subject area its own package:
com.myapp.product.AddNewProductForm
com.myapp.product.AddNewProdcutEventHandler
com.myapp.sales.PriceListEeventHandler
com.myapp.sales.PriceListEeventHandler
The GUI will then talk to the Biz lay through an
interface right?As I illustrated through my previous example, you should have common interfaces and you might need to create Abstract classes that encapsulates the common implementation for these interfaces, then for each GUI Form or Web Page you will create its specific implementation class which inherits from the abstract class.
Finally if you were asking about the deployment packaging:
1. Create for each EJB its own jar file then bundle these Jar files under one module jar file, which represents the EJB module.
2.Package the web application (JSP, Servlets, HTML, Images, CSS, and Java script) in one Web module WAR file.
3. Package your client application module in its own jar file.
4. Assemble the EJB module Jar, Web module War, and Client module Jar in one J2EE package which will be an EAR file so that your whole package will be assembled in one EAR file at the end.
Try the "Application Assembly Tool" which comes with WebSphere. It will organize your application and facilitate this kind of integration.
- Sherif.

Similar Messages

  • Variable Scope at package or interface level

    Hi,
    Can we set the ODI Project variable scope to package or interface level
    because in my project im using a last rundate refresh variable this variable value will be changed at the time of execution of each package.
    Thanxs
    Madhavi

    you can create it as "Not Persistent" and then its value exist per ODI session.
    In this way, several sessions can keep independent value to the same variable.

  • Creative Cloud Enterprise: Is there a way to choose where the package temp files are downloaded?

    I am an Enterprise Admin and have to use a Windows computer to download and create different Creative Cloud packages. The temp package files first download to the C:\ (system drive) and then the actual package in the location you specified; usually on another drive/partition. I have to make the C:\ partition (by re-partitioning) much larger than normal size in order to make temp package files to fit if I don't the C:\ drive fills up and the package creation just stops/fails with no messages displayed. Could an option be made to direct where you want the the temp package files to be held such as selecting a different hard drive/partition to store them?
    I create both 32 and 64 bit CC packages.

    Hi JohnBNO,
    You can change the CC cache location. Please refer the article: http://helpx.adobe.com/creative-cloud/packager/creating-packages.html.
    Regards,
    Romit Sinha

  • Need the location where ODI scenario and interfaces are physically stored

    Hi,
    I am new to ODI and would like to know in which folder ODI stores the interfaces, packages and scenarios.
    Any document reference or details will be very helpful.
    Regards,
    User1672911

    Hi User1672911,
    ODI will store all information in metadata table in your underlying WORK repository.
    Thanks,
    Guru

  • Where to package

    hi I'm gind of new to java and I was wondering after I add a file to a package with the "package" keyword where do I put it and do I compile it?

    it was helpful but it didn't answer all my questions
    where do you put the file?You can put it wherever it is convenient, as long as the directory structure and Classpath are correct. For example, you might want to keep the .class files separate from the .java files. For a Windows machine you could create a directory c:\myjava\myclasses and c:\myjava\mysources. Then put your projects into the mysources directory. You can use the -d option of javac to compile your code into the myclasses directory. If you put c:\myjava\myclasses into your system Classpath, then everything will work.
    can you put it in the src.zip folder?I wouldn't. If you upgrade the j2sdk, then you will get a new src.zip. You can put packages into jar files.
    do you have to compile it so it will be in the
    package?By putting the package statement into the source code, it will be compiled as a packaged class. However, it must be in the correct directory structure to use the class. You can put the source into the right directory and the compiler will generate the .class file there. Or you can use the -d option of javac. Or you can manually move files to the right directory. As long as the .class file
    can you put two package statements in the same file?No. Packages are used to manage access and namespaces. A class has a fully qualified class name which is used to uniquely identify the class. The fully qualified class name is the package name plus the class name.

  • Where do packages go?

    When I need to upgrade or add a package I know what to do and how to check them. But I just tried to put in a typing tutor for my kids and I don't know where to look or how to get it working. I did pacman -S gtypist and it downloaded and installed with no problems. If I do a pacman -Q gtypist I find I have gtypist 2.7.1.  If I try to find file I find it in usr/share and the executable file is in usr/bin. But I cannot find anything on the desktop or in any menu. This may be simple but I haven't installed a small program and tried to get it running. What do I do?

    Run it from CLI.  If it's not in the menu, it's probably because it doesn't come with a *.desktop file. If that bothers you, write one for it. Use the existing ones in /usr/share/applications as templates

  • Be aware of where your packages/PKGBUILDS come from.

    A word of caution to all you Archers out there. Be careful where you get your packages from.
    It goes without saying that a package from an unknown user/entity could house harmful material. A package could install a trojan, a backdoor, or several other devious things.
    The Arch Build System is powerful, and safe if used responsibly. Responsability on the user end is key though. It would be a simple matter of building a package with a harmful post_install script embedded in it, or even an embedded keystroke logger daemon. The myriad of possabilities given that install scripts are executed as root is endless.
    So, in summation, know what you are installing. Be an educated user. Know the source of your packages/pkgbuilds. Package builds posted on the forum are generally subject to the review of the public, and thus it is likely that some user would pick up on some squirrelliness and say, "hey! that doen't look right!".
    I consider pkgbuilds safer than binaries from sources that I do not trust, because I know what is going on in the pkgbuilds and I can review it. If you do not have the experience required to feel comfortable understanding pkgbuilds, then stick with repos that you trust.
    Nothing to be alarmed about. I was just thinking about security this afternoon, and thought I would say something in the hopes that it would make even one user out there a bit safer.  8)

    I as well put filelist, patches and PKGBUILDs to my server (even though, no repo).
    Anyway, think about larger patches ... who's realy going to read them? Any of you (okay, i know it's an official package) read the visibility patch of GCC? I did, since i maintained the patched GCC for another distribution. Though, this patch just was released on mailinglists... as i know.
    I've never used any other package source than official repos and the packages i created, and i feel convenient about this.
    Anyway, it's a good idea at least to let people know about the risks. I'm also providing binary / pkgbuild / filelists / patches, but i doubt anyone read what the builds are really doing (statistic of my webserver tells that not even 20% of the people downloading binaries reviewed the PKGBUILDs, i just took a short look at this).
    // STi

  • Package restriced interfaces

    I,ve read a bit about access modifiers for interfaces. I want to define an interface restricted only to the package. I would do that by leaving out the access modifier in the interface declaration. Then I have the class implementing the interface (obviously, in the same package). Since I made the interface accessible only in the package, I would assume I would be able to also restrict the implementing methods to the package.Why am I forced to make the implemented method public?
    Thanks for your time,
    Cheers,
    Radu Cosmin

    True. This is kind of exacly my case. I want to extract that mehot (those methods) in an interface to keep the code clean, elegant an logic, but my main concern is to keep (as in your example) m() as being accessed only within the package. This is my example:
    package org.dotit.desktop;
    * This interface denotes something that can own the focus
    interface IDOTFocusOwner {
        boolean isFocusOwner();
        void setFocusOwner(boolean focus owner)
    package org.dotit.desktop;
    public class DOTComponent extends BlaBla implements IDOTFocusOwner {
        public final boolean isFocusOwner() { // ... }
        final void setFocusOwner(boolean focusOwner) { //...}
    }You understand that I wouldn't leave "setFocusOwner" accessible outsite the package, and I would still want the methods do be defined in an interface, so that
    the pseudo-focus manager that I'm implementing woul work with the interface, not the concrete class. I really don't understand their decision...seems that I have to structure my code somehow else.

  • Where is packages.txt? (Can't Install from FTP)

    Hello,
    I used to be an arch user, but gave up when I ran into a problem that I couldn't solve.  I was hoping that Arch would be a bit more polished now and I've decided to give it another spin, but so far things are not going well at all... I'm down 2 cd's and suspect I may need to burn yet another to get things going.
    I tried to install from the latest ISO, but kept getting dumped to a grub prompt which threw up errors no matter what commands I entered.  Someone on the forum suggested to a user with a similar problem that they try an earlier release that uses ISOLINUX instead of grub (Why newer hardware should require an earlier release, I still don't understand).  So, I booted into 2008.3 just fine, and I am trying to get an FTP install going, and no matter which mirror I try, I get an error stating that the installer could not find packages.txt.  I combed through the mirrors with an ftp client, hoping that the path had simply changed, but I cannot find packages.txt anywhere.
    What do I do now? Do I have to burn a core 2008.3 ISO and install from CD, then update post-install?  If so, why?  I don't have an odd hardware configuration here (Intel P43, SATA drives) and I suspect that many many people are thus affected by the problem with booting the latest iso.
    Anyways, thanks for any help you can give me.
    Last edited by hbarnwheeler (2009-01-01 23:02:01)

    Use the core ISO.  Then manually download the latest pacman and pacman-mirrorlist and -U them.
    I knew I would be able to boot the 2008.3 core ISO and install + upgrade, but like SyXbiT in this thread (http://bbs.archlinux.org/viewtopic.php?id=51348), I'd really like to know what is going on here.  Is it a grub (+AHCI? +SATA?)issue that prevents booting to 2008.6?  If so, why use grub in the latest install image?  Like I said, I'm not using an odd hardware configuration here, so I'd just like some info from anyone who knows what's going on here.  It would be nice if I, and others who read this thread, could help those who run into this issue.  Also, maybe there should be something in the wiki about it, so people don't go downloading an older ISO only to find out that pacman's behaviour has changed and they can't do an FTP install.  As it stands, it took me a great deal of time and 3 burned cd's to even get a base install going.

  • Where is the new interface/UI layout for Linux in FF 4?

    I love the new Firefox 4 layout on my Windows PC in my office, with the new toolbar button and cleaned up interface in general.
    I get home to my Linux PC and see that the UI is still the old ugly (by comparison) style. Added tab pinning is there, but otherwise the themeing and UI are not improved.
    Is this coming?

    You can hide the menu bar via a right click on a toolbar or via View > Toolbars to get the gray Firefox button on the tab bar. On Linux this button is on the left side of the tab bar and not on the title bar at the top.

  • IF_FPM_TABBED where to find the interface definition?

    Hello everybody,
    I hope you can help me. Momentarily I am trying to dive into FPM. I got the hint to watch the IF_FPM_TABBED interface, but I did not find the descriptions to this interface, neither did the search.
    Can somebody help me with a link for the SDN or a description or a transaction for the SAP Easy Access?
    Sinceresly
    Barbara

    Hi,
    Go to Transaction SE24 and enter the Interface name there(IF_FPM_TABBED). There are methods with explanation with which you can build your FPM.
    Try to go through the below link also.
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90f3cfd2-46d0-2b10-b3ab-eabf3452cc50]
    Thanks,
    S.Rajkumar

  • Where is "Package" on my CS6?

    I have a CC subscription and I have updated Illustrator CS6 to v16.0.4.  I should have the "File > Package" option but it's just not there.  (as per Illustrator Help | Package files) Why not?

    Have you actually downloaded and installed the subscription version of CS6? If I recall correctly the CC version should be 16.2.1.

  • What's exact meaning for interface ,and where we use this interface

    hi experts,
    i have been asked what is interface

    Hi
    Interfacing is connecting two or more different entities. In our case, it is connecting one or more systems with SAP. Now extending our previous example, you are replacing some legacy applications but there are some applications that you don't want to replace yet. You need to somehow pass data back and forth between SAP and these remaining systems. Data may be going one way or the other way or both ways. You will still need to do some data transformations/translations etc to make the data understandable to the receiving system. This will continue as long as you want to keep the systems running alongside SAP.
    In short, conversions are written to load data into SAP onetime. These are typically file based.
    Interfaces are written to exchange/update/send/receive data between SAP and other systems on an ongoing basis. These can be in many forms, file based, idoc based, real time(business connector, XI etc are useful in this), xml, and the list goes on.
    Reward me if its helpful
    Ravi

  • Where's the new interface???

    I installed 4.2.1 and I still get the same interface as before. I got the Game Center and the Mute button is there and iTunes says that 4.2.1. is the operating system but no bar, no folders. Is there a switch I have to throw?

    Not sure what you mean by bars - don't know of anything like that in the new iOS.
    You have to create folders. Simple way to start - pick two apps you want in the same folder, drag one on top of the other, and it will create a folder. If they're from a similar category as determined by iTunes (ie Games), the folder will be named after that category - but then you can rename it. Once the folder is created, you can keep dragging apps into it.

  • Where did these tunnel interfaces come from?!?

    Hello,
    just wondering why one of our routers creates tunnel interfaces dynamically.
    I was setting up a GRE tunnel to transport multicast traffic over network. After I was done, I found two extra tunnel interfaces with command show ip interfaces brief and those extra interfaces uses my original tunnel interface as their IP addresses. There is no any configuration regarding to these extra interfaces in running config. How did this happen? Any explanations? Is it relating somehow to my multicast solution?
    If I got two dynamically created tunnels does that mean that I have at least two concurrent multicast groups on my router in active state?
    Sorry for dummy questions but I have almost zero experience what comes for multicast and last time I studied it in school about 8 year ago...
    -JJ

    Hi,
    These are created dynamically, one to encapsulate multicast packets and the other one to decapsulate. You can see them with the command < show ip pim tunnel > . You can find the description and purpose of these tunnels here:
    http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ipmulti/command/imc-cr-book/imc_s1.html#wp9533023710
    Hope this helps,
    Jose.

Maybe you are looking for