Way to get list classes in Application?

Is there a way to list all the classes in the application (all the imports)?
I would like to be able to get ahold of a list of the classes using the Compiler API or just in Actionscript.
Thanks for your help,
Lance

One option is to look at a link-report.  It basically tells you all the classes that get linked in to a swf (and all the dependencies each class has).  It's a compiler option, and you can find out more info about it here: http://livedocs.adobe.com/flex/3/html/help.html?content=performance_06.html .  There are also some application written to help make more sense of this file, like: http://joeberkovitz.com/blog/2008/03/26/itdepends-code-dependency-analysis-for-flexair-app lications/
Hope that helps,
Ryan

Similar Messages

  • How to get list of deployed application on server programatically?

    Hi,
    I am trying to build an application which will display list application(WebDynpro , Portal) deployed on portal server. In EP 7.0 we can go to Content Admin -> WebDynpro  page to get list of WebDynpro  application. Par files can be found under portal runtime->browse deployment page.
    In CE we have nice feature which shows both portal application and WebDynpro  application in content Admin->portal content list.
    I want to find list of applications programmatically, is there any way to achieve this? Are there any apis where I should take a look at.
    Thanks,
    Nitesh Shelar

    Hi,
    Thank you for your reply.
    I tried using
    String[] applications = WDServerState.getActualApplications();
    I am getting following exception.
    java.lang.UnsupportedOperationException: Not longer supported starting with NW07.
        at com.sap.tc.webdynpro.serverimpl.core.admin.AbstractServerState.getActualApplications(AbstractServerState.java:133)
        at com.sap.tc.webdynpro.services.sal.admin.api.WDServerState.getActualApplications(WDServerState.java:52)
    Do you know Any other api which I can use?
    Regards,
    Nitesh Shelar

  • Question re-posted: Way to get events from outside application

    Hello,
    FatCo asked this question but has not got a reply. I have the same question, so I re-post it, hoping someone could give us help. How can we write JNI code to do it on a Windows OS? Assume appliction 2 is a Internet Explorer.
    Thank you!
    --Bin
    Author: FaTCo Sep 24, 2002 1:17 PM
    Hello,
    is there a way to get events from other applications, either native or java applications?
    For example application 1 (Java or not) is getting minimized, is there a way to notice application 2 (Java) about that?

    I am not really a Windows programmer so I cannot say how you can get the event notification in C(++) but if you can get it there then there should be no particular problem communicating that information to Java.
    This might take the form of creating a thread (all threads are native threads on Windows) which blocks on receiving this event and then notifies the rest of the application somehow, maybe by setting a global flag, using Object.notify() to wake up some other thread to do the processing, or simply by calling a Java method to do all the necessary handling before returning. But there is nothing special about this part.
    It all depends on how you can receive the event notification in C++.

  • Is a way to get some classes loaded?

    I run into a problem today. After the main class is up, a "java.lang.NoClassDefFoundError" exception is thrown while running. The class is located in the same directory as the main class.
    After I turn on the verbose option, I find the class is not loaded at the point when the main class is up. Although it is loaded after the exception occurs, the exception still occurs.
    I guess for the limited memory reason not all classes are loaded. Is any way I can get some classes loaded first?
    Thanks for your input.
    v.

    This will not help you current problem, which sounds like either a class path problem, but
    Is any way I can get some classes loaded first?To get a class to be loaded by the JVM, you can use Class.forName("class name"). To force it to load early in the application life (not first, as the main + Java classes will come before it) use the static initalizer, i.e.class Main {
      static {
        Class.forName("Jeff");
    }Your second, unloading class, is it packaged correctly? And has it be compiled?

  • Best way To get data from another application using NDDE lbrary

    My vb.net application gets data from another application using NDDE Library. I got stocks prices (open,high,low,close,volume,change......(about 15 records for each stock)) (about 200 stocks) . I don't know if there is a problem in my code.
    This is my code:
    l : is the list of stocks.
    This Sub connects to server and requests the data :
    Public Shared Sub GetQuotes()
    Try
    client1 = New DdeClient(server, topic)
    client1.Connect()
    For i As Integer = 0 To l.Count - 1
    client1.StartAdvise("QO." & l(i).t & ".TAD$last", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$open", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$high", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$low", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$pclose", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$volume", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$date", 1, True, 60000)
    client1.StartAdvise("QO." & l(i).t & ".TAD$time", 1, True, 60000)
    Next
    Catch ex As Exception
    MsgBox(ex.Message)
    End Try
    End Sub
    and then I get the data from Client_advise sub (called each time a value changed )and fill the list. What I know is that client advise gets only one record for single stock each time is called..
    Example: for stock AAPL. 1st time enters client_Advise I get open price for AAPL, 2nd time I get high price for AAPL,3rd time I get low price..... and I update the value in the List (l)
    This the client_Advise Sub:
    Private Shared Sub client1_Advise(ByVal sender As Object, ByVal e As NDde.Client.DdeAdviseEventArgs) Handles client1.Advise
    For q As Integer = 0 To l.Count - 1
    If l(q).t = w(1) Then
    Dim item() As String = e.Item.Split("$")
    If l(q).Open = "#" Then
    l(q).Open = "0"
    End If
    If l(q).hi = "#" Then
    l(q).hi = "0"
    End If
    If l(q).lo = "#" Then
    l(q).lo = "0"
    End If
    If l(q).Close = "" Or l(q).Close = "#" Then
    l(q).Close = "0"
    End If
    If l(q).pclose = "#" Then
    l(q).pclose = "0"
    End If
    If item(1) = "open" Then
    l(q).Open = Format(Val(e.Text), "0.00")
    ElseIf item(1) = "last" Then
    l(q).Close = Format(Val(e.Text), "0.00")
    ElseIf item(1) = "high" Then
    l(q).hi = Format(Val(e.Text), "0.00")
    ElseIf item(1) = "volume" Then
    l(q).Volume = Val(e.Text)
    ElseIf item(1) = "low" Then
    l(q).lo = Format(Val(e.Text), "0.00")
    ElseIf item(1) = "pclose" Then
    l(q).pclose = Format(Val(e.Text), "0.00")
    If l(q).pclose <> "" And l(q).pclose <> "#" And l(q).Close <> "" And l(q).Close <> "#" Then
    l(q).c = Format(l(q).Close - l(q).pclose, "0.00")
    l(q).cp = Format(((l(q).Close - l(q).pclose) / l(q).pclose) * 100, "0.00")
    End If
    l(q).flag1 = 2
    ElseIf item(1) = "date" Then
    l(q).Date1 = e.Text
    ElseIf item(1) = "time" Then
    l(q).Time = e.Text
    End If
    Exit For
    End If
    Next
    End Sub
    Am I doing something wrong which inreases CPU usage to 80 or 90 % ?
    Thanks in advance.

    Hi MikeHammadi,
    According to your description, you'd like to get data from another app using NDDE library.
    When using the NDDE library, the CPU usage is high. As the NDDE library is third-party library, it is not supported here. I suggest you checking if the problem is caused by the NDDE library.
    If you'd like to get data from another app. I suggest you could save the data in the dataBase, and then read it in another application if necessary.
    If you have any other concern regarding this issue, please feel free to let me know.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Question: is there any way to get entity class in JPQL query

    Hello, I'm using J*dev 11gR1 adn JPA with EclipceLink*.
    Let's consider such example
    @Entity
    @Table(name="ANIMALS")
    @Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
    public class Animal implements Serializable {
    @Entity
    @Table(name = "CATS")
    public class Cat extends Animal implements Serializable{
    @Entity
    @Table(name = "DOGS")
    public class Dog extends Animal implements Serializable{
    }I need to build a query which will be translated to something like this SQL query:
    SELECT * FROM CATS
    UNION ALL
    SELECT * FROM DOGS
    ORDER BY ...So I need a way to query not all child entities from DB.
    P.S. Yes, I know, that I can execute query on panent entity (select a from Animal a order by ...) and then loop throught the result list and delete not needed objects OR I can execute some queries on needed child entities and then merge them into one list and sort it, BUT both ways it will be much slower than generetion of needed SQL query straight to DB.
    I know, that in Hibernate's HQL there is a way to build such query with something like this:
    select * from Animal a where a.class = Cat or a.class = Dog

    In JPA 2.0 which we are implementing right now you will be able to execute queries like:
    SELECT a FROM Animal a  WHERE TYPE(a) IN (Cat, Dog)The next draft of the specification contains a section which describes the feature in detail and provides more examples of its use:
    4.6.17.4 Entity Type Expressions
    An entity type expression can be used to restrict query polymorphism. The TYPE operator returns the
    exact type of the argument.I have also been working with some customers on similar capabilities using the current versions of EclipseLink. The examples are documented here:
    http://wiki.eclipse.org/EclipseLink/Development/JPA/QueryDownCast
    I hope this helps,
    Doug

  • How to get the class file of jar file

    hello all,
    is there any way to get the class file of jar file,as we have when we compile a java file we get class file
    same do we have any option to get the class file of jar file

    A jar file is a zip archive, so you can uznip it or extract the contents with the command "jar" - if it is what you need.

  • Get the Class of something i have in mind

    i found 2 ways of getting the class of a type
    1. return Class.forName("Boolean");
    2. static Boolean aBoolean = new Boolean(true);
    return aBoolean.getClass();
    the first one throws an exception and in the second one i have to create a random object. is there a nicer way to do this?

    You have to use the fully qualified class names with Class.forName... for Boolean it is java.lang.Boolean.
    Two ways that don't create unnecessary objects:
    1. return Class.forName("java.lang.Boolean");
    2. return Boolean.class;
    and if you wanted the class of the primitive type boolean you can use Boolean.TYPE or boolean.class...

  • Get-WmiObject -class win32_product doesn't list all installed Applications

    Hello
    in my test win server 2012 R2 datacenter, i have installed some applications such as mozilla firefox, Advanced renamer, office, Acrobat reader.
    Get-WmiObject -class win32_product
    Get-CimInstance -class win32_product
    when i run either of the following commands to get the list of all installed Applications, system doesn't list some of them in result . for example office & Google chrome & some others
    are shown but Mozilla Firefox & Advanced renamer & some others
    are not ! 
    a searched a lot but found nothing.
    any idea?

    You need to run as 32 bit to get the 32 bit applications like firefox and Acrobat.  Run a 32 bit session and the alternates will be available or...get a script that can read this from the registry
    https://gallery.technet.microsoft.com/scriptcenter/Get-Installed-Application-615fa73a
    ¯\_(ツ)_/¯
    thanks for great guide.
    i also fund these:
    http://myitforum.com/cs2/blogs/gramsey/archive/2011/01/25/win32-product-is-evil.aspx
    https://gallery.technet.microsoft.com/scriptcenter/Get-RemoteProgram-Get-list-de9fd2b4

  • How to get, from a remote application, list of groups & users?

    I need to get list of groups, and users in a group,
    and profile of a user of weblogic
    from a remote application.
    Do I need to use classes from com.bea.p13n.security.management.authentication? How?

    2 ways.. u might be able to set up trust between the domains or something and then call the UserManager and GroupManager EJBs.
    Or if u are using RDBMS authentication, you can just go against the database and write u'r own queries.
    Kunal

  • How to get a list of every application on my computer?

    I'm trying to figure out how to get a list of every application on my computer using applescript. I know it is possible for the system to do this, as evidenced by the dialog you get when you use the "choose application" function. Other examples are doing a spotlight search for "kind:app" or programs like Namely or QuickSilver.
    Is there a way to do this in applescript? The only solution I've come up with so far is to use the command:
    <pre>set everyapplicationaliases to choose application as alias with multiple selections allowed</pre>
    and manually select all on the resulting dialog. I can then take the results and go from there, however there are a few significant problems with this approach.
    1. It requires user interaction. (I have an idea for some future applications that could use this functionality if it can be done without user input.)
    2. It's horribly slow. As a test run I choose all the applications from the dialog, extracted some basic info and put the result on the clipboard. It took a couple of minutes to complete this relatively basic task. In comparison, running the aforementioned spotlight search took maybe ten seconds.
    Thanks in advance!
    best,
    peter

    For these specific queries my results are...
    set appList to paragraphs of (do shell script "mdfind \"(kMDItemKind = 'application'c) || (kMDItemKind = 'widget'c)\"")
    3082
    set appList to paragraphs of (do shell script "mdfind \"(kMDItemKind = 'Application'c) || (kMDItemKind = 'Widget'c) ||
    ((kMDItemContentTypeTree = 'com.apple.application') && (kMDItemContentType != com.apple.mail.emlx) && (kMDItemContentType != public.vcard))\"")
    3115
    I think I finally found some numbers that make sense!
    When I search for Kind:Application by the Command+F method in the Finder, I get a total of 2521 items, of which 2477 are "Applications" and 44 are "Other".
    (Just by eyeballing it, "Other" seems to include some Classic Apps and some .bundle files.)
    The total # found by this method (2521) plus the number of Widgets found using mdfind (318) equals the number of total number of items found by spotlight (2839).
    I also noticed that these numbers almost equal the spotlight number:
    mdfind results for kMDItemKind:
    Widgets: 318
    Applications: 1684
    Classic*: 795
    and
    Command+F "Other" items: 44
    3181684+79544 = 2841
    It may be a fluke that this is so close to the 2839 spotlight gives, or maybe there's an overlap somewhere...
    Tying this back into my initial question, it seems like the original mdfind command for Applications is probably the best answer for what I was looking for,
    since I wasn't really thinking about Classic apps and Widgets anyway.

  • Get list of classes present in an applet's Jar file?

    I have an applet for drawing diagrams, which is bundled in a jarfile together with classes for each type of element in the drawing (e.g. a class for drawing 2-input NAND gates, a class for J-K flip-flops, and so on). When I add a new type of drawing element I have to modify the applet to add the new class to the applet's "Insert" menu to allow the element to be inserted. What I want to do is to search the jarfile containing the applet for any classes derived from DrawingElement and add them automatically to the Insert menu when the applet is inited. I presume this would require using getClass().getClassLoader() to get the class loader that read the JAR file, but from there it would seem I need to know the name of the resource to load. Is there a way of browsing the list of resources in the JAR file?

    AndrewThompson64 wrote:
    That 'modify the applet' is not strictly necessary. The list of menu items and classes might be passed to the applet as applet parameters, or as a property file or XML (or whatever) that defines the available elements.I could do this -- I'm just trying to avoid getting the list out of step with the contents (or if you prefer, I'm just being lazy!).
    Is there a way of browsing the list of resources in the JAR file?Yes and no. You might try this general strategy (untested).
    1) Gain an URL to a resource in the Jar in which the plug-ins exist.
    2) Parse that URL for everything before the '!' symbol to get an URL for the Jar itself.
    3) Get an InputStream from the Jar via URL.openStream().
    4) Get a ZipInputStream by wrapping the InputStream.
    5) Iterate the ZipEntry(s) to identify classes in the correct package, and store them in a collection of some type.
    6) Iterate the collection and check each one for extending DrawingElement, using reflection.
    I am guessing step 6 will require the applet to be trusted.Sounds plausible, and I'll give it a whirl. However, I hadn't thought about the "trusted" bit of this; maybe I can just create new instances and cast to DrawingElement, ignoring any that throw exceptions. I'll have to give it a go and see what happens.
    BTW - once you have the right classes, how do you get the screen name of them? Is the name defined in one of the attributes of a DrawingElement? What prevents name clashes?Plan A: I have a getIdentification() method that returns a string identifying the element, but I have to keep this unique the hard way (by hand).
    Plan B: use the class name with some prettification (e.g. have a class _2_input_NAND_gate which gets displayed as "2 input NAND gate") so that the compiler does the work of keeping it unique. Not sure I like this, though.
    Many thanks for your help.

  • Getting list of classes?

    Hello all, I was just wondering if there is any way to get a list of all the known classes in a certain package? I know I can get a list of the packages themselves, but not sure about how to go about getting the actual classes.
    Thanks for the help!
    -Nick

    If you only want to get a classes list from a jar package,read the api specof java.uitil.jar.
    java.uitil.jar privides classes for reading and writing the jar file.
    So I think it can satisify your requirement.

  • Recommended way of getting entity manager from pojo class

    Hi,
    In our application we have the need or retrieving entity manager from 'pojo' classes.
    More specifically we have singleton classes which act as 'data' repositories and are accessed from both servlets and ejb.
    I'm aware that the repositories classes might be problematic, but in the current stage we can't perform significant change in application structure so I am looking for a 'fast' solution as possible.
    The best way will be to lookup entityt manager in JNDI, but as I undestand this feature is not avaialabe in weblogic.
    I understand that the preffered way for getting entity manager in such situation is by using @PersistenceUnit annotion on the calling location and lookup entityManager by that name in the pojo. This is however problematic for us since since we access the repositories from variouse locations (many different classes).
    Possible additional solutions we thought of:
    - creating an 'entity manager factory' locator ejb. This is an ejb with no transaction attribute, which has one method getEntityManagerFactory. It injects entityManagerFactory and returns it. This is the fastest soltion to implement. Is this a valid one?
    - using application managed entity manager in such situations. We have a problem doing so now because the creation seems to fail for variouse reasons.
    What is the recommended way?
    Thanks.

    To obtain an EntityManager instance, first must obtain an EntityManagerFactory instance by injecting it into the application component by means of the javax.persistence.PersistenceUnit annotation:
    @PersistenceUnit
    EntityManagerFactory emf;
    Then, obtain an EntityManager from the EntityManagerFactory instance:
    EntityManager em = emf.createEntityManager();
    http://download.oracle.com/javaee/5/tutorial/doc/bnbqw.html
    Edited by: dvohra16 on Apr 14, 2011 5:06 PM

  • Easiest way to get a list of checkboxes in a drawer

    I am trying to populate a drawer with a list of check boxes.
    I have tried putting an NSTableView into the drawer and then binding the first column to an NSArrayController on my custom class. I tried binding the NSArrayController to an NSArray on my class which contained NSButtonCell objects. This did not produce the checkboxes. Instead it produced cells with numbers in them. Then I tried dragging the nsbuttoncell into the NSTableColumn to try and set its cell type then provide the array controller with an array of strings for the check box strings. This also did not work.
    What is the best way to get the list of check boxes into the drawer.

    In your example
    [object[]].GetMembers('Instance, Public') |
    Format-Table -AutoSize -Property Name, MemberType,
    Label = 'Definition';
    Expression = { $_.ToString()}
    what is the argument to GetMembers coded as 'Instance, Public' ?
    Is this the same method as documented at
    http://msdn.microsoft.com/en-us/library/system.type.getmembers(v=vs.110).aspx
    http://msdn.microsoft.com/en-us/library/k2w5ey1e(v=vs.110).aspx

Maybe you are looking for

  • Fotos from pc to iphone 4

    i had an iphone 3gs and 22000 fotos the space required was 5 GB now with iphone 4 i need more than 32 GB is there a solution?

  • Please help me to create an inheritance

    I have two classes for one project and I have to add third class to use inheritance so that there are two kinds of products: products that can be backordered and products that cannot. Products 0-4 are of the type that can be backordered and products

  • How to integrate MS Office 2007 including outlook 2007 with SAP B1 2005B

    dear all, I am using SAP B1 2005B version. I want to integrate it with MS office 2007. Also outlook 2007 must also be integrated along with excel, word etc as I do outlook integration also. can any one tell me how to make this happen... please help m

  • Apple charge to download free apps

    Dear Apple, Since when can u charge for free apps, if I or any other customers wanted to pay for apps we wouldn't write FREE   in the search bar✋  I WANT MY MONEY BACK FOR THE FREE APP I DOWNLOADED!!

  • Data down in NYC?

    I work in downtown Manhattan (World Trade Center) and haven't had a data signal of any sort for a couple of hours. Anyone else having this problem?