How to make an object available for GC

If I exclusively set objectName = null; is the object available for garbage collection? can I force the GC to clean this object this way?

tej_222 wrote:
If I exclusively set objectName = null; is the object available for garbage collection? can I force the GC to clean this object this way?Not necessarily, no.
Imagine a situation like this
someObject.someParameter = objectName;
objectName = null;  //someObject still has a reference to objectName

Similar Messages

  • How to make saved IR available for all users

    Hi,
    I've created IR and saved it to several tabs based on search conditions.
    But they're only visible for developers.
    How to make these tabs available for all end-users ?
    Does version 4.0 support this option ?
    Thank you!

    Hi
    At present this feature is not included, although I believe it may be in 4.0. Many people have provided workarounds for this. None of which I have tried. I cannot find the original thread but here is a solution from a chap called Ruud
    >
    One way to share your saved reports with others is to 'Publish' your report settings to a few intermediate tables in your application and have other users 'Import' your settings from there. The reason for using intermediate tables is so that not all your saved reports need to be 'visible' to other users (only those that you've chosen to publish).
    Basically you have available the following views and package calls that any APEX user can access:-
    - flows_030100.apex_application_pages (all application pages)
    - flows_030100.apex_application_page_ir_rpt (all saved reports - inclusing defaults and all user saved reports)
    - flows_030100.apex_application_page_ir_cond (the associated conditions/filters for above saved reports)
    - wwv_flow_api.create_worksheet_rpt (package procedure that creates a new saved report)
    - wwv_flow_api.create_worksheet_condition (package procedure that creates a condition/filter for above saved report)
    The way I've done it is that I've created 2 tables in my application schema that are straightforward clones of the 2 above views.
    CREATE TABLE user_report_settings AS SELECT * FROM flows_030100.apex_application_page_ir_rpt;
    CREATE TABLE user_report_conditions AS SELECT * FROM flows_030100.apex_application_page_ir_cond;
    ( NB. I deleted any contents that may have come across to make sure we start with a clean slate. )
    These two tables will act as my 'repository'.
    To simplify matters I've also created 2 views that look at the same APEX views.
    CREATE OR REPLACE VIEW v_report_settings AS
    SELECT r.*
    p.page_name
    FROM flows_030100.apex_application_page_ir_rpt r,
    flows_030100.apex_application_pages p
    WHERE UPPER ( r.application_name ) = <Your App Name>
    AND r.application_user 'APXWS_DEFAULT'
    AND r.session_id IS NULL
    AND p.application_id = r.application_id
    AND p.page_id = r.page_id;
    CREATE OR REPLACE VIEW v_report_conditions AS
    SELECT r.*
    p.page_name
    FROM flows_030100.apex_application_page_ir_cond r,
    flows_030100.apex_application_pages p
    WHERE UPPER ( r.application_name ) = <Your App Name>
    AND r.application_user 'APXWS_DEFAULT'
    AND p.application_id = r.application_id
    AND p.page_id = r.page_id;
    I then built 2 screens:-
    1) Publish Report Settings
    This shows 2 report regions:-
    - Region 1 - Shows a list of all your saved reports from V_REPORT_SETTINGS (filtered to only show yours)
    SELECT apex_item.checkbox ( 1, report_id ) " ",
    page_name,
    report_name
    FROM v_report_settings
    WHERE application_user = :APP_USER
    AND ( page_id = :P27_REPORT OR :P27_REPORT = 0 )
    ORDER BY page_name,
    report_name
    Each row has a checkbox to select the required settings to publish.
    The region has a button called PUBLISH (with associated process) that when pressed will copy the settings from
    V_REPORT_SETTINGS (and V_REPORT_CONDITIONS) into USER_REPORT_SETTINGS (and USER_REPORT_CONDITIONS).
    - Region 2 - Shows a list of already published reports in table USER_REPORT_SETTINGS (again filtered for your user)
    SELECT apex_item.checkbox ( 10, s.report_id ) " ",
    m.label,
    s.report_name
    FROM user_report_settings s,
    menu m
    WHERE m.page_no = s.page_id
    AND s.application_user = :APP_USER
    AND ( s.page_id = :P27_REPORT OR :P27_REPORT = 0 )
    ORDER BY m.label,
    s.report_name
    Each row has a checkbox to select a setting that you would like to delete from the repository.
    The region has a button called DELETE (with associated process) that when pressed will remove the selected
    rows from USER_REPORT_SETTINGS (and USER_REPORT_CONDITIONS).
    NB: P27_REPORT is a "Select List With Submit" to filter the required report page first.
    Table MENU is my application menu table where I store my menu/pages info.
    2) Import Report Settings
    This again shows 2 report regions:-
    - Region 1 - Shows a list of all published reports in table USER_REPORT_SETTINGS (filtered to show only other users saved reports)
    SELECT apex_item.checkbox ( 1, s.report_id ) " ",
    m.label,
    s.report_name,
    s.application_user
    FROM user_report_settings s,
    menu m
    WHERE m.page_no = s.page_id
    AND s.application_user :APP_USER
    AND ( s.page_id = :P28_REPORT OR :P28_REPORT = 0 )
    ORDER BY m.label,
    s.report_name,
    s.application_user
    Each row has a checkbox to select the setting(s) that you would like to import from the repository.
    The region has one button called IMPORT that when pressed will import the selected settings.
    It does this by using the 2 above mentioned package procedure to create a new saved report for you
    with the information form the repository. Be careful to match the right column with the right procedure
    parameter and to 'reverse' any DECODEs that the view has.
    - Region 2 - Shows a list of all your saved reports from V_REPORT_SETTINGS (filtered to only show yours)
    SELECT page_name,
    report_name
    FROM v_report_settings
    WHERE application_user = :APP_USER
    AND ( page_id = :P28_REPORT OR :P28_REPORT = 0 )
    ORDER BY page_name,
    report_name
    This is only needed to give you some feedback as to whether the import succeeded.
    A few proviso's:-
    a) I'm sure there's a better way to do all this but this works for me :-)
    b) This does not work for Computations! I have not found an API call to create computations.
    They will simply not come across into the repository.
    c) If you import the same settings twice I've made it so that the name is suffixed with (2), (3) etc.
    I did not find a way to update existing report settings. You can only create new ones.
    d) Make sure you refer to your saved reports by name, not ID, when matching APEX stored reports and the
    reports in your repository as the ID numbers may change if you re-import an application or if you
    auto-generate your screens/reports (as I do).
    Ruud
    >
    To me this is a bit too much of a hack and I personally wouldn't implement it - it's just an example to show it can be done.
    Also if you look here in the help in APEX Home > Adding Application Components > Creating Reports > Editing Interactive Reports
    ...and go to the last paragraph, you can embed predicates in the URL.
    Cheers
    Ben
    http://www.munkyben.wordpress.com
    Don't forget to mark replies helpful or correct ;)
    Edited by: Munky on Jul 30, 2009 8:03 AM

  • How to make business content available for reporting

    The business content is loaded.The version is 3.5.3 SP2 which we have and BW version is 3.5
    I can see the business content going thru RSA1 for e.g for Sales 0SD_O01 etc
    Now how can i make the content available for reporting.When I go in modeling and click on infoprovider, infoobject it doesnt show me anything.Its blank.
    Do i have to connect R/3 to BW for reporting or load data to BW from R/3 and do reporting.Why the content is not showing in modeling?How can i make it available for reporting

    Hi,
    First you need to install the Businesscontent object first...right side window in the business content will give you the option.once it is installed then u can view it in modeling then load data and do reporting...
    If you need any details..feel free to post..If u satisfied upto some level..exibhit it by awarding points..

  • How to make Book WSDL available for download?

    Hi,
    I would like to download Book WSDL v2.0. The Web service API document says "To download the Book WSDL, you must be given access to the Book object". However, i did not find any option inside "role management>record types access" to make it available for access.
    Can anyone explain how the BOOK WSDL can be enabled for download?
    Note: I am not using Trial Account.
    Thanks
    Ravish
    Edited by: 833189 on Mar 11, 2011 8:35 AM

    Thanks for input.
    I have ensured that "Company Profile > Company Data Visibility Settings > Display Book Selector" setting is enabled. I did not find any BOOK specific privilege under role management wizard.
    Can you please tell me the exact setting that i need to ensure for BOOK WSDL access?
    Note: My user's role is admin.

  • How to make Manufacturer Information Available For Display in SC

    Hello,
    We would like to make the Manufacturer Part Number and External Manufacturer available for display in the shoppng cart. Also, UNSPSC for that matter.  I know these are in the shopping cart as loaded from the external catalog but have not found anywhere in the HTML templates where they could be made available by uncommenting, like we did for Unloading Point. Are there provisions in the shopping cart to show this information?
    If not, how would you accomplish this?
    Thanks in advance for any assistance.

    Hi
    We have done similar requirements in our past previous SRM implementations.
    <u>It's not possible to enable the required fields - Manufacturer part number, External Mnaufacturer, UNSPSC, etc as these are not avaibale on the Standard HTML Templates of the Internet Service - BBPSC01 (using SE80 transaction).
    You need to go for adding customer fields to the Shopping cart Item level in this case.</u>
    Refer the following OSS notes which guides you how to create customer fields on the shopping cart ->
    <b>Note 458591 - User-defined fields: Preparation and use
    Note 672960 - User-defined fields 2</b>
    Refer the following forum links, which will definitely help ->
    <b>Custom UI fields on shoping cart
    Add custom field in SC -Item Level
    Customer field integration
    Derive GL code based on UNSPSC from catalog
    Custom fields not display in SRM5.5 Basic Data Frame
    BBPSC04 Custom Fields Addition Not working
    How to chage the display name in SC browser for the custome fields?
    <u>You can use several BADIs to map the data from Shopping cart to the Back end documents (Purchase Order, Purchase Req, Requistions, etc) using these Business Add-Ins.</u>
    <b>Refer to the  BADIs using transaction - SE18.</b>
    BBP_DOC_CHANGE_BADI
    BBP_DOC_CHECK_BADI
    BBP_CREATE_PO_BACK
    BBP_CREATE_REQ_BACK
    Note -> Please read the relevant Standard BADI definition documentation, before doing any coding for the custom BADI Implementations.
    Do let me know, incase you face any issues.
    Regards
    - Atul

  • How to make Steam library available for all users

    Hello!
    Can someone tell me - how to make my Steam library available to ALL users of my iMac without sharing a password?
    Or any other program of my account?

    Hard drive level Users/Sharing - Do a Get Info on the folder (command - I) and set permissions to everyone read/write, then click the gear at the bottom - Apply to Enclosed Items.

  • How to make the workflow available for Contract Template ? CLM

    Hi expert,
    It seems that no workflow can be defined in the Library Item Phase Configuration .
    The customer needs the approval workflow for the contract template also ,so does anyone know how to make it
    possible with configuration or Dev ?
    Your help is highly appreciated !
    Thanks a lot !
    Regards,
    Lilian

    Refer :
    7 Component Configuration Dependencies
    http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/core.902/a92171/compdep.htm#1008620
    Web Cache
    http://otn.oracle.com/docs/products/ias/doc_library/90200doc_otn/core.902/a92171/compdep.htm#1016697
    3.2.2 MIDTIER OPCA Mode
    http://portalcenter.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/CONFIGHTML/cgbasic.htm#1008246
    - Senthil

  • How to:Create a blank document, and how to make a font available for editin

    Two questions:
    1: How do I create a new PDF document? All I see is to create from an existing document or scanner. If I'm creating something from scratch, do I really have to load an existing PDF, delete everything and then start my new document? That's the way it seems, which is nuts!
    2: I have tried to edit the text in a document. I did not not create it, but it is open to editing. The font used in the document is "Arial", a very common font that comes with windows. The font is installed and I use it all the time in other Adobe apps. However when I try to edit a ducument using that font, I get a message that "the font is unavailable for editing" and it substitutes some random font. So why is it not available, and how do I make it available?
    Thanks!
    I'm using Adobe Acrobat XI Pro v.11.0.10 with Adobe Creative Cloud 2014 and Windows 7, all shown as up to date.

    For the first item...
    Here is a sample from the Acrobat SDK - JavaScript section:
    trustedNewDoc = app.trustedFunction( function (nWidth, nHeight)
            app.beginPriv();
                switch( arguments.length ) {
                    case 2:
                        app.newDoc( nWidth, nHeight );
                        break;
                    case 1:
                        app.newDoc( nWidth );
                        break;
                    default:
                        app.newDoc();
            app.endPriv();
        app.addSubMenu({ cName: "New", cParent: "File", nPos: 0 })
        app.addMenuItem({ cName: "Letter", cParent: "New", cExec:
            "trustedNewDoc();"});
        app.addMenuItem({ cName: "A4", cParent: "New", cExec:
            "trustedNewDoc(420,595)"});
        app.addMenuItem({ cName: "Custom...", cParent: "New", cExec:
            "var nWidth = app.response({ cQuestion:'Enter Width in Points',\
                cTitle: 'Custom Page Size'});"
            +"if (nWidth == null) nWidth = 612;"   
            +"var nHeight = app.response({ cQuestion:'Enter Height in Points',\
                cTitle: 'Custom Page Size'});"
            +"if (nHeight == null) nHeight = 792;"
            +"trustedNewDoc(nWidth, nHeight) "});
    Copy it into a text file and give it a name with a "*.js" file extension.
    Place the JS file in the JavaScripts folder:   C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Javascripts\
    Relaunch Acrobat and you should have a new menu item named "New"

  • How to make standard DSO available for reporting?

    In previous version I have Bex setting to make ODS for reporting but in new DSO I don't see this kind of seeting. Any Idea?
    Actually I want the DSO in the query designer to create an adhoc report.
    Thanks in advance.
    York

    hi,
    that option(bex reporting) is taken out from this version in the settings of dso object.
    by default all the three types of DSO object provide reporting on it.
    sap help document. check the following link
    http://help.sap.com/saphelp_nw04s/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    hope this help you
    regards
    harikrishna N

  • How make master data object available for ACR

    Hi,
    I remember that there is a program to run so that we can make the master data object available for ACR.
    i am not getting the program name. Please advice.
    Thanks,
    Dev

    Hi........
    If a master data is schedule for some changes...ie  InfoObjects and hierarchies that are planned for structural change are selected by default.........If u go to RSA1 >>  Administrator Workbench >> Tools >> Hierarchy/Attribute Changes from the menu...........If u click on Infoobject List or Hierachy List.........u will find that those infoobjects r already selected.....
    If u want to run ACR for some infoobjects manually.............either u can do it in RSA1..........by only selecting those infoobjects for which u want to run the ACR..........or u can also use the prog : RSDDS_AGGREGATES_MAINTAIN.........
    If that Particular infoobject is not there in the Infoobject or Hierarchy List in RSA1..............that means no structurak changes r required...........no need to run ACR..........
    Regards,
    Debjani.........

  • How to make any object self-shining?

    hi,
    i guess thats an easy question, but i dont know where to look for the answer.
    so how to make any object self-shining like the infamous colorcube, so that one does not need to place any light?
    and am I right in my assumption that doing so will reduce the need of rendering power, since lights dont have to be computed?
    thanx,
    Usul

    I'm not sure what you mean here- if your object is lit then lighting will need to be calculated. If you don't want shapes to be lit, I think you can disable it by calling setLightingEnable(false) in their materials.

  • How to make an object distributed across multiple jres?

    Hi,
    We used cache data mechanism for performance tuning. It will store data in static variable (Hashtable) and get initialized when app starts . We are using IPlanet Application Server and
    Using 6 KJS engines. This object ( Hashtable) is not distributed across all JRES.It has to reinitialize data again when request goes to any other KJS.
    We avoid sharing data in session and request, as data is huge.
    Can any one help us how to make this object distributed across all KJSs?
    Thanks in advance.
    raj

    We used cache data mechanism for performance tuning.
    It will store data in static variable (Hashtable) and
    get initialized when app starts.
    We are using IPlanet Application Server and
    Using 6 KJS engines. This object ( Hashtable) is not
    distributed across all JRES. It has to reinitialize
    data again when request goes to any other KJS.
    We avoid sharing data in session and request, as data
    is huge.
    Can any one help us how to make this object
    distributed across all KJSs?When you say 'initialized when app starts' do you mean iPlanets StartUp classes, rather than the Servlets init() ? Given a 'huge' dataset, avoid the latter.
    I'd suggest that a better approach is to implement this as an Entity Bean and accessed from Session bean and using Value Objects to return the data subsets.
    Checkout the Java Pet Store
    http://java.sun.com/blueprints/code/jps13/datasheet.html

  • HOw to make an Object oriented alv respond to double click

    Hi all,
    HOw to make an Object oriented alv respond to double click.SAmple code will be helpful.
    Thanks in advance,
    Alex.

    Hi,
    1. Create a Control (for Custom and Split Containers only)
    2. Instantiate a Container Object (in case of Custom and Split Containers, specify the control which is created by us in Screen painter) CREATE OBJECT
    3. Instantiate an Object of the kind of report that has to be displayed (List, Grid or Tree). CREATE OBJECT . Here we need to specify the Parent Container as the so that it sits in that container.
    4. Call appropriate methods to display the report on the screen. CALL METHOD ->
    DATA : g_dock TYPE REF TO cl_gui_docking_container,
    g_split TYPE REF TO cl_gui_easy_splitter_container,
    g_cont1 TYPE REF TO cl_gui_container,
    g_cont2 TYPE REF TO cl_gui_container,
    g_grid1 TYPE REF TO cl_gui_alv_grid,
    g_grid2 TYPE REF TO cl_gui_alv_grid.
    i_mara is an internal table of structure MARA
    SELECT * FROM mara INTO TABLE i_mara.
    i_kna1 is an internal table of structure KNA1
    SELECT * FROM kna1 INTO TABLE i_kna1.
    To create an Object of type Docking Container
    CREATE OBJECT g_dock
    EXPORTING
    side = cl_gui_docking_container=>dock_at_top
    extension = 200 .
    To Create an Object of Type Split Container. Here we can see that the Docking *Container Created above has been used as a parent .
    CREATE OBJECT g_split
    EXPORTING
    parent = g_dock
    orientation = 1 .
    Easy Split container splits one Control into 2 manageable controls, each of them is used * to handle one GUI Container each
    g_cont1 = g_split->top_left_container.
    g_cont2 = g_split->bottom_right_container.
    To Create an Object of type Grid . Here we can see that the Left Split Container * Created above has been used as a parent .
    CREATE OBJECT g_grid1
    EXPORTING
    i_parent = g_cont1 .
    To Create an Object of type Grid . Here we can see that the Right Split Container * Created above has been used as a parent .
    CREATE OBJECT g_grid2
    EXPORTING
    i_parent = g_cont2 .
    The method of Grid Control Object is used to display the Data.
    CALL METHOD g_grid1->set_table_for_first_display
    EXPORTING
    i_structure_name = 'MARA'
    CHANGING
    it_outtab = i_mara[] .
    The method of Grid Control Object is used to display the Data.
    CALL METHOD g_grid2->set_table_for_first_display
    EXPORTING
    i_structure_name = 'KNA1'
    CHANGING
    it_outtab = i_kna1[] .
    Regards
    Hari

  • How to make jar files availabe for deployed EJBs

    Hi,
    I'm interested on how to make jar files availabe for deployed EJBs.
    My EJB is packed in an ear. It uses a util jar. I now just add the jar to the
    classpath, but I think that shouldn't be the way. Is there somthing in the admin
    console to make jars available or do I have to insert it in the ear file? And
    if so, where do I hve to place it?
    Thanks
    Claudia

    Put the util.jar in the ear with your ejb jars - at the same level (i.e. in
    the root) - but do not include them in the manifest.xml.
    Also each ejb jar that refers to util.jar must have util.jar on its internal
    classpath in the manifest.
    "Claudia" <[email protected]> wrote in message
    news:3d537db5$[email protected]..
    >
    Hi,
    I'm interested on how to make jar files availabe for deployed EJBs.
    My EJB is packed in an ear. It uses a util jar. I now just add the jar tothe
    classpath, but I think that shouldn't be the way. Is there somthing in theadmin
    console to make jars available or do I have to insert it in the ear file?And
    if so, where do I hve to place it?
    Thanks
    Claudia

  • How to make a service available at boot.

    Can someone tell me how to make a service available at boot time via smf ? The question is for a generic service ( network/telnet for example ) and for a site one.
    Is it enough to enable it via svcadm ?
    Thanks.

    yeah all you need to do is
    svcadm enable /network/telnet
    this will enable the service then and next time when you boot the system
    (or i.e. svcadm disable apache2 if you want to disable the httpd)
    have you tried man on svcadm?
    Sharif

Maybe you are looking for

  • My image is missing

    Hello, When I open an Image in Photoshop CC the image does not appear in my work space. The tab identifies that the image is opened, layers shows the image is open, however it is not on the screen. All tools, brushes etc work, but I can't see what th

  • Dns server issues with business catalyst, website not loading

    Hi there, Trying to upload a new website and it has disappeared saying that the DNS lookup failed. Have checked settings under site management and all looks correct but its still not working any help would be great.

  • Contacts.Previously used Windows Outlook Contacts

    Transfered my Contacts from a windows laptop synched  Iphone then to MacBook.I have been editing one by one each contact, then checking the box "List by Company" .Windows outlook has ability to  list contact first by Company, then First name, then La

  • View files in a folder

    I wish to make a program that has the ability to view all text files within a folder. How easy/possible is this? I cant find any code on the internet and was wondering if any of you knew how? also I set the background colour of my frame to black (jf.

  • Can't open up downloaded *sit* files since Tiger upgrade

    Hello, I am having trouble trying to open downloaded sit files since upgrading to Tiger. I saw a similiar problem while browsing the forums but it didn't solve my problem. I "got info" on the file and tried to open with the Installer in the utilities