本文整理汇总了Java中org.wso2.carbon.base.api.ServerConfigurationService类的典型用法代码示例。如果您正苦于以下问题:Java ServerConfigurationService类的具体用法?Java ServerConfigurationService怎么用?Java ServerConfigurationService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ServerConfigurationService类属于org.wso2.carbon.base.api包,在下文中一共展示了ServerConfigurationService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:wso2,项目名称:carbon-identity-framework,代码行数:15,代码来源:IdentityCoreServiceComponent.java
示例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;
}
开发者ID:wso2,项目名称:carbon-identity-framework,代码行数:15,代码来源:UserStoreConfigComponent.java
示例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;
}
开发者ID:wso2,项目名称:carbon-identity-framework,代码行数:14,代码来源:UserStoreConfigComponent.java
示例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;
}
开发者ID:wso2-attic,项目名称:carbon-identity,代码行数:8,代码来源:UserStoreConfigComponent.java
示例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;
}
开发者ID:apache,项目名称:stratos,代码行数:10,代码来源:CarbonUIServiceComponent.java
示例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;
}
开发者ID:apache,项目名称:stratos,代码行数:18,代码来源:CarbonUIServiceComponent.java
示例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);
}
开发者ID:apache,项目名称:stratos,代码行数:6,代码来源:CarbonUIUtil.java
示例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;
}
开发者ID:apache,项目名称:stratos,代码行数:18,代码来源:CarbonUIUtil.java
示例9: getServerConfigurationService
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
public static ServerConfigurationService getServerConfigurationService() {
return IdentityCoreServiceComponent.serverConfigurationService;
}
开发者ID:wso2,项目名称:carbon-identity-framework,代码行数:4,代码来源:IdentityCoreServiceComponent.java
示例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;
}
开发者ID:wso2,项目名称:carbon-identity-framework,代码行数:7,代码来源:IdentityCoreServiceComponent.java
示例11: getServerConfigurationService
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
public static ServerConfigurationService getServerConfigurationService() {
return UserStoreConfigComponent.serverConfigurationService;
}
开发者ID:wso2,项目名称:carbon-identity-framework,代码行数:4,代码来源:UserStoreConfigComponent.java
示例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;
}
开发者ID:wso2,项目名称:carbon-identity-framework,代码行数:7,代码来源:UserStoreConfigComponent.java
示例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;
}
开发者ID:wso2,项目名称:carbon-identity-framework,代码行数:7,代码来源:UserStoreConfigComponent.java
示例14: getServerConfigurationService
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
public ServerConfigurationService getServerConfigurationService() {
return serverConfigurationService;
}
开发者ID:wso2-attic,项目名称:carbon-identity,代码行数:4,代码来源:OAuthUIServiceComponentHolder.java
示例15: setServerConfigurationService
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
public void setServerConfigurationService(ServerConfigurationService serverConfigurationService) {
this.serverConfigurationService = serverConfigurationService;
}
开发者ID:wso2-attic,项目名称:carbon-identity,代码行数:4,代码来源:OAuthUIServiceComponentHolder.java
示例16: setServerConfigurationService
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
protected void setServerConfigurationService(ServerConfigurationService serverConfigService) {
OAuthUIServiceComponentHolder.getInstance().setServerConfigurationService(serverConfigService);
log.debug("ServerConfigurationService instance was set.");
}
开发者ID:wso2-attic,项目名称:carbon-identity,代码行数:5,代码来源:OAuthUIServiceComponent.java
示例17: unsetServerConfigurationService
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
protected void unsetServerConfigurationService(ServerConfigurationService serverConfigService) {
OAuthUIServiceComponentHolder.getInstance().setServerConfigurationService(null);
log.debug("ServerConfigurationService instance was unset.");
}
开发者ID:wso2-attic,项目名称:carbon-identity,代码行数:5,代码来源:OAuthUIServiceComponent.java
示例18: setServerConfigurationService
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
protected void setServerConfigurationService(ServerConfigurationService serverConfigurationService) {
if (log.isDebugEnabled()) {
log.debug("Setting the serverConfigurationService");
}
UserStoreConfigComponent.serverConfigurationService = serverConfigurationService;
}
开发者ID:wso2-attic,项目名称:carbon-identity,代码行数:7,代码来源:UserStoreConfigComponent.java
示例19: setServerConfigurationService
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
public void setServerConfigurationService(
ServerConfigurationService serverConfigurationService) {
this.serverConfigurationService = serverConfigurationService;
}
开发者ID:wso2-attic,项目名称:carbon-identity,代码行数:5,代码来源:WorkflowImplServiceDataHolder.java
示例20: setServerConfigurationService
import org.wso2.carbon.base.api.ServerConfigurationService; //导入依赖的package包/类
protected void setServerConfigurationService(ServerConfigurationService serverConfiguration) {
SecurityServiceHolder.getInstance().setServerConfigurationService(serverConfiguration);
}
开发者ID:wso2,项目名称:carbon-registry,代码行数:4,代码来源:RegistrySecurityServiceComponent.java
注:本文中的org.wso2.carbon.base.api.ServerConfigurationService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论