Package org.jboss.as.controller.parsing

Examples of org.jboss.as.controller.parsing.StandaloneXml


         * @return the configuration persister
         */
        public synchronized ExtensibleConfigurationPersister getConfigurationPersister() {
            if (configurationPersister == null) {
                if (serverEnvironment == null) {
                    configurationPersister = new NullConfigurationPersister(new StandaloneXml(moduleLoader));
                }
                else {
                    QName rootElement = new QName(Namespace.CURRENT.getUriString(), "server");
                    StandaloneXml parser = new StandaloneXml(Module.getBootModuleLoader());
                    configurationPersister = new BackupXmlConfigurationPersister(serverEnvironment.getServerConfigurationFile(), rootElement, parser, parser);
                }
            }
            return configurationPersister;
        }
View Full Code Here


         * @return the configuration persister
         */
        public synchronized ExtensibleConfigurationPersister getConfigurationPersister() {
            if (configurationPersister == null) {
                if (serverEnvironment == null) {
                    configurationPersister = new NullConfigurationPersister(new StandaloneXml(moduleLoader));
                }
                else {
                    QName rootElement = new QName(Namespace.CURRENT.getUriString(), "server");
                    StandaloneXml parser = new StandaloneXml(Module.getBootModuleLoader());
                    configurationPersister = new BackupXmlConfigurationPersister(serverEnvironment.getServerConfigurationFile(), rootElement, parser, parser);
                }
            }
            return configurationPersister;
        }
View Full Code Here

    @Override
    public AsyncFuture<ServiceContainer> run(final List<ServiceActivator> runServices) {
        final Bootstrap bootstrap = Bootstrap.Factory.newInstance();
        final Bootstrap.Configuration configuration = new Bootstrap.Configuration();
        configuration.setServerEnvironment(providedEnvironment);
        configuration.setConfigurationPersister(new AbstractConfigurationPersister(new StandaloneXml(configuration.getModuleLoader())) {

            private final PersistenceResource pr = new PersistenceResource() {

                @Override
                public void commit() {
View Full Code Here

                    Bootstrap.Configuration configuration = new Bootstrap.Configuration();

                    // do not persist anything in embedded mode
                    final QName rootElement = new QName(Namespace.CURRENT.getUriString(), "server");
                    final StandaloneXml parser = new StandaloneXml(Module.getBootModuleLoader());
                    configuration.setConfigurationPersister(new TransientConfigurationPersister(serverEnviromment.getServerConfigurationFile(), rootElement, parser, parser));

                    configuration.setServerEnvironment(serverEnviromment);

                    configuration.setModuleLoader(moduleLoader);
View Full Code Here

    @Override
    public void run(final List<ServiceActivator> runServices) {
        final Bootstrap bootstrap = Bootstrap.Factory.newInstance();
        final Bootstrap.Configuration configuration = new Bootstrap.Configuration();
        configuration.setServerEnvironment(providedEnvironment);
        configuration.setConfigurationPersister(new AbstractConfigurationPersister(new StandaloneXml(configuration.getModuleLoader())) {
            @Override
            public void store(final ModelNode model) throws ConfigurationPersistenceException {
            }

            @Override
View Full Code Here

         * @return the configuration persister
         */
        public synchronized ExtensibleConfigurationPersister getConfigurationPersister() {
            if (configurationPersister == null) {
                if (serverEnvironment == null) {
                    configurationPersister = new NullConfigurationPersister(new StandaloneXml(moduleLoader));
                }
                else {
                    QName rootElement = new QName(Namespace.CURRENT.getUriString(), "server");
                    StandaloneXml parser = new StandaloneXml(Module.getBootModuleLoader());
                    configurationPersister = new BackupXmlConfigurationPersister(new File(serverEnvironment.getServerConfigurationDir(), "standalone.xml"), rootElement, parser, parser);
                }
            }
            return configurationPersister;
        }
View Full Code Here

    @Override
    public AsyncFuture<ServiceContainer> run(final List<ServiceActivator> runServices) {
        final Bootstrap bootstrap = Bootstrap.Factory.newInstance();
        final Bootstrap.Configuration configuration = new Bootstrap.Configuration();
        configuration.setServerEnvironment(providedEnvironment);
        configuration.setConfigurationPersister(new AbstractConfigurationPersister(new StandaloneXml(configuration.getModuleLoader())) {
            @Override
            public void store(final ModelNode model) throws ConfigurationPersistenceException {
            }

            @Override
View Full Code Here

TOP

Related Classes of org.jboss.as.controller.parsing.StandaloneXml

Copyright © 2018 www.massapicom. 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.