Using ClassLoader for custumize an application

Customize an application that has thousands of classes may be an hard adventure
in java.
If we need to cistomize a class (e.g. Account) used by several classes of the application,
the operation seems to be easy with an OO language: we have simply to inherit the class
Account into a new class Account2 and with delegation and so on we have reached the
target.
But all other classes of application refers to Account class (the base class) and not to
Account2 (the inherit class)
So we have to inherit all classes that instantiates Account and all classes that instantiate
those classes and so on: a real nuclear explosion!!
Is needed to inherit a good part of my application.
Obviusly modifing all vase sources may be a solution, but is needed to ship all sources
to customers and is not so a good idea.
I have already tried several ways, such defining my own classloader and so on but I have
no found a real solution.
Does someone has an idea?
Every help will be really appreciate.
All the best.

But all other classes of application refers to Account
class (the base class) and not to
Account2 (the inherit class)
So we have to inherit all classes that instantiates
Account and all classes that instantiate
those classes and so on: a real nuclear explosion!!Which is why people use interfaces and abstraction
for such things.
Maybe these will help:
Object Oriented concepts
Why extends is evil - Improve your code by replacing concrete base classes with interfaces
Object-oriented language basics, Part 6 - Use interfaces for safe multiple inheritance and a great deal more

Similar Messages

  • HT2589 We have purchase 5 apple minis and would like them all on one account.  That way we can monitor the use of these units.  they will be used strickly for a business application.  can I use one account in itunes or must i have multiple.

    We have purchased 5 apple minis and would like them all on one account, that way we can monitor the use of these units.  They will be used strickly for a business application.  Can I use one account in itunes or must i have multiple.

    Not going to happen the way you want it to.
    When you add a gift card balance to the Apple ID, it's available for the Apple ID.
    Probably best to create unique Apple ID's for each... this will also make things easier in the future as purchases are eternally tied to the Apple ID they were purchased with.

  • Using CSS for Web dynpro application in EP

    Hi,
    I have some CSS (Style sheets) which I need to apply to the portal, so that all the web dynpro applications can have the same look and feel.
    I read something about Theme Editor in EP. Can I somehow use that to import the CSS contents into the EP theme?
    Any pointer to using CSS for Web Dynpro applications will be appreciated.
    Thanks.
    Puneet

    Hi,
    Go thorugh the follwing Web Dynpro Java
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/business_packages/a1-8-4/nw04stack09themes.zip
    To know how to use it and for the steps to be followed please follow the tutorial here
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how to edit web dynpro themes.pdf
    the last url gives you a step by step procedure with wizards..
    Regards,
    RK

  • Using SSO for 2 partner application that different domainname

    Dear expert,
    I have to implement the Oracle SSO with 2 existing Web Application that separate domainname (eg. domainA.com and domainB.com). I have read from OTN the SSO using HTTP Cookie for partner applications but the standard cookie can not be accessed from different domainname.
    Please, Who can help me on this case?
    Thanks in advance,
    Kotaro

    Reading and googling through much unclear RMAN content I came to the conclusion that it simply is not possible to use RMAN to copy SCHEMA_A from INSTANCE_A in MACHINE_A into INSTANCE_B without blowing away SCHEMA_B in INSTANCE_B on MACHINE_B.
    So, I need to use RMAN to set up INSTANCE_A_COPY on MACHINE_B. Then I can have both INSTANCE_B and INSTANCE_A_COPY on MACHINE_B. If MACHINE_A should fail then I can switch over to MACHINE_A_COPY and run both instances, no problem.
    Question: I would like to save time and disk space by not copying a 1TB reference tablespace/schema into INSTANCE_A_COPY. When I run INSTANCE_A_COPY it will need to join to the read-only reference tablespace/schema in INSTANCE_B. What will be the performance of a “distributed join” on tables across two instances in the same machine?

  • Cannot use Themes for iBooks Author application on my Mac Pro

    Hi, I downloaded Themes fir iBooks Author application for my Mac. But when I try to open the Item it gives me the following message:
    "The document “Academic Paper.ibatemplate” could not be opened. The file isn’t in the correct format. The file might be corrupted, truncated, or in an unexpected format. " Can somebody advise what should I install on my Mac so that i can use this application. Thank you in advance. 

    Contact the app developer for assistance  >  http://graphicnode.com/support/contact/

  • A question about Using RSL for our Intranet Application

    Hi ,
    I am doing an Intranet Application (Which will be used only with in the Employees of the  Organization)
    We want to RSL as read that it will improve the performance of the swf files .
    Please let us know what type of RSL (like Standard RSLs , Cross-domain RSLs or Framework RSL)
    Suppourt us ??
    Can anybody let me know how can i provide RSL facility for my Application .
    Thanks in advnace .

    Thanks for the information .
    As you mentioned:
    RSLs are only useful if more than one SWF is going to share it.
    Our Intranet Application is divided into several Modules , but under only one APPlication MMXL file . So will this be useful for us in any way ??
    Thanks .
    Waiitng for your resposne .

  • Using flex for thik client application

    My application is an C++ thik client application. It uses
    some king of lib (called zaf) for the UI.
    Can Flex be used for handling the UI of desktop application
    ?

    You could use AIR (Adobe Integrated Runtime), in which most
    of the app is created in Flex, and some in AIR extensions, but
    there would be limitations. You can't execute native applications
    from AIR applications, so you can't execute Perl scripts, Java
    apps, etc. from your AIR app. You can of course use FDS (Flex Data
    Services) to connect to POJO, EJB, JavaBeans, SOAP and other web
    services, etc.

  • Using clipboard for communication between applications

    I am facing a problem related to clipboard during a remote desktop connection. I have the same application both in a client (Windows 8) and in a server (Windows Server 2012 R2) and the communication between them is made by using clipboard. Before making
    the connection to the server through "Remote Desktop Connection", there is an option related to Clipboard in Local Resource tab which must be checked. I did it and when I run both programs they don't work as expected. They should exchange messages
    between themselves, however some messages are lost during the communitation (between the client and the server). I suppose there must be some kind of configuration I have forgotten to setup during installation of Windows Server 2012 R2. Perhaps something like
    that: http://www.technipages.com/unable-to-copy-and-paste-to-remote-desktop-session. Does anybody know if clipboard option should be set in an additional menu in order to clipboard to work properly in Windows Server 2012 R2? Should the client settings also
    be checked as above? I've seen many possible solutions on the Internet for similar problems like this, but none of them solved it. I'd appreciate any help anyone could give me.

    Hi,
    Thank you for your posting in Windows Server Forum.
    You can try to disable the “Do not allow clipboard redirection” on both server and client side with administrator permission under Group Policy on below mention path.
    Computer Configuration\Policies\Administrative Templates\Windows Components\Terminal Services\Terminal Server\Device and Resource Redirection
    Hope it helps!
    Thanks,
    Dharmesh

  • Using "Check for Purchases" with applications

    Hey Guys,
    I have an iPod Touch 16gb. I download an application to the iPod via the on-iPod app store. If I go back to my computer and hit check for purchases, it never downloads the newly purchased app.
    I always have to sync my iPod and then it gets transferred over. My question is what would happen if my iPod was stolen or deleted and I lost the app files on my computer, how would I get them back?
    I thought the whole point of "Check for Purchases" was so that it keeps a record of what you downloaded?

    I thought the whole point of "Check for Purchases" was so that it keeps a record of what you downloaded?
    It's to check for stuff you have purchased but not downloaded

  • Use of % for height with application.cfm

    How comes the height in % in both tags doesn't works when an application.cfm exists. When I remove the application.cfm everything works fine.
    <iframe src="messages.cfm" width="95%" height="74%"></iframe>
    <cfform format="flash" skin="halosilver" wmode="transparent" style="backgroundAlpha:0;" height="48.3%"></cfform>

    Any Application.cfm (note the capital letter, btw), or your specific Application.cfm?  What about an Application.cfm file which simply has a CF comment in it, and nothing else?
    Adam

  • Weblogic.Deployer using -deploy for existing application

    I'm running on weblogic 8.1 SP3
    when I use -deploy for an existing application the documentation says it will do a redeploy.
    documentation for the targets option says that it will use existing targets for an application that is currently deployed.
    BUT it doesn't work. Is this a known issue ?
    I use the following options:
    -name fortune
    -source /data/bea81/applications/stg/fortune.ear
    -verbose -debug -deploy -stage

    Check to see if the problem is with the Deployer tool or myApp.war:
    1) Does myApp.war deploy using the console?
    2) Check myApp.war has all the classes it needs?
    If your app does deploy from the console then we can focus in on the Deploy tool. If not it may help give us a clue as to what is going on e.g. your war file missing classes.
    Hoos

  • Help using Rules for aggregation conditions

    I am trying to utilize the application server rules engine to enforce validation on the XML payload. What I am trying to do is use it for a timesheet application, where after a user enters their hours, they submit and it gets some simple validation using the rules engine and gets returned if not valid according to the ruleset. The application supports multiple rows of hours entered, with each row specifying a unique task/activity worked that period. I have it working as I want using XML facts and RL Functions to determine the rules, but I want to take away the RL functions that need to iterate through each row and replace them with aggregate functions in the rule conditions themselves. Here are the rules I want to enforce:
    <ul>
    <li>An employee must not enter more than x hours of time worked per day, where x is a variable defined in the rules engine. As a constraint the number obviously cannot exceed 24. This rules must span all row entries submitted to sum the amount of hours entered for each day.</li>
    <li>An employee must enter at least y hours worked total each week, where y is a variable defined in the rules engine. Typically this will be defined as 40 hours. It must aggregate all hours entered in all rows for the week to determine how many have been submitted.</li>
    </ul>
    Currently I have 2 RL functions that each return true/false and check the above conditions, but each need to iterate through all rows entered and sum up the hours entered. This is probably satisfactory except my purpose is to show the power of using the rules engine to a client, and if I need to show them I had to develop custom RL code to support this I fear they may shy away from using it.
    Here is the general structure of my XML payload:
    <Timesheet>
      <EmployeeDetails>
        <FirstName>John</FirstName>
        <LastName>Doe</LastName>
        <EmployeeID>12345</EmployeeID>
      </EmployeeDetails>
      <WeeklyHoursEntries>
        <WeeklyHoursEntryRow>
          <TaskDetails>
            <Activity>TaskActivity1</Activity>
            <Description>Some description here</Description>
            <Category>REG</Category>
          </TaskDetails>
          <HoursEntries>
            <Day1>0</Day1>
             <Day2>8</Day1>
             <Day3>8</Day1>
             <Day4>9</Day1>
             <Day5>5</Day1>
             <Day6>10</Day1>
             <Day7>0</Day1>
           </HourEntries>
         </WeeklyHoursEntryRow>
         <WeeklyHoursEntryRow>
           <TaskDetails>
             <Activity>TaskActivity1</Activity>
             <Description>Some description here</Description>
             <Category>OVT</Category>
           </TaskDetails>
           <HoursEntries>
             <Day1>0</Day1>
             <Day2>2</Day1>
             <Day3>8</Day1>
             <Day4>0/Day1>
             <Day5>0</Day1>
             <Day6>10</Day1>
             <Day7>0</Day1>
           </HourEntries>
         </WeeklyHoursEntryRow>
       </WeeklyHoursEntries>
    </Timesheet>

    This is an administrators subforum. You might have more luck in some developers subforum here on OTN?

  • Using Acrobat fonts in other applications like Word?

    I tried to read the EULA for Acrobat XI Standard and got nowhere.  I have a volume license.  My question is, are we allowed to use Acrobat fonts, such as Myriad Pro, in Microsoft Word, for example?  Am I permitted to install this font family in Windows Font library for use in other apps if I have Acrobat XI installed on the same machine?  If I am allowed, great!  If not, how else would I be able to get this font family, especially under volume license?  Thanks!
    Regards,
    John Babbitt
    Systems Administrator
    Ashland Support Group

    Hi John ,
    If you have downloaded the specific set of fonts ,you are allowed to use those for various other applications as well .As you are saying you own a volume license you can comfortably use them for other applications.
    Let us know if you need further assistance.
    Stay well.
    Regards
    Sukrit Dhingra

  • Using JSF for NWDS 7.0

    Hi, I'm pretty new to NWDS and I was wondering if someone could point me to a step-by-step guide on what I should do to be able to use JavaServer Faces in developing a Web App?  Like how should I add the JSF libraries and is there a plugin for this? I looked everywhere and I can't seem to find a guide.  This is my first time using NWDS 7.0 and I was using NetBeans for developing JSF applications.
    Thanks.

    Hi,
    I think this is a good tutorial :
    http://help.sap.com/saphelp_nw70/helpdata/en/70/13353094af154a91cbe982d7dd0118/frameset.htm
    Best Regards,
    Ervin

  • Using iMovie for video coaching

    I'm trying to see if I can use iMovie for a coaching application or if there are any other suggestions.
    A while back I had online coaching sessions for rowing.  I'm trying to find the software my coach used or something equivalent, but he is not currently available.
    I sent him an mp4 video of my rowing.  He responded with a video that had my video on the screen, reduced in size, along with a portion of the screen of my coach critiquing my technique.  In his video he was able to play my video, pause, go back and forward, while giving a narrative and using the mouse pointer. 
    Can iMovie do this or any other suggestions?
    Thanks.

    JohnF wrote:
    … Can iMovie do this or any other suggestions?…     
    You could create such a video in iMovie.
    But you can not made it like that … (hu?!)
    a) You would need screen-grabs of the rowing, to record the pointer … ok, that's possible with QuicktimePlayerX.app, or much better with ScreenFlow …
    b) while doing so, you'd need a cam recording trainer+voice
    c) finally, you'd need to synch all that, apply 'effects' (=picture-in-picture) and edit that stuff.
    .... as said, possible, but really challanging your iM-skills.
    The menitoned ScreenFlow is better in that. Would be my choice!
    There was a less known tool called 'Podcast Producer', which was part of a MacOS-Server-edition… not avail anymore.
    Finally, maybe BoinxTV is an option …

Maybe you are looking for

  • How to clear Documents using XBLNR(Reference field) through Manual BRS-FF67

    I want to clear GL line items in clearing account using Manual BRS(FF67) with reference to "XBLNR" field(Reference). IS there any standard Algorithm which SAP provided for reference field or if we want to develop ne algorithm then how to create. Than

  • Sap reports

    Hello  Experts Can anyone tell me all the reports that may be pulled up in QM?? Thanks

  • Tab customization

    Our school is looking to use the portal on fairly large scale and we would like to have complete control over the look & feel of the site. We have figured out how to change the colors and layouts but we can't seem to find a way to customize the look

  • Contrast/Color Correction render problem

    So, on certain clips in my timeline when I apply either the Fast Color Corrector or Levels corrector to increase input black, when it is rendered the top line of pixels blinks black per frame. It's really annoying and looks unprofessional, and I am d

  • Changing zone interface while zone is running

    i need to change the interface for the running Solaris zone in E2900 system. now the zone interface is ce0:1 now i need to change the interface to ce2. whether i need a reboot of the zone or not. if reboot is not needed the following is ok or not :my