Package com.sun.enterprise.config

Examples of com.sun.enterprise.config.ConfigContext


    public Result check(ConfigContextEvent ccce) {
        //<addition author="irfan@sun.com" [bug/rfe]-id="4704985" >
        Result result = new Result();
        //</addition>
                Object value = ccce.getObject();
                ConfigContext context = ccce.getConfigContext();
                //Result result = new Result(); - 4704985
                String beanName = ccce.getBeanName();
                if(beanName!=null) {
                    String name = ccce.getName();
                    // Bug: 4700257
View Full Code Here


        }
    }

    private String[] getTargets(){
        try{
            ConfigContext confContext = _context.getConfigContext();
            Domain domain = (Domain)confContext.getRootConfigBean();
            Servers svrs = domain.getServers();
            Server[] svrArr = svrs.getServer();
            int size = svrArr.length;
            String[] targetNames = new String[size];
            for(int i = 0 ; i< size; i++) {
View Full Code Here

        if(beanName!=null) {
               result.passed("Save to be implemented");
               return result;
        }
       
        ConfigContext context = ccce.getConfigContext();
        Object value = ccce.getObject();
        JdbcResource jdbc = (JdbcResource)value;
        boolean isPool = false;
        String pool = jdbc.getPoolName();
       
        // check if jdbc resource jndi-name is valid object name Bug : 4698687 : start
        if(StaticTest.checkObjectName(jdbc.getJndiName(), result))
            result.passed("Valid Object Name");
        else {
            result.failed("JDBC Resource Jndi-Name Invalid ");
            return result;
        }
        // End Bug : 4698687

       
        try {
            // 8.0 XML Verifier
            //Server server = (Server)context.getRootConfigBean();
            //Resources resource = server.getResources();
            Domain domain = (Domain)context.getRootConfigBean();
            Resources resource = domain.getResources();
            JdbcConnectionPool[] connection = resource.getJdbcConnectionPool();
            for(int i=0;i<connection.length;i++){
                if(connection[i].getName().equals(pool))
                        isPool=true;
View Full Code Here

    public void logLevelChanged(LogLevelChangeEvent event)
        throws AdminEventListenerException
    {
        try {
            if( event.isPropertyChanged() ) {
                ConfigContext newConfig = event.getConfigContext();               
                Iterator iter = event.getConfigChangeList().iterator();
                // Get logger extension Feature
                LoggerExtensionFeature lef = AdminService.getLoggerExtensionFeature();
               
                while (iter.hasNext() )  {
                    Object change= iter.next();
                    if (change instanceof ConfigAdd || change instanceof ConfigUpdate) {
                        String xpath = ((ConfigChange)change).getXPath();
                        if( xpath != null){
                            ConfigBean item = newConfig.exactLookup(xpath);
                            if (item instanceof ElementProperty) {
                                ElementProperty elementProperty = (ElementProperty)item;
                                String loggerName  = elementProperty.getName();
                                loggerName = lef.getLoggerName(loggerName);
                                String logLevel    = elementProperty.getValue();
View Full Code Here

    }
   
    // check method called from the admin GUI and iasadmin
    public Result check(ConfigContextEvent ccce) {
                Object value = ccce.getObject();
                ConfigContext context = ccce.getConfigContext();
                Result result = new Result();
                result.passed("Passed ** ");
                String beanName = ccce.getBeanName();
                if(beanName!=null) {
                    String name = ccce.getName();
View Full Code Here

        Result result = new Result();
        result.passed("Passed **");
       
        Object value  = ccce.getObject();
        String choice = ccce.getChoice();
        ConfigContext context = ccce.getConfigContext();
        String beanName = ccce.getBeanName();
        String msgFragmentSize = null;
       
        if(beanName!=null)
                return validateAttribute(ccce.getName(), ccce.getObject());
View Full Code Here

        //
        // <p> Also starts the auto deploy monitor thread. This monitors the
        // $INSTANCE/autodeploy directory for new archives to be deployed.

        // server configuration context
        ConfigContext configCtx = sc.getConfigContext();

        // applicatons node from server configuration
        Applications applicationsBean  = null;

        DasConfig dasConfig = null;
View Full Code Here

    // check method called by adminGUI and iasadmin
    public Result check(ConfigContextEvent ccce) {
        Result result = new Result();
        Object value  = ccce.getObject();
        String choice = ccce.getChoice();
        ConfigContext context = ccce.getConfigContext();
        String beanName = ccce.getBeanName();
        if(beanName!=null)
                return testSave(ccce.getName(), ccce.getObject());
       
        IiopListener listener = (IiopListener)value;
View Full Code Here

    }
   
    // check method called from the admin GUI and iasadmin
    public Result check(ConfigContextEvent ccce) {
                Object value = ccce.getObject();
                ConfigContext context = ccce.getConfigContext();
                Result result = new Result();
                result.passed("Passed ** ");
                String beanName = ccce.getBeanName();
                if(beanName!=null) {
                    String name = ccce.getName();
View Full Code Here

    }
   
    // check method called from the admin GUI and iasadmin
    public Result check(ConfigContextEvent ccce) {
                Object value = ccce.getObject();
                ConfigContext context = ccce.getConfigContext();
                Result result = new Result();
                result.passed("Passed ** ");
                String beanName = ccce.getBeanName();
                if(beanName!=null) {
                    String name = ccce.getName();
View Full Code Here

TOP

Related Classes of com.sun.enterprise.config.ConfigContext

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.