Why addcomponent and removecomponent method are not in component class,

Hi,
why addcomponent and removecomponent method are not in component oand component class,
Thank you

java.awt.Container has the appropriate add and remove methods:
http://java.sun.com/javase/6/docs/api/java/awt/Container.html
If that seems odd to you, you need to think about the Composite Pattern:
http://en.wikipedia.org/wiki/Composite_pattern
[url #" style="display: block; background-image: url('http://upload.wikimedia.org/wikipedia/en/1/13/Compositepattern.png'); width: 406px; height: 271px] 

Similar Messages

  • Why ejbActivate and ejbpassivate methods are not in the stateless bean

    please give me clearly

    You can translate "activate" and "passivate" as follows:
    activate means "please fetch the last state for this stateful session bean from the persistent store"
    passivate means "the container is going to unload this stateful session bean from memory, so please persist its state in the persistent store"
    Neither of those statements apply to stateless session beans, because they're stateless. There's nothing to persist. One SLSB is as good as another for servicing a request. They don't care who their last client was.
    %

  • Golden gate extract and replicate process are not running.

    All,
    I am trying replicate data between two oracle databases using golden gate.
    I am trying this scenario in a single machine(two databases and golden gate are on same windows machine)
    1. I have two databases PROD, UAT both are running on 11.2 oracle home.
    2. Created the ggate user both the databases, and enabled supplemental logging.
    3. Ran the following scripts in both databases.
    SQL> @marker_setup.sql
    SQL> @ddl_setup.sql
    SQL> @role_setup.sql
    SQL> grant GGS_GGSUSER_ROLE to ggate;
    SQL> @ddl_enable.sql
    4. Connected the source database (PROD) in ggsci prompt
    GGSCI (home-c07402bbc5) 79> add extract ext1, tranlog, begin now
    add exttrail C:\app\Bhanu\Goldengate\lt, extract ext1
    edit params ext1
    EXTRACT ext1
    USERID ggate@PROD, PASSWORD 123456
    RMTHOST home-c07402bbc5, MGRPORT 7840
    rmttrail C:\app\Bhanu\Goldengate\lt
    ddl include mapped objname bhanu.* // bhanu is a schema in PROD database.
    TABLE bhanu.*;
    5. Connected the target database(UAT) in ggsci prompt
    add checkpointtable ggate.checkpoint
    edit params ./GLOBALS
    GGSCHEMA ggate
    CHECKPOINTTABLE ggate.checkpoint
    add replicat rep1, exttrail C:\app\Bhanu\Goldengate\Mt,checkpointtable ggate.checkpoint
    edit params rep1
    replicat rep1
    ASSUMETARGETDEFS
    userid ggate@UAT, password 123456
    discardfile C:\app\Bhanu\Goldengate\rep1_discard.txt, append, megabytes 10
    map bhanu.*, target kiran.*;
    After that started the extract, replicat using
    start extract ext1, start replicate rep1
    Now the status.
    GGSCI (home-c07402bbc5) 103> info all
    Program Status Group Lag Time Since Chkpt
    MANAGER RUNNING
    EXTRACT STOPPED EXT1 00:00:00 00:11:43
    REPLICAT STOPPED REP1 00:00:00 00:21:16
    Can you please help me what is wrong in my setup and why extract and replicate process are not running.
    Edited by: user12178861 on Nov 19, 2011 11:22 AM

    Thanks for your quick reply.
    I have done few changes but extract, replicate process not running.
    couple of points I would like to share with you regarding my setup.
    1. I am using single golden date instance to replicate the data between PROD and UAT databases.
    2. GGSCI (home-c07402bbc5) 1> dblogin userid ggate@PROD,PASSWORD 123456
    Successfully logged into database.
    GGSCI (home-c07402bbc5) 2> info all
    Program Status Group Lag Time Since Chkpt
    MANAGER RUNNING
    EXTRACT STOPPED EXT1 00:00:00 01:23:29
    REPLICAT STOPPED REP1 00:00:00 01:33:02
    GGSCI (home-c07402bbc5) 3> VIEW REPORT EXT1
    ERROR: REPORT file EXT1 does not exist.
    GGSCI (home-c07402bbc5) 4> start er *
    Sending START request to MANAGER ...
    EXTRACT EXT1 starting
    Sending START request to MANAGER ...
    REPLICAT REP1 starting
    GGSCI (home-c07402bbc5) 5> VIEW REPORT EXT1
    ERROR: REPORT file EXT1 does not exist.
    GGSCI (home-c07402bbc5) 6> info all
    Program Status Group Lag Time Since Chkpt
    MANAGER RUNNING
    EXTRACT STOPPED EXT1 00:00:00 01:24:10
    REPLICAT STOPPED REP1 00:00:00 01:33:44
    Target :
    GGSCI (home-c07402bbc5) 1> dblogin ggate@UAT,PASSWORD 123456
    ERROR: Unrecognized parameter (GGATE@UAT), expected USERID.
    GGSCI (home-c07402bbc5) 2> dblogin userid ggate@UAT,PASSWORD 123456
    Successfully logged into database.
    GGSCI (home-c07402bbc5) 5> add replicat rep1, exttrail C:\app\Bhanu\Goldengate/lt,checkpointtable ggate.checkpoint
    ERROR: REPLICAT REP1 already exists.
    GGSCI (home-c07402bbc5) 6> delete replicat rep1
    Deleted REPLICAT REP1.
    GGSCI (home-c07402bbc5) 7> add replicat rep1, exttrail C:\app\Bhanu\Goldengate/lt,checkpointtable ggate.checkpoint
    REPLICAT added.
    GGSCI (home-c07402bbc5) 8> edit params rep1
    GGSCI (home-c07402bbc5) 9> start er *
    Sending START request to MANAGER ...
    EXTRACT EXT1 starting
    Sending START request to MANAGER ...
    REPLICAT REP1 starting
    GGSCI (home-c07402bbc5) 10> info all
    Program Status Group Lag Time Since Chkpt
    MANAGER RUNNING
    EXTRACT STOPPED EXT1 00:00:00 01:29:46
    REPLICAT STOPPED REP1 00:00:00 00:00:48
    3. Is mandatory that I need two golden gate instances running each side ?
    Thanks for spending your time on this problem.

  • Why to use Interface if methods are not implemented??

    Hello,
    I am having a problem to clearify as, why to use the interfaces which defines only methods and no implementation??
    When a class implements an interface the methods are implemented by the class itself, don't you think that the same functionality can be achieved if the class defined the method itself...
    The why to use interfaces, just that the same method name can be used by many classes or some other reasons..

    did you google on that? There is lots of information I am sure explaining why you code to an interface defined type rather than a class defined type.
    However, fundamentally you are correct, classes define their own type. The idea is that you use an interface because it allows you to have more than one implementation. Plus you can more easily change the structure of your program if you later wish if you did not use the class type directly.
    You get better answers if you ask in the Patterns forum below.

  • HT4059 Why Indian authours and Indians books are not available in your iBooks store.

    Why Indian authours and Indians books are not available in your iBooks store.

    Thats because Indian publishers may have not signed an agreement with Apple. Worst part is even if I want to publish a book for free using official iBooks Author, it does not publish on Indian iBooks Store.

  • HT3775 why some times video and audeo files are not opening in my Mac? sir plz advise me the application i need to download.thanks.

    why some times video and audeo files are not opening in my Mac? sir plz advise me the application i need to download.thanks.

    why some times video and audeo files are not opening in my Mac? sir plz advise me the application i need to download.thanks.

  • My copy and paste functions are not working, does anyone know why this might be happening?, my copy and paste functions are not working, does anyone know why this might be happening?

    my copy and post functions are not working, does any one know why this may be happening and what I could do to fix it? Thanks!

    Have you tried rebooting?

  • My control center and notification center are not showing when I swipe in there respective locations. Does anybody know why?

    My control center and notification center are not showing when I swipe in there respective locations. Does anybody know why?

    Thank you for the sugestion, but it was working fine both on the lock screen and on my home screen. I check all my settings and it is how it was from Friday, when I got the iPhone 5s. It just stop working.  The only way I can fix it is by shutting down the phone. It will work for a while, then it won't. 

  • My movies and movie rentals are not syncing with my ipad?  any ideas on why?

    my tv shos, movies and movie rentals are not showing up on my iPad but do show up in my iTunes library.  Any ideas or reasons why they aren't transferring to my iPad when I sync it?

    At the moment, I only have a couple of movies in my "Videos" folder.  About a month ago I did have 2 rental movies and they were in a subfolder which I think might have bee called rentals. After I watched them and aftet the 24 hour viewing period was up, they went bye-bye.
    As to why you don't see any rentals, I don't think iTunes allows rental movies to be synced to another device.  I know they don't allow transfer from ATV to an iTunes folder on a computer.
    Did you actually rent these missing videos directly to your iPad? If so, they should be there.  That's how I got the 2 rental movies that I had in my Videos folder.

  • ECC IM report, the available and assigned budgets are not correct

    Hi All
    Can any one tell me why there is a difference in the ECC IM report, the available and assigned budgets are not correct on program position level.
    But individual investment order level, they are correct..
    The report we are running is : S_ALR_870122806 .
    Any help higly appreciated and points are assigned .
    Cheers
    ravindra .

    Hi,
    Tcode GR23 , Under 1VK Report library, Choose Characteristics Tab for Company Code Select BUKRS,and GSBER for Business Area.
    Regards,
    Shankar K B

  • HTTP and RFC Adapter are not Required Sender

    Hi All,
    I have one dought....
    Why Plain HTTP and RFC Adapter are not Required Sender Communication Channel and Sender Agreements...
    I Know this two Adapter are in ABAP Stack....
    Please clarify my dought...
    Regards

    Idoc Adapters do NOT require Sender Communication Channel.
    The Sender System identifies itself at the Integration Server, with the fields SNDPOR and Client of the Control Record.
    Sender Communication channels are used for communication betweeen the Application System and the Integration Server.
    In the case of Idocs, all idocs are tranferred to the Integration Server pipeline and NOT to the regular EDI/IDOC interface.
    The RECEVIER DETERMINATION is based on the values in the Control Record.
    If you are doing ALE, then you have to maintain the idoc types which are NOT to be transferred to the Integration server by executing report IDX_SELECT_IDOCTYP_WITHOUT_IS.
    By maintaining the Idoc Types using this report, only these idoc types are sent to the regular EDI/IDOC interface.

  • TS3048 Right click on Mighty Mouse and Wireless Keyboard are not working

    I have a 24" iMac, early 2009  Lion,10.7.5.  My wireless keyboard and mighty mouse are not working properly. Wireless keyboard- I can turn it on and it will ask me to pair it with the Blue Tooth.  I cannot log the numbers in - I even tried logging them in with my wired keyboard device (which is an Apple keyboard).
    My Mighty Mouse's right click stopped working as well. 
    I have gone through all of the troubleshooting steps-
    New Batteries - Cleared Blue tooth preferences list, repaired permissions, Cleared cache, Made sure that the settings were correct ex: key was not checked on mouse, Removed both devises (keyboard, and mouse) from blue tooth and allowed them to be discovered again, PRAM reset, Hardware check/ reset, and lastly, Reinstall of OSX.
    I am still having the same issue with both devices.
    Thank you.

    This is why you should always have a wired keyboard and mouse as backups.
    Try smc and hope for the best.
    I'd also suggest pram reset but you need the keyboard for that.

  • New features, e.g., blur path and select focus, are not showing up in my PS drop down menus

    Although I've downloaded the CC PS 2014 updates the new features, e.g., blur path and select focus, are not showing up in my PS drop down menus - anybody know why and what I need to do?
    <moved from downloading,installing,setting up - kglad>

    Are you sure you understand the Cloud License concept?
    You are entitled to keep Photoshop CC and install Photoshop CC 2014, so CC 2014 is not connected with additional costs and the time it takes to install the new version of Photoshop should not be that much of a imposition, should it?

  • My Ebony magazine and Time magazine are not moved to my News stand

    I just installed iOS 5 and it installed perfectly with no hassles. I am just wondering why some of my magazines are not moved to the News Stand.
    Time magazine and Ebony are still where they were omly GQ and Readers' Digest moved.
    What should I do to move them to the News Stand?

    Same with the Wall Street Journal.  I know it will eventually get into Newzstand, but until then, I'm going to act like a disgruntled user and complain loudly on these boards!  Whine!!!!! 

  • BICS_PROV_GET_INITIAL_STATE and form Variables are not submitted

    Hi Team,
    We are geting following error message while running WAD reports on BI QA and Test system portal.
    Our issue is similar to the issue mentioned in SDN thread BICS_PROV_GET_INITIAL_STATE Exception
    - We are facing issue in refreshed systems.
    - Variable Entry Screen is displaying correctly.
    - After entering values once you click on "OK"  we are getting UNCAUGHT_EXCEPTION.
    - Support Desk tool is displaying green.
    - Same report is executing fine in Dev and Prod system.
    - BI Queries are running fine on Portal
    - Only WAD reports are giving exceptions
    - Support desk tool is showing green for everything.
    Error Message:
    Exception in BI runtime
    Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION
    System error in program BICS_PROV_GET_INITIAL_STATE and form Variables are not submitted (see long text)
    Log ID: 0018FE2D262B00A000000D68000032CA00047CFC82B5D87E
    Initial cause
    Message:
    Termination message sent ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION  MSGV1: SAPMSSY1  MSGV3: UNCAUGHT_EXCEPTION
    Stack trace:
    com.sap.ip.bi.base.application.exceptions.AbortMessageRuntimeException: Termination message sent ABEND RSBOLAP (000): Program error in class SAPMSSY1 method : UNCAUGHT_EXCEPTION  MSGV1: SAPMSSY1  MSGV3: UNCAUGHT_EXCEPTION     at com.sap.ip.bi.base.application.message.impl.MessageManager.addMessage(MessageManager.java:130)     at com.sap.ip.bi.base.application.message.impl.MessageManager.addMessage(MessageManager.java:123)     at com.sap.ip.bi.base.application.message.impl.MessageManager.addMessage(MessageManager.java:123)     at com.sap.ip.bi.base.application.service.RfcService.fillMessages(RfcService.java:221)     at com.sap.ip.bi.base.application.service.RfcService.doPostProcessing(RfcService.java:171)
    Please help me on this
    Thanks,
    Preethish

    Hi,
    Try filtering the queries with the values of variables entries included in the filters.
    Then include them in WAD report. If that works fine then it can be a memory issue.

Maybe you are looking for