org.wso2.carbon.config.annotation.Element.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(10.2k)|赞(0)|评价(0)|浏览(210)

本文整理了Java中org.wso2.carbon.config.annotation.Element.<init>()方法的一些代码示例,展示了Element.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.<init>()方法的具体详情如下:
包路径:org.wso2.carbon.config.annotation.Element
类名称:Element
方法名:<init>

Element.<init>介绍

暂无

代码示例

代码示例来源:origin: org.wso2.carbon.dashboards/org.wso2.carbon.dashboards.core

  1. /**
  2. * This is the bean class for Role in deployment yaml.
  3. */
  4. public class Roles {
  5. @Element(description = "list of dashboard creator roles")
  6. private List<String> creators = Collections.emptyList();
  7. public List<String> getCreators() {
  8. return creators;
  9. }
  10. }

代码示例来源:origin: org.wso2.carbon.analytics-common/org.wso2.carbon.analytics.idp.client

  1. /**
  2. * User manager Element.
  3. */
  4. @Configuration(description = "User Manager Element")
  5. public class UserManagerElement {
  6. @Element(description = "Admin Role - Display name of the role defined in the user store", required = true)
  7. private String adminRole = "admin";
  8. @Element(description = "User Store")
  9. private UserStoreElement userStore = new UserStoreElement();
  10. public String getAdminRole() {
  11. return adminRole;
  12. }
  13. public UserStoreElement getUserStore() {
  14. return userStore;
  15. }
  16. }

代码示例来源:origin: org.wso2.carbon.auth/org.wso2.carbon.auth.rest.api.authenticators

  1. /**
  2. * Configuration for Authentication Interceptor
  3. */
  4. @Configuration(namespace = "wso2.carbon.authenticator", description = "Security Configuration Parameters")
  5. public class SecurityConfiguration {
  6. @Element(description = "list of web clients (eg: 127.0.0.1:9443) to allow make requests to allow any web client)")
  7. private List<String> allowedHosts = Collections.singletonList("*");
  8. @Element(description = "Mapping of authenticator")
  9. private Map<String, Map<String, String>> authenticator = new HashMap<>();
  10. public List<String> getAllowedHosts() {
  11. return allowedHosts;
  12. }
  13. public Map<String, Map<String, String>> getAuthenticator() {
  14. return authenticator;
  15. }
  16. }

代码示例来源:origin: org.wso2.carbon.analytics-common/org.wso2.carbon.analytics.idp.client

  1. /**
  2. * User store Element.
  3. */
  4. @Configuration(description = "User Store Element")
  5. public class UserStoreElement {
  6. @Element(description = "Groups", required = true)
  7. private List<RoleElement> roles = Collections.singletonList(new RoleElement());
  8. @Element(description = "Users", required = true)
  9. private List<UserElement> users = Collections.singletonList(new UserElement());
  10. public List<UserElement> getUsers() {
  11. return users;
  12. }
  13. public List<RoleElement> getRoles() {
  14. return roles;
  15. }
  16. }

代码示例来源:origin: org.wso2.carbon.analytics-common/org.wso2.carbon.analytics.idp.client

  1. /**
  2. * REST API Authentication config Element.
  3. */
  4. @Configuration(description = "REST API Auth configurations")
  5. public class RESTAPIConfigurationElement {
  6. @Element(description = "Enable authentication for REST API", required = true)
  7. private String authEnable = "true";
  8. @Element(description = "APIs to be excluded when auth is enabled", required = true)
  9. private List<String> exclude = new ArrayList<>();
  10. public String getAuthEnable() {
  11. return authEnable;
  12. }
  13. public List<String> getExclude() {
  14. return exclude;
  15. }
  16. }

代码示例来源:origin: org.wso2.carbon.analytics-common/org.wso2.carbon.analytics.idp.client

  1. /**
  2. * Role Child Element.
  3. */
  4. @Configuration(description = "Role Child Element configuration")
  5. public class RoleChildElement {
  6. @Element(description = "Role Id", required = true)
  7. private String id = "1";
  8. @Element(description = "Role Display Name", required = true)
  9. private String displayName = "admin";
  10. public String getId() {
  11. return id;
  12. }
  13. public String getDisplayName() {
  14. return displayName;
  15. }
  16. }

代码示例来源:origin: wso2/carbon-kernel

  1. /**
  2. * Config bean for pendingCapabilityTimer.
  3. */
  4. @Configuration(description = "Configuration for the timer task which checks " +
  5. "for pending Capabilities")
  6. public class PendingCapabilityTimer {
  7. @Element(description = "delay in milliseconds before task is to be executed")
  8. private long delay = 60000;
  9. @Element(description = "time in milliseconds between successive task executions")
  10. private long period = 30000;
  11. public long getDelay() {
  12. return delay;
  13. }
  14. public long getPeriod() {
  15. return period;
  16. }
  17. }

代码示例来源:origin: wso2/carbon-kernel

  1. /**
  2. * Config bean for pendingCapabilityTimer.
  3. */
  4. @Configuration(description = "Configuration for the timer task which checks " +
  5. "for satisfiable RequiredCapabilityListeners periodically")
  6. public class CapabilityListenerTimer {
  7. @Element(description = "delay in milliseconds before task is to be executed")
  8. private long delay = 20;
  9. @Element(description = "time in milliseconds between successive task executions")
  10. private long period = 20;
  11. public long getDelay() {
  12. return delay;
  13. }
  14. public long getPeriod() {
  15. return period;
  16. }
  17. }

代码示例来源:origin: org.wso2.carbon.analytics/org.wso2.carbon.stream.processor.common

  1. /**
  2. * A third level configuration bean class for siddhi extension config.
  3. */
  4. @Configuration(description = "Extension configuration")
  5. public class Extension {
  6. @Element(description = "A string field")
  7. private ExtensionChildConfiguration extension = new ExtensionChildConfiguration();
  8. public ExtensionChildConfiguration getExtension() {
  9. return extension;
  10. }
  11. }

代码示例来源:origin: org.wso2.carbon.analytics/org.wso2.carbon.stream.processor.common

  1. /**
  2. * A third level configuration bean class for siddhi reference config.
  3. */
  4. @Configuration(description = "Reference configuration")
  5. public class Reference {
  6. @Element(description = "A string field")
  7. private ReferenceChildConfiguration ref = new ReferenceChildConfiguration();
  8. public ReferenceChildConfiguration getReference() {
  9. return ref;
  10. }
  11. }

代码示例来源:origin: org.wso2.carbon.analytics-common/org.wso2.carbon.analytics.idp.client

  1. /**
  2. * Role Element.
  3. */
  4. @Configuration(description = "Role Element")
  5. public class RoleElement {
  6. @Element(description = "Role Child Element", required = true)
  7. private RoleChildElement role = new RoleChildElement();
  8. public RoleChildElement getRole() {
  9. return role;
  10. }
  11. }

代码示例来源:origin: org.wso2.carbon.analytics-common/org.wso2.carbon.analytics.idp.client

  1. /**
  2. * User Element.
  3. */
  4. @Configuration(description = "User Element")
  5. public class UserElement {
  6. @Element(description = "User Child Element", required = true)
  7. private UserChildElement user = new UserChildElement();
  8. public UserChildElement getUser() {
  9. return user;
  10. }
  11. }

代码示例来源:origin: org.wso2.carbon.analytics/org.wso2.carbon.siddhi.editor.core

  1. /**
  2. * Represents Docker configurations in the deployment.yaml.
  3. */
  4. @Configuration(namespace = "docker.configs", description = "Docker configurations in Editor")
  5. public class DockerConfigs {
  6. @Element(description = "Version of the product and the Docker image")
  7. private String productVersion = "latest";
  8. public String getProductVersion() {
  9. return productVersion;
  10. }
  11. }

代码示例来源:origin: org.wso2.carbon.apimgt/org.wso2.carbon.apimgt.core

  1. /**
  2. * Class to hold Environment configurations
  3. */
  4. @Configuration(description = "Multi-Environment Overview Configurations")
  5. public class MultiEnvironmentOverview {
  6. @Element(description = "Multi-Environment Overview feature enabled or not")
  7. private boolean enabled = false;
  8. public boolean isEnabled() {
  9. return enabled;
  10. }
  11. public void setEnabled(boolean enabled) {
  12. this.enabled = enabled;
  13. }
  14. }

代码示例来源:origin: org.wso2.carbon.auth/org.wso2.carbon.auth.core

  1. /**
  2. * Class to hold Auth configuration parameters and generate yaml file
  3. */
  4. @Configuration(namespace = "wso2.carbon.auth", description = "Auth Configuration Parameters")
  5. public class AuthConfiguration {
  6. @Element(description = "Key Manager Configurations")
  7. private KeyManagerConfiguration keyManagerConfigs = new KeyManagerConfiguration();
  8. public KeyManagerConfiguration getKeyManagerConfigs() {
  9. return keyManagerConfigs;
  10. }
  11. public void setKeyManagerConfigs(KeyManagerConfiguration keyManagerConfigs) {
  12. this.keyManagerConfigs = keyManagerConfigs;
  13. }
  14. }

代码示例来源:origin: wso2/carbon-apimgt

  1. /**
  2. * Class to hold Environment configurations
  3. */
  4. @Configuration(description = "Multi-Environment Overview Configurations")
  5. public class MultiEnvironmentOverview {
  6. @Element(description = "Multi-Environment Overview feature enabled or not")
  7. private boolean enabled = false;
  8. public boolean isEnabled() {
  9. return enabled;
  10. }
  11. public void setEnabled(boolean enabled) {
  12. this.enabled = enabled;
  13. }
  14. }

代码示例来源:origin: org.wso2.carbon.analytics-common/org.wso2.carbon.databridge.agent

  1. /**
  2. * Class which wrap data receiver constructs.
  3. */
  4. @Configuration(description = "Agent configuration")
  5. public class Agent {
  6. @Element(description = "Agent configuration")
  7. private AgentConfiguration agentConfiguration;
  8. public AgentConfiguration getAgentConfiguration() {
  9. return agentConfiguration;
  10. }
  11. public Agent(String name, String dataEndpointClass) {
  12. agentConfiguration = new AgentConfiguration(name, dataEndpointClass);
  13. }
  14. public Agent() {
  15. agentConfiguration = new AgentConfiguration();
  16. }
  17. }

代码示例来源:origin: org.wso2.carbon.apimgt/org.wso2.carbon.apimgt.core

  1. /**
  2. * Class to hold Version configuration parameters
  3. */
  4. @Configuration(description = "Version Configurations")
  5. public class NewVersionNotifierConfigurations {
  6. @Element(description = "notifiers")
  7. List<NotifierConfigurations> notifierConfigurations = new ArrayList<>();
  8. public NewVersionNotifierConfigurations() {
  9. notifierConfigurations.add(new NotifierConfigurations());
  10. }
  11. public List<NotifierConfigurations> getNotifierConfigurations() {
  12. return notifierConfigurations;
  13. }
  14. public void setNotifierConfigurations(List<NotifierConfigurations> notifierConfigurations) {
  15. this.notifierConfigurations = notifierConfigurations;
  16. }
  17. }

代码示例来源:origin: wso2/carbon-apimgt

  1. /**
  2. * Class to hold Version configuration parameters
  3. */
  4. @Configuration(description = "Version Configurations")
  5. public class NewVersionNotifierConfigurations {
  6. @Element(description = "notifiers")
  7. List<NotifierConfigurations> notifierConfigurations = new ArrayList<>();
  8. public NewVersionNotifierConfigurations() {
  9. notifierConfigurations.add(new NotifierConfigurations());
  10. }
  11. public List<NotifierConfigurations> getNotifierConfigurations() {
  12. return notifierConfigurations;
  13. }
  14. public void setNotifierConfigurations(List<NotifierConfigurations> notifierConfigurations) {
  15. this.notifierConfigurations = notifierConfigurations;
  16. }
  17. }

代码示例来源:origin: wso2/carbon-kernel

  1. /**
  2. * Ports Config bean.
  3. *
  4. * @since 5.0.0
  5. */
  6. @Configuration(description =
  7. "Ports offset. This entry will set the value of the ports defined below to\n" +
  8. "the define value + Offset.\n" +
  9. "e.g. Offset=2 and HTTPS port=9443 will set the effective HTTPS port to 9445")
  10. public class PortsConfig {
  11. @Element(description = "port offset")
  12. private int offset = 0;
  13. public int getOffset() {
  14. return offset;
  15. }
  16. public void setOffset(int offset) {
  17. this.offset = offset;
  18. }
  19. }

相关文章

Element类方法