blob: c5adafb358c104766a0e973db5e07a6846454766 [file] [log] [blame]
package org.apache.pluto.driver.container;
import org.apache.pluto.container.driver.PlutoServicesRegistry;
import org.apache.pluto.container.driver.PortalDriverServices;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
public class PlutoServicesRegistryBean implements InitializingBean, DisposableBean {
private PortalDriverServices portalDriverServices;
public PlutoServicesRegistryBean(PortalDriverServices portalDriverServices) {
this.portalDriverServices = portalDriverServices;
}
public void afterPropertiesSet() throws Exception {
PlutoServicesRegistry.registerPortalDriverServices(portalDriverServices);
}
public void destroy() throws Exception {
PlutoServicesRegistry.unregisterPortalDriverServices(portalDriverServices);
}
}