
org.ow2.petals.se.ase.admin.ComponentAdmin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of petals-se-ase Show documentation
Show all versions of petals-se-ase Show documentation
petals-se-ase Service Engine description
The newest version!
/**
* Copyright (c) 2011-2012 EBM WebSourcing, 2012-2023 Linagora
*
* This program/library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 2.1 of the License, or (at your
* option) any later version.
*
* This program/library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
* for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program/library; If not, see http://www.gnu.org/licenses/
* for the GNU Lesser General Public License version 2.1.
*/
package org.ow2.petals.se.ase.admin;
import org.ow2.petals.component.framework.api.configuration.ConfigurationExtensions;
import org.ow2.petals.se.ase.EpConfiguration;
/**
* @author Pierre-Yves Gibello - EBM WebSourcing
*/
public class ComponentAdmin implements ComponentAdminMBean {
ConfigurationExtensions ext_;
public ComponentAdmin(ConfigurationExtensions ext) {
ext_ = ext;
}
/* (non-Javadoc)
* @see org.ow2.petals.se.ase.admin.AseComponentMBean#getJavaNamingFactoryInitial()
*/
@Override
public String getJavaNamingFactoryInitial() {
return ext_.get(EpConfiguration.JAVA_NAMING_FACTORY_INITIAL);
}
/* (non-Javadoc)
* @see org.ow2.petals.se.ase.admin.AseComponentMBean#getJavaNamingProviderUrl()
*/
@Override
public String getJavaNamingProviderUrl() {
return ext_.get(EpConfiguration.JAVA_NAMING_PROVIDER_URL);
}
/* (non-Javadoc)
* @see org.ow2.petals.se.ase.admin.AseComponentMBean#getJavaJmsConnectionFactoryJndiname()
*/
@Override
public String getJmsConnectionFactoryJndiname() {
return ext_.get(EpConfiguration.JMS_CONNECTION_FACTORY_JNDINAME);
}
@Override
public String getActivemqConnectionUser() {
return ext_.get(EpConfiguration.ACTIVEMQ_CONNECTION_USER);
}
@Override
public String getActivemqConnectionPassword() {
return ext_.get(EpConfiguration.ACTIVEMQ_CONNECTION_PASSWORD);
}
@Override
public String getActivemqBrokerUrl() {
return ext_.get(EpConfiguration.ACTIVEMQ_BROKER_URL);
}
@Override
public int getStopTimeout() {
return Integer.parseInt(ext_.get(EpConfiguration.STOP_TIMEOUT));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy