Package com.sun.enterprise.config.pluggable

Examples of com.sun.enterprise.config.pluggable.ConfigEnvironment


    public void setMBeanServerInterceptor(Interceptor interceptor) {
    }

    private ConfigEnvironment getAdminConfigEnvironment(String configFileName) {
        ConfigEnvironment ce = EnvironmentFactory.getEnvironmentFactory().
                                getConfigEnvironment();
        ce.setUrl(configFileName);
        ce.setReadOnly(false);
        ce.setCachingEnabled(false);
        ce.setRootClass("com.sun.enterprise.config.serverbeans.Domain");
        ce.setHandler("com.sun.enterprise.config.serverbeans.ServerValidationHandler");
        ce.getConfigBeanInterceptor().setResolvingPaths(false);
        return ce;
    }
View Full Code Here


*/
public class ConfigFactory {


    public static ConfigContext createConfigContext(String fileUrl, DefaultHandler dh) throws ConfigException {
        final ConfigEnvironment ce = getConfigEnvironment(fileUrl, false, false, true, true);
        ce.setHandler(dh.getClass().getName());
        return ConfigContextFactory.createConfigContext(ce);
    }
View Full Code Here

         */
        public static ConfigContext createConfigContext(String fileUrl,
                boolean readOnly, boolean autoCommit, boolean cache, Class rootClass)
                throws ConfigException {
                   
           ConfigEnvironment ce = getConfigEnvironment(fileUrl, readOnly,
               autoCommit, cache, true);
           ce.setRootClass(rootClass.getName());
           return ConfigContextFactory.createConfigContext(ce);
        }
View Full Code Here

        public static synchronized ConfigContext createConfigContext(String fileUrl,
                boolean readOnly, boolean autoCommit, boolean cache, Class rootClass,
                DefaultHandler dh)
                throws ConfigException {
                   
            ConfigEnvironment ce = getConfigEnvironment(fileUrl, readOnly,
                    autoCommit, cache, true);
            ce.setRootClass(rootClass.getName());
            ce.setHandler(dh.getClass().getName());
            return ConfigContextFactory.createConfigContext(ce);
        }
View Full Code Here

   
    private static ConfigEnvironment getConfigEnvironment(String fileUrl,
        boolean readOnly, boolean autoCommit, boolean cache,
        boolean resolvePath) {

        ConfigEnvironment ce = EnvironmentFactory.getEnvironmentFactory().
            getConfigEnvironment();
        ce.setUrl(fileUrl);
        ce.setReadOnly(readOnly);
        ce.setCachingEnabled(cache);
        ce.getConfigBeanInterceptor().setResolvingPaths(resolvePath);
        return ce;
    }
View Full Code Here

     * object is <i>not</i> inserted into the cache.
     *
     * TBD
     */
    public ConfigContext createConfigContext(String url, String rootClass) {
        ConfigEnvironment ce = getConfigEnvironment();
        ce.setUrl(url);
        ce.setRootClass(rootClass);
        return createConfigContext(ce);
    }
View Full Code Here

    public static boolean enableLastModifiedCheck(ConfigContext ctx, boolean value) {
        return ((ConfigContextImpl)ctx).enableLastModifiedCheck(value);
    }
   
    private static ConfigEnvironment getConfigEnvironment() {
        ConfigEnvironment ce = null;
        try {
            ce = EnvironmentFactory.
                    getEnvironmentFactory().
                    getConfigEnvironment();
        } catch(Exception e) {
View Full Code Here

*/
public class AppserverConfigEnvironmentFactory
      extends com.sun.enterprise.config.pluggable.EnvironmentFactory {
    public ConfigEnvironment getConfigEnvironment() {
        ConfigEnvironment ce = new ConfigEnvironmentImpl();
        ce.setConfigBeanInterceptor(new ServerBeanInterceptor());
        return ce;
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.pluggable.ConfigEnvironment

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.