Examples of loadConfig()


Examples of org.codehaus.xfire.spring.XFireConfigLoader.loadConfig()

    {
      ServletContext servletCtx = new MockServletContext();
      ClassPathXmlApplicationContext appCtx = new ClassPathXmlApplicationContext(new String[] {"org/codehaus/xfire/spring/xfire.xml"});

        XFireConfigLoader configLoader = new XFireConfigLoader();
        XFire xfire = configLoader.loadConfig("META-INF/xfire/sservices.xml", appCtx);

        doAssertions(xfire);
    }

    private void doAssertions(XFire xfire){
View Full Code Here

Examples of org.codehaus.xfire.spring.XFireConfigLoader.loadConfig()

    extends AbstractXFireAegisTest
{
    public void testWSDL() throws Exception
    {  
       XFireConfigLoader loader = new XFireConfigLoader();
       XFire xfire = loader.loadConfig(new File(new File(getBasedir()), "target/auth-service/META-INF/xfire/services.xml").getAbsolutePath());
      
       assertTrue(xfire.getServiceRegistry().getServices().size() == 1);
      
       Service service = xfire.getServiceRegistry().getService(new QName("urn:xfire:authenticate", "AuthService"));
      
View Full Code Here

Examples of org.codehaus.xfire.spring.XFireConfigLoader.loadConfig()

        XFireConfigLoader configLoader = new XFireConfigLoader();

        XFire xfire;

        try {
            xfire = configLoader.loadConfig( configUrl );
        } catch (XFireException e) {
            throw new BuildException( "Failure to load the configUrl", e);
        }

        final ServiceRegistry serviceRegistry = xfire.getServiceRegistry();
View Full Code Here

Examples of org.jSyncManager.SJS.Adapters.SMTPServer.Config.ConfigDAO.loadConfig()

      } else {
          throw new RuntimeException("Cannot find smtp_server.xml!");
      }
     
      // load the xml
      config = configDAO.loadConfig(smtpServerXML);

      // on error, throw new exception
      if (config == null) {
         throw new RuntimeException("Error retrieving smtp_server.xml!");
      }   // end if
View Full Code Here

Examples of org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig()

   {
      XMLLoginConfigImpl config = XMLLoginConfigImpl.getInstance();
      ClassLoader loader = Thread.currentThread().getContextClassLoader();
      URL configURL = loader.getResource("login-config.conf");
      config.setConfigURL(configURL);
      config.loadConfig();

      AppConfigurationEntry[] entry = config.getAppConfigurationEntry("case1");
      assertTrue("case1 entry != null", entry != null);
      assertTrue("case1.length == 2", entry.length == 2);
      assertTrue("case1[0].module == org.jboss.test.TestLoginModule",
View Full Code Here

Examples of org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig()

      System.setProperty("roles.properties", "/security/config/roles.properites");

      // Install the custom JAAS configuration
      XMLLoginConfigImpl config = XMLLoginConfigImpl.getInstance();
      config.setConfigResource("security/login-config.xml");
      config.loadConfig();
      Configuration.setConfiguration(config);
   }

   public void testSecurityDomainLoginModuleOption() throws Exception
   {
View Full Code Here

Examples of org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig()

   {
      XMLLoginConfigImpl config = XMLLoginConfigImpl.getInstance();
      ClassLoader loader = Thread.currentThread().getContextClassLoader();
      URL configURL = loader.getResource("login-config.conf");
      config.setConfigURL(configURL);
      config.loadConfig();

      AppConfigurationEntry[] entry = config.getAppConfigurationEntry("case1");
      assertTrue("case1 entry != null", entry != null);
      assertTrue("case1.length == 2", entry.length == 2);
      assertTrue("case1[0].module == org.jboss.test.TestLoginModule",
View Full Code Here

Examples of org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig()

      System.setProperty("roles.properties", "/security/config/roles.properites");

      // Install the custom JAAS configuration
      XMLLoginConfigImpl config = XMLLoginConfigImpl.getInstance();
      config.setConfigResource("security/login-config.xml");
      config.loadConfig();
      Configuration.setConfiguration(config);
   }

   public void testSecurityDomainLoginModuleOption() throws Exception
   {
View Full Code Here

Examples of org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig()

   protected void setUp() throws Exception
   {
      System.setOut(System.err);
      XMLLoginConfigImpl config = XMLLoginConfigImpl.getInstance();
      config.setConfigResource("login-config.xml");
      config.loadConfig();
      Configuration.setConfiguration(config);
   }

   private void validateSuccessfulLogin(LoginContext lc) throws LoginException
   {
View Full Code Here

Examples of org.jboss.security.auth.login.XMLLoginConfigImpl.loadConfig()

      System.setProperty("roles.properties", "/security/config/roles.properites");

      // Install the custom JAAS configuration
      XMLLoginConfigImpl config = XMLLoginConfigImpl.getInstance();
      config.setConfigResource("security/login-config.xml");
      config.loadConfig();
      Configuration.setConfiguration(config);
   }

   public void testPropertyReplacement() throws Exception
   {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.