How to make an app that uses plugins???

Hello All,
I am relatively new to programing and i have never done some thing like this so what i would like to know is.
How can i make an app that can get/load plugins from a folder and then use them to copy files from one place to another(i got he copy part down just need the plugin part.
And then i need to know how to parse the location of the file that needs to be copied and the folder it needs to be copied to into the plugin.
Thanks in advance.

What you do it to define a common interface which plugins have to implement. Typically you place the .class files for the plugins in a special directory (not on the class path) and you create a URLClassLoader to load the plugin classes. Class names (FQNs) for plugins are usually in some kind of configuration file.
One you load the class you'll usually create a single instance (with Class.newInstance()) and cast it to the common interface. It's simpler to use a no-args constructor and define some kind of initialize method in the interface to initialise the plugin. Typically you pass some kind of context object when you initialize the plugin, which the plugin can use to comunicate with the framework.

Similar Messages

  • Automator: how to make an app that accepts hyperlinks dropped on it?

    I tried using the 'get specified url' action but it doesn't make the app capable of accepting hyperlinks dropped on it. what i am trying to do is...
    1. drop hyperlinks from a certain webpage onto the app.
    2. make the app scan that hyperlinks webpage for urls in it.
    3. filter urls i want
    4. download those urls.
    when i use the workflow it works fine. but automator freezes all the while it downloads it and i can't run more such download in parallel. so i want to make and app. when i saved the work flow as an app it wont accept any input. any help?

    See http://discussions.apple.com/thread.jspa?threadID=2039384 and Introduction to Automator tutorial at http://automator.us/leopard/video/index.html
    And, http://www.automatedworkflows.com/tips/podcast.html and
    http://www.macosxautomation.com/automator/examples/ex04/index.html
    And, http://discussions.apple.com/thread.jspa?threadID=2241804 for a four-parter by Sal Saghoian on *Automation in Snow Leopard*
    Finally, here's a new episode that demonstrates the differences between AppleScript Studio and AppleScript-Objective-C application development. http://pixelcorps.cachefly.net/mbkd036_540ph264.mov
    It references this page on MACOSXAUTOMATION.COM: containing the example project files: http://www.macosxautomation.com/applescript/develop/index.html

  • My iPhone 4s notified me that I had to manage my storage  so I deleted  apps that used a lot of space I deleted almost all my picture and it still keeps telling me  I don't have enough storage  is there any other way I can make room on my phone ?

    My iPhone 4s notified me that I had to manage my storage  so I deleted  apps that used a lot of space I deleted almost all my picture and it still keeps telling me  I don't have enough storage  is there any other way I can make room on my phone ?  Were it shows how much storage  I have available it still says 9.9 even after all that I have done so I don't know if I need to change my storage plan or what but anything will help I guess

    Check for 'others' in iTunes against your iPhone.
    Restore from a previous backup to reclaim some of it.
    Still want more, Restore in iTunes, setup as New.

  • The app store on my brand new ipod touch offers me majority apps that cannot be used on my software. how do i find apps that will work with 6.1.5? this is frustrating, especially when purchased brand new.

    the app store on my brand new ipod touch offers me majority apps that cannot be used on my software. how do i find apps that will work with 6.1.5? this is frustrating, especially when purchased brand new for christmas.

    See the following to purchase earlier, compatible version for iOS 6
    App Store: Downloading Older Versions of Apps on iOS - Apple Club

  • Just updated to i0s 5 on my ipad2. Some of the apps that use to be on the ipad are nolonger there. If i go into itunes on my desktop compter they appear there. How do I get them to transferr to my i pad 2?

    just upgraded to ios5 on my ipad2. Some of the apps that use to be on the ipad no longer apperar there. They do appear in i tunes on my desktop computer. How to I transferr them back to my ipad2.

    IOS5 upgrade wipes your iPad disk.  When you re-sync to your computer, you should get all of the apps that are checked under the Apps page in iTunes.

  • HT4623 How do I close apps that are running in the background.  If you double click button you used to be able to press and hold for the "x" to come up to allow you to close, but now I can't .

    How do I close apps that are running in the background.  You used to double press the button, and then press and hold to allow the "x" to come up, so you could close them down.

    Close all apps in multi-task window
    1. Double tap the home button to bring up the multi-tasking view
    2. Swipe the app's windows upwards to close
    3. The app will fly off the screen

  • How to make my app searchable on App store by using Arabic Keywords

    I'm trying to use Arabic description and metadata for my app. In iTunes connect it states that these data must be in English, so I did put them in English. Then i found the localization feature but found it doesn't support Arabic language.
    However I found many apps that use Arabic in their names, meta data and description. I wonder how to do that?

    How to add "Arabic Keywords" in iTunes Connect, where there is no support for Arabic Language in iTunes. But I have seen different arabic searches for different Apps on App Store. How it is possible. Any Idea?

  • Can someone tell me how to get my apps that are on my ipad to appear on my TV using Apple Tv

    Can someone tell me how to get my apps that are on my IPad to be viewed on my Apple TV?

    Welcome to the Apple Community Coachcad.
    Basic AirPlay: Assuming both devices are on the same network and that AirPlay is not turned off on the Apple TV, then simply tap on the screen when you are watching content you wish to stream to your Apple TV, then tap the airplay icon that appears in the control bar, choose the Apple TV from the menu that appears.
    Mirroring: When displaying the content you wish to mirror on the iPad 2 (or better), iPad Mini, iPhone 4S (or better), swipe from the bottom of the screen, tap the AirPlay icon and choose your Apple TV from the list of devices (iOS 7 or better) or double tap the home button (quickly) and swipe the bottom row of apps to the right to reveal the playback controls, tap the AirPlay icon and select your Apple TV from the list of available devices (pre-iOS7)

  • How to make an app a file receiver for images on iOS?

    Hi,
    How to make an app a file receiver for images on iOS?
    I did it for the Android app.xml like this:
    <intent-filter>
            <action android:name="android.intent.action.SEND"/>
            <category android:name="android.intent.category.DEFAULT"/>
            <data android:mimeType="text/plain"/>
        <data android:mimeType="image/jpg"/>
        <data android:mimeType="image/jpeg"/>
        <data android:mimeType="image/png"/>
        <data android:mimeType="image/gif"/>
    </intent-filter>
    How to do it for iOS?
    (I'm using Adobe Air 4.0)
    Thank you!

    What app have you used to create your ibook?  Normally any app will have a menu item like File > Export that will give you the option of PDF, or you can use Print and there will be an option in the Print dialogue to Print to PDF.

  • I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build.  The same call works fine when running on the device

    I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
    I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
    The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
    I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
    I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
    By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
    Anyone have an idea on other things to try to debug/resolve this?
    Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
    Thanks!

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • Apps that  use SDK

    I'm thinking of buying an iPod Touch and have a few questions.
    A few years ago SDK showed a lot of promise for WiFi only devices.  Do almost all apps that use location use SDK today?
    Is there an app that lets one use the iPod as a navigator (like a Garmin NUVI) using SDK?

    SDK is Software Developer Kit. The iOS SDK shows/developers how to uses stock features/libraries in order to develop apps. It is not confined to location. See:
    https://developer.apple.com/devcenter/ios/index.action
    There are apps that allow using the iPod for navigation. However, since the iPod relies on the location of nearby wifi router that the iPod can see/show in Settings>Wifi, it is not useful unless you are near wifi routers.

  • How do you install apps that says waiting

    How do I install apps that say waiting that wont budge

    If the apps are downloaded from the App Store, connect to WIFI network and click on the app, make sure your iPhone is charging and keep moving the screen so it wont go on stand by.
    When it says loading and you see the bar loading you can just leave your iPhone alone and wait until it's downloaded.

  • How to make different users to use different Plan_Tables?

    How to make different users to use different Plan_Tables?
    I want each user use his own's Plan_Table. How to achieve this goal?

    qkc wrote:
    How to make different users to use different Plan_Tables?
    I want each user use his own's Plan_Table. How to achieve this goal?Which version of Oracle - if you're on 10g or later you are already (effectively) doing this.
    If not, then copy the 10g strategy back to your version; in outline:
    <ul>
    drop all existing plan tables
    create a table (but call it plan_table$) in the SYS schema (you may prefer to use SYSTEM) as a global temporary table on commit preserve rows
    create a public synonym plan_table for plan_table$
    grant select insert update delete on plan_table to public
    </ul>
    Look in $ORACLE_HOME/rdbms/admin/catplan.sql in a 10g version of Oracle to check how it's done.
    Each user gets a private (temporary) table in their temporary tablespace whenever they use the plan_table
    Their private data disappears when there session ends.
    Regards
    Jonathan Lewis
    http://jonathanlewis.wordpress.com
    http://www.jlcomp.demon.co.uk
    To post code, statspack/AWR report, execution plans or trace files, start and end the section with the tag {noformat}{noformat} (lowercase, curly brackets, no spaces) so that the text appears in fixed format.
    There is a +"Preview"+ tab at the top of the text entry panel. Use this to check what your message will look like before you post the message. If it looks a complete mess you're unlikely to get a response. (Click on the +"Plain text"+ tab if you want to edit the text to tidy it up.)
    "Science is more than a body of knowledge; it is a way of thinking"
    Carl Sagan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Hiss noise from iPad2 speakers when launching an app that uses the speakers

    A couple of months ago I bought an iPad2 Wi-Fi. It was working fine until yesterday that it started making a hiss noise every time an app that uses the speakers was launched, for example when the keyboard clicks sound is enabled it will make noise while typing (this is somehow annoying). Is this a known issue?
    Is this a hardware defect or can it be fixed with a software upgrade?
    Thanks.

    i have the same problem: ipad2 makes noise every time when plays sound (music, video, games, typing)
    i'm sure that problem is hardware..
    the noise exists only with speaker: if i connect headphones noise disappears

  • How to make pics visible that was received through mobil/PC/Bluetooth?

    Does anyone know how to make pics visble, that has been recieved through emails/mobil/PC/Bluetooth to Mac or vs?
    I am able to see some pics, but some again I am not able to see in anyway, and these are standard pics taken from typically commercially available cameras, and some pics are too small to be useful. But than other they are that well to be used in many ways!
    Anyone faced similar issues?

    Hello @_goma,
    Welcome to the HP Forums, I hope you enjoy your experience! 
    I have read your post on how you are looking to make your computer send all the audio through an optical audio cable instead of the headphone jack, and I would be happy to assist you in this matter!
    To configure your desktop to enable the optical audio cable, I recommend following the steps below:
    Step 1. Click the Windows Key Button on your desktop
    Step 2. Type "Control Panel"
    Step 3. Select "Control Panel" in the top right-hand corner
    Step 4. Select Sound
    Step 5. Under the Playback tab, right-click the white area below the devices available
    Step 6. Select "Show Disabled" and "Show Disconnected Devices"
    Step 7. Connect your Optical Audio Cable
    Step 8. Select your Optical Audio Cable as the default device and click "Enable"
    Since it is not possible to convert the HDMI out to audio out on your notebook computer, it is unfortunate that the notebook is not able to connect with an optical audio cord.
    Please re-post with the results of your troubleshooting, and I look forward to your reply!
    Regards
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

Maybe you are looking for