Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.webengine.app
Class BundledApplication

java.lang.Object
  extended by javax.ws.rs.core.Application
      extended by org.nuxeo.ecm.webengine.app.BundledApplication

public class BundledApplication
extends javax.ws.rs.core.Application

A JAX-RS application deployed from a bundle.

This is a wrapper of the original application specified by the used in the the bundle MANIFEST. A bundle may deploy at most one application. A bundled application is uniquely identified by the type name of the wrapped application class.

Author:
Bogdan Stefanescu

Constructor Summary
BundledApplication(org.osgi.framework.Bundle bundle, javax.ws.rs.core.Application app)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 javax.ws.rs.core.Application getApplication()
           
 org.osgi.framework.Bundle getBundle()
           
 java.util.Set<java.lang.Class<?>> getClasses()
           
 java.lang.String getId()
          The application ID.
 java.util.Set<java.lang.Object> getSingletons()
           
 int hashCode()
           
 boolean isWebEngineModule()
           
 void reload(WebEngine engine)
          Reloads the application class in the context of web engine loader.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BundledApplication

public BundledApplication(org.osgi.framework.Bundle bundle,
                          javax.ws.rs.core.Application app)
Method Detail

reload

public void reload(WebEngine engine)
            throws java.lang.Exception
Reloads the application class in the context of web engine loader.

Throws:
java.lang.Exception

getId

public java.lang.String getId()
The application ID. This is the same as the bundle symbolic name owning the application.


isWebEngineModule

public boolean isWebEngineModule()

getBundle

public org.osgi.framework.Bundle getBundle()

getApplication

public javax.ws.rs.core.Application getApplication()

getClasses

public java.util.Set<java.lang.Class<?>> getClasses()
Overrides:
getClasses in class javax.ws.rs.core.Application

getSingletons

public java.util.Set<java.lang.Object> getSingletons()
Overrides:
getSingletons in class javax.ws.rs.core.Application

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.