本文整理了Java中org.wso2.carbon.config.annotation.Element.<init>()
方法的一些代码示例,展示了Element.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.<init>()
方法的具体详情如下:
包路径:org.wso2.carbon.config.annotation.Element
类名称:Element
方法名:<init>
暂无
代码示例来源:origin: org.wso2.carbon.dashboards/org.wso2.carbon.dashboards.core
/**
* This is the bean class for Role in deployment yaml.
*/
public class Roles {
@Element(description = "list of dashboard creator roles")
private List<String> creators = Collections.emptyList();
public List<String> getCreators() {
return creators;
}
}
代码示例来源:origin: org.wso2.carbon.analytics-common/org.wso2.carbon.analytics.idp.client
/**
* User manager Element.
*/
@Configuration(description = "User Manager Element")
public class UserManagerElement {
@Element(description = "Admin Role - Display name of the role defined in the user store", required = true)
private String adminRole = "admin";
@Element(description = "User Store")
private UserStoreElement userStore = new UserStoreElement();
public String getAdminRole() {
return adminRole;
}
public UserStoreElement getUserStore() {
return userStore;
}
}
代码示例来源:origin: org.wso2.carbon.auth/org.wso2.carbon.auth.rest.api.authenticators
/**
* Configuration for Authentication Interceptor
*/
@Configuration(namespace = "wso2.carbon.authenticator", description = "Security Configuration Parameters")
public class SecurityConfiguration {
@Element(description = "list of web clients (eg: 127.0.0.1:9443) to allow make requests to allow any web client)")
private List<String> allowedHosts = Collections.singletonList("*");
@Element(description = "Mapping of authenticator")
private Map<String, Map<String, String>> authenticator = new HashMap<>();
public List<String> getAllowedHosts() {
return allowedHosts;
}
public Map<String, Map<String, String>> getAuthenticator() {
return authenticator;
}
}
代码示例来源:origin: org.wso2.carbon.analytics-common/org.wso2.carbon.analytics.idp.client
/**
* User store Element.
*/
@Configuration(description = "User Store Element")
public class UserStoreElement {
@Element(description = "Groups", required = true)
private List<RoleElement> roles = Collections.singletonList(new RoleElement());
@Element(description = "Users", required = true)
private List<UserElement> users = Collections.singletonList(new UserElement());
public List<UserElement> getUsers() {
return users;
}
public List<RoleElement> getRoles() {
return roles;
}
}
代码示例来源:origin: org.wso2.carbon.analytics-common/org.wso2.carbon.analytics.idp.client
/**
* REST API Authentication config Element.
*/
@Configuration(description = "REST API Auth configurations")
public class RESTAPIConfigurationElement {
@Element(description = "Enable authentication for REST API", required = true)
private String authEnable = "true";
@Element(description = "APIs to be excluded when auth is enabled", required = true)
private List<String> exclude = new ArrayList<>();
public String getAuthEnable() {
return authEnable;
}
public List<String> getExclude() {
return exclude;
}
}
代码示例来源:origin: org.wso2.carbon.analytics-common/org.wso2.carbon.analytics.idp.client
/**
* Role Child Element.
*/
@Configuration(description = "Role Child Element configuration")
public class RoleChildElement {
@Element(description = "Role Id", required = true)
private String id = "1";
@Element(description = "Role Display Name", required = true)
private String displayName = "admin";
public String getId() {
return id;
}
public String getDisplayName() {
return displayName;
}
}
代码示例来源:origin: wso2/carbon-kernel
/**
* Config bean for pendingCapabilityTimer.
*/
@Configuration(description = "Configuration for the timer task which checks " +
"for pending Capabilities")
public class PendingCapabilityTimer {
@Element(description = "delay in milliseconds before task is to be executed")
private long delay = 60000;
@Element(description = "time in milliseconds between successive task executions")
private long period = 30000;
public long getDelay() {
return delay;
}
public long getPeriod() {
return period;
}
}
代码示例来源:origin: wso2/carbon-kernel
/**
* Config bean for pendingCapabilityTimer.
*/
@Configuration(description = "Configuration for the timer task which checks " +
"for satisfiable RequiredCapabilityListeners periodically")
public class CapabilityListenerTimer {
@Element(description = "delay in milliseconds before task is to be executed")
private long delay = 20;
@Element(description = "time in milliseconds between successive task executions")
private long period = 20;
public long getDelay() {
return delay;
}
public long getPeriod() {
return period;
}
}
代码示例来源:origin: org.wso2.carbon.analytics/org.wso2.carbon.stream.processor.common
/**
* A third level configuration bean class for siddhi extension config.
*/
@Configuration(description = "Extension configuration")
public class Extension {
@Element(description = "A string field")
private ExtensionChildConfiguration extension = new ExtensionChildConfiguration();
public ExtensionChildConfiguration getExtension() {
return extension;
}
}
代码示例来源:origin: org.wso2.carbon.analytics/org.wso2.carbon.stream.processor.common
/**
* A third level configuration bean class for siddhi reference config.
*/
@Configuration(description = "Reference configuration")
public class Reference {
@Element(description = "A string field")
private ReferenceChildConfiguration ref = new ReferenceChildConfiguration();
public ReferenceChildConfiguration getReference() {
return ref;
}
}
代码示例来源:origin: org.wso2.carbon.analytics-common/org.wso2.carbon.analytics.idp.client
/**
* Role Element.
*/
@Configuration(description = "Role Element")
public class RoleElement {
@Element(description = "Role Child Element", required = true)
private RoleChildElement role = new RoleChildElement();
public RoleChildElement getRole() {
return role;
}
}
代码示例来源:origin: org.wso2.carbon.analytics-common/org.wso2.carbon.analytics.idp.client
/**
* User Element.
*/
@Configuration(description = "User Element")
public class UserElement {
@Element(description = "User Child Element", required = true)
private UserChildElement user = new UserChildElement();
public UserChildElement getUser() {
return user;
}
}
代码示例来源:origin: org.wso2.carbon.analytics/org.wso2.carbon.siddhi.editor.core
/**
* Represents Docker configurations in the deployment.yaml.
*/
@Configuration(namespace = "docker.configs", description = "Docker configurations in Editor")
public class DockerConfigs {
@Element(description = "Version of the product and the Docker image")
private String productVersion = "latest";
public String getProductVersion() {
return productVersion;
}
}
代码示例来源:origin: org.wso2.carbon.apimgt/org.wso2.carbon.apimgt.core
/**
* Class to hold Environment configurations
*/
@Configuration(description = "Multi-Environment Overview Configurations")
public class MultiEnvironmentOverview {
@Element(description = "Multi-Environment Overview feature enabled or not")
private boolean enabled = false;
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
}
代码示例来源:origin: org.wso2.carbon.auth/org.wso2.carbon.auth.core
/**
* Class to hold Auth configuration parameters and generate yaml file
*/
@Configuration(namespace = "wso2.carbon.auth", description = "Auth Configuration Parameters")
public class AuthConfiguration {
@Element(description = "Key Manager Configurations")
private KeyManagerConfiguration keyManagerConfigs = new KeyManagerConfiguration();
public KeyManagerConfiguration getKeyManagerConfigs() {
return keyManagerConfigs;
}
public void setKeyManagerConfigs(KeyManagerConfiguration keyManagerConfigs) {
this.keyManagerConfigs = keyManagerConfigs;
}
}
代码示例来源:origin: wso2/carbon-apimgt
/**
* Class to hold Environment configurations
*/
@Configuration(description = "Multi-Environment Overview Configurations")
public class MultiEnvironmentOverview {
@Element(description = "Multi-Environment Overview feature enabled or not")
private boolean enabled = false;
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
}
代码示例来源:origin: org.wso2.carbon.analytics-common/org.wso2.carbon.databridge.agent
/**
* Class which wrap data receiver constructs.
*/
@Configuration(description = "Agent configuration")
public class Agent {
@Element(description = "Agent configuration")
private AgentConfiguration agentConfiguration;
public AgentConfiguration getAgentConfiguration() {
return agentConfiguration;
}
public Agent(String name, String dataEndpointClass) {
agentConfiguration = new AgentConfiguration(name, dataEndpointClass);
}
public Agent() {
agentConfiguration = new AgentConfiguration();
}
}
代码示例来源:origin: org.wso2.carbon.apimgt/org.wso2.carbon.apimgt.core
/**
* Class to hold Version configuration parameters
*/
@Configuration(description = "Version Configurations")
public class NewVersionNotifierConfigurations {
@Element(description = "notifiers")
List<NotifierConfigurations> notifierConfigurations = new ArrayList<>();
public NewVersionNotifierConfigurations() {
notifierConfigurations.add(new NotifierConfigurations());
}
public List<NotifierConfigurations> getNotifierConfigurations() {
return notifierConfigurations;
}
public void setNotifierConfigurations(List<NotifierConfigurations> notifierConfigurations) {
this.notifierConfigurations = notifierConfigurations;
}
}
代码示例来源:origin: wso2/carbon-apimgt
/**
* Class to hold Version configuration parameters
*/
@Configuration(description = "Version Configurations")
public class NewVersionNotifierConfigurations {
@Element(description = "notifiers")
List<NotifierConfigurations> notifierConfigurations = new ArrayList<>();
public NewVersionNotifierConfigurations() {
notifierConfigurations.add(new NotifierConfigurations());
}
public List<NotifierConfigurations> getNotifierConfigurations() {
return notifierConfigurations;
}
public void setNotifierConfigurations(List<NotifierConfigurations> notifierConfigurations) {
this.notifierConfigurations = notifierConfigurations;
}
}
代码示例来源:origin: wso2/carbon-kernel
/**
* Ports Config bean.
*
* @since 5.0.0
*/
@Configuration(description =
"Ports offset. This entry will set the value of the ports defined below to\n" +
"the define value + Offset.\n" +
"e.g. Offset=2 and HTTPS port=9443 will set the effective HTTPS port to 9445")
public class PortsConfig {
@Element(description = "port offset")
private int offset = 0;
public int getOffset() {
return offset;
}
public void setOffset(int offset) {
this.offset = offset;
}
}
内容来源于网络,如有侵权,请联系作者删除!