You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Sandro Martini (JIRA)" <ji...@apache.org> on 2014/10/29 15:40:34 UTC

[jira] [Closed] (PIVOT-919) Add functions to get the applet class that was running in the BrowserApplicationContext class

     [ https://issues.apache.org/jira/browse/PIVOT-919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sandro Martini closed PIVOT-919.
--------------------------------
    Resolution: Later

Be free to reopen if/when needed (and confirmed that it's safe from a security point of view, and it's still a feature needed).

> Add functions to get the applet class that was running in the BrowserApplicationContext class
> ---------------------------------------------------------------------------------------------
>
>                 Key: PIVOT-919
>                 URL: https://issues.apache.org/jira/browse/PIVOT-919
>             Project: Pivot
>          Issue Type: Wish
>          Components: wtk
>    Affects Versions: 2.0.3
>         Environment: All OS's with Version 2.0.3
>            Reporter: Sven Leiber
>            Assignee: Sandro Martini
>            Priority: Minor
>              Labels: patch
>             Fix For: 2.1
>
>
> I think it was a missing function to get the applet classes from the BrowserApplicationContext. I think we can add there two functions:
>     public static HostApplet getApplet(String name) {
>         if (name == null) {
>             throw new IllegalArgumentException("name is null.");
>         }
>         for (HostApplet hostApplet : hostApplets) {
>             if (hostApplet.getName().equals(name)) {
>             	return hostApplet;
>             }
>         }
>         return null;
>     }
>     public static HostApplet getApplet() {
>     	if(isActive()) {
>     		return hostApplets.get(0);
>     	}
>     	return null;
>     }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)