openesb-components/maven-ojc-archeType-v2/maven-archetype-binding-com.../src/main/resources/archetype-resources/jbiadapter/src/net/openesb/component/__componentName__/JMXBindingSUManager.java

52 lines
1.6 KiB
Java

#set( $symbol_pound = '#' )
#set( $symbol_dollar = '$' )
#set( $symbol_escape = '\' )
/*
* JMXBindingSUManager.java
*
*/
package net.openesb.component.${componentName};
import net.openesb.component.${componentName}.common.RuntimeHelper;
import net.openesb.component.${componentName}.common.deployment.AbstractServiceUnitManager;
import net.openesb.component.${componentName}.common.deployment.ServiceUnit;
import java.util.logging.Logger;
import javax.jbi.management.DeploymentException;
/**
* This class extends the AbstractServiceUnitManager to implement component
* specific service unit manager by creating the component specific ServiceUnit
* implementation.
*
* @see
* com.sun.jbi.sample.component.common.deployment.AbstractServiceUnitManager
* @see com.sun.jbi.sample.component.common.deployment.ServiceUnit
*
* @author chikkala
*/
public class JMXBindingSUManager extends AbstractServiceUnitManager {
private JMXBindingRuntime mRuntime;
/**
* Creates a new instance of JMXBindingSUManager
*/
public JMXBindingSUManager(JMXBindingRuntime compRuntime) {
super();
this.mRuntime = compRuntime;
}
protected Logger getLogger() {
return RuntimeHelper.getLogger();
}
protected String getComponentName() {
return RuntimeHelper.getComponentName();
}
//TODO implement ProviderSEServiceUnit
protected ServiceUnit createServiceUnit(String suName, String suRootPath) throws DeploymentException {
return new JMXBindingServiceUnit(suName, suRootPath);
}
}