本文整理汇总了Java中org.wso2.carbon.base.api.ServerConfigurationService类的典型用法代码示例。如果您正苦于以下问题:Java ServerConfigurationService类的具体用法?Java ServerConfigurationService怎么用?Java ServerConfigurationService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ServerConfigurationService类属于org.wso2.carbon.base.api包,在下文中一共展示了ServerConfigurationService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setServerConfigurationService
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
@Reference(
name = "server.configuration.service",
service = ServerConfigurationService.class,
cardinality = ReferenceCardinality.MANDATORY,
policy = ReferencePolicy.DYNAMIC,
unbind = "unsetServerConfigurationService"
)
protected void setServerConfigurationService(ServerConfigurationService serverConfigurationService) {
if (log.isDebugEnabled()) {
log.debug("Set the ServerConfiguration Service");
}
IdentityCoreServiceComponent.serverConfigurationService = serverConfigurationService;
}
示例2: setServerConfigurationService
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
@Reference(
name = "server.configuration.service",
service = ServerConfigurationService.class,
cardinality = ReferenceCardinality.MANDATORY,
policy = ReferencePolicy.DYNAMIC,
unbind = "unsetServerConfigurationService"
)
protected void setServerConfigurationService(ServerConfigurationService serverConfigurationService) {
if (log.isDebugEnabled()) {
log.debug("Set the ServerConfiguration Service");
}
UserStoreConfigComponent.serverConfigurationService = serverConfigurationService;
}
示例3: setServerConfigurationService
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
@Reference(
name = "server.configuration.service",
service = ServerConfigurationService.class,
cardinality = ReferenceCardinality.MANDATORY,
policy = ReferencePolicy.DYNAMIC,
unbind = "unsetServerConfigurationService"
)
protected void setServerConfigurationService(ServerConfigurationService serverConfigurationService) {
if (log.isDebugEnabled()) {
log.debug("Setting the serverConfigurationService");
}
UserStoreConfigComponent.serverConfigurationService = serverConfigurationService;
}
示例4: setServerConfigurationService
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
protected void setServerConfigurationService(ServerConfigurationService serverConfigurationService) {
if (log.isDebugEnabled()) {
log.debug("Set the ServerConfiguration Service");
}
UserStoreConfigComponent.serverConfigurationService = serverConfigurationService;
}
示例5: getServerConfiguration
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
public static ServerConfigurationService getServerConfiguration() {
if (serverConfiguration == null) {
String msg = "Before activating Carbon UI bundle, an instance of "
+ "ServerConfiguration Service should be in existence";
log.error(msg);
throw new RuntimeException(msg);
}
return serverConfiguration;
}
示例6: checkForLocalTransportMode
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
/**
* This method checks whether the management console is configured to run on the local transport.
* Check the ServerURL property in the carbon.xml.
* Set a system property if and only if the system is running on local transport.
*
* @param serverConfiguration Service configuration.
* @return boolean; true if running on local transport
*/
private boolean checkForLocalTransportMode(ServerConfigurationService serverConfiguration) {
String serverURL = serverConfiguration.getFirstProperty(CarbonConstants.SERVER_URL);
if(serverURL != null && (serverURL.startsWith("local") ||
serverURL.startsWith("Local") || serverURL.startsWith("LOCAL"))) {
System.setProperty(CarbonConstants.LOCAL_TRANSPORT_MODE_ENABLED, "true");
return true;
}
return false;
}
示例7: getServerURL
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
public static String getServerURL(ServerConfigurationService serverConfig) {
ConfigurationContext serverCfgCtx =
CarbonUIServiceComponent.getConfigurationContextService().getServerConfigContext();
return CarbonUtils.getServerURL(serverConfig, serverCfgCtx);
}
示例8: getServerConfigurationProperty
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
/**
* Get a ServerConfiguration Property
*
* @param propertyName Name of the property
* @return the property
*/
public static String getServerConfigurationProperty(String propertyName) {
try {
ServerConfigurationService serverConfig = CarbonUIServiceComponent.getServerConfiguration();
return serverConfig.getFirstProperty(propertyName);
} catch (Exception e) {
String msg = "ServerConfiguration Service not available";
log.error(msg, e);
}
return null;
}
示例9: getServerConfigurationService
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
public static ServerConfigurationService getServerConfigurationService() {
return IdentityCoreServiceComponent.serverConfigurationService;
}
示例10: unsetServerConfigurationService
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
protected void unsetServerConfigurationService(ServerConfigurationService serverConfigurationService) {
if (log.isDebugEnabled()) {
log.debug("Unset the ServerConfiguration Service");
}
IdentityCoreServiceComponent.serverConfigurationService = null;
}
示例11: getServerConfigurationService
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
public static ServerConfigurationService getServerConfigurationService() {
return UserStoreConfigComponent.serverConfigurationService;
}
示例12: unsetServerConfigurationService
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
protected void unsetServerConfigurationService(ServerConfigurationService serverConfigurationService) {
if (log.isDebugEnabled()) {
log.debug("Unset the ServerConfiguration Service");
}
UserStoreConfigComponent.serverConfigurationService = null;
}
示例13: unsetServerConfigurationService
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
protected void unsetServerConfigurationService(ServerConfigurationService serverConfigurationService) {
if (log.isDebugEnabled()) {
log.debug("Unsetting the ServerConfigurationService");
}
UserStoreConfigComponent.serverConfigurationService = null;
}
示例14: getServerConfigurationService
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
public ServerConfigurationService getServerConfigurationService() {
return serverConfigurationService;
}
示例15: setServerConfigurationService
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
public void setServerConfigurationService(ServerConfigurationService serverConfigurationService) {
this.serverConfigurationService = serverConfigurationService;
}