/jbossas-remote-6/src/main/java/org/jboss/arquillian/container/jbossas/remote_6/JBossASConfiguration.java

https://github.com/arquillian/arquillian-container-jbossas · Java · 87 lines · 28 code · 11 blank · 48 comment · 0 complexity · 6d0751f2a1b7d9bc580db481404aaa92 MD5 · raw file

  1. /*
  2. * JBoss, Home of Professional Open Source
  3. * Copyright 2009, Red Hat Middleware LLC, and individual contributors
  4. * by the @authors tag. See the copyright.txt in the distribution for a
  5. * full listing of individual contributors.
  6. *
  7. * Licensed under the Apache License, Version 2.0 (the "License");
  8. * you may not use this file except in compliance with the License.
  9. * You may obtain a copy of the License at
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. */
  17. package org.jboss.arquillian.container.jbossas.remote_6;
  18. import org.jboss.arquillian.container.spi.ConfigurationException;
  19. import org.jboss.arquillian.container.spi.client.container.ContainerConfiguration;
  20. /**
  21. * A {@link org.jboss.arquillian.container.spi.client.container.ContainerConfiguration} implementation for
  22. * the JBoss AS container.
  23. *
  24. * @author <a href="mailto:german.escobarc@gmail.com">German Escobar</a>
  25. * @author <a href="mailto:aslak@redhat.com">Aslak Knutsen</a>
  26. * @version $Revision: $
  27. */
  28. public class JBossASConfiguration implements ContainerConfiguration {
  29. private String contextFactory = "org.jnp.interfaces.NamingContextFactory";
  30. private String urlPkgPrefix = "org.jboss.naming:org.jnp.interfaces";
  31. private String providerUrl = "jnp://localhost:1099";
  32. /* (non-Javadoc)
  33. * @see org.jboss.arquillian.spi.client.container.ContainerConfiguration#validate()
  34. */
  35. public void validate() throws ConfigurationException {
  36. }
  37. /**
  38. * @param contextFactory
  39. * the contextFactory to set
  40. */
  41. public void setContextFactory(String contextFactory) {
  42. this.contextFactory = contextFactory;
  43. }
  44. /**
  45. * @return the contextFactory
  46. */
  47. public String getContextFactory() {
  48. return contextFactory;
  49. }
  50. /**
  51. * @param provierUrl
  52. * the provierUrl to set
  53. */
  54. public void setProviderUrl(String provierUrl) {
  55. this.providerUrl = provierUrl;
  56. }
  57. /**
  58. * @return the provierUrl
  59. */
  60. public String getProviderUrl() {
  61. return providerUrl;
  62. }
  63. /**
  64. * @param urlPkgPrefix
  65. * the urlPkgPrefix to set
  66. */
  67. public void setUrlPkgPrefix(String urlPkgPrefix) {
  68. this.urlPkgPrefix = urlPkgPrefix;
  69. }
  70. /**
  71. * @return the urlPkgPrefix
  72. */
  73. public String getUrlPkgPrefix() {
  74. return urlPkgPrefix;
  75. }
  76. }