|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts2.osgi.OsgiUtil
public class OsgiUtil
| Constructor Summary | |
|---|---|
OsgiUtil()
|
|
| Method Summary | |
|---|---|
static boolean |
containsBean(java.lang.Object beanFactory,
java.lang.String beanId)
Calls containsBean on the passed object using refelection. |
static java.lang.Object |
getBean(java.lang.Object beanFactory,
java.lang.String beanId)
Calls getBean() on the passed object using refelection. |
static java.net.URL |
translateBundleURLToJarURL(java.net.URL bundleUrl,
org.osgi.framework.Bundle bundle)
A bundle is a jar, and a bunble URL will be useless to clients, this method translates a URL to a resource inside a bundle from "bundle:something/path" to "jar:file:bundlelocation!/path" |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OsgiUtil()
| Method Detail |
|---|
public static java.net.URL translateBundleURLToJarURL(java.net.URL bundleUrl,
org.osgi.framework.Bundle bundle)
throws java.net.MalformedURLException
java.net.MalformedURLException
public static java.lang.Object getBean(java.lang.Object beanFactory,
java.lang.String beanId)
public static boolean containsBean(java.lang.Object beanFactory,
java.lang.String beanId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||