Examples of CustomResourceConfig


Examples of com.sun.appserv.management.config.CustomResourceConfig

            }
      String jndiName = (String) handlerCtx.getInputValue("jndiName");
      String type = (String) handlerCtx.getInputValue("type");
      String resType, factoryClass, description;
      if (type.equals("custom")){
    CustomResourceConfig customRes = AMXUtil.getDomainConfig().getCustomResourceConfigMap().get(jndiName);
    if (customRes == null) {
                    GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.NoSuchCustomResource"));
        return;
    }
    resType = customRes.getResType();
    factoryClass = customRes.getFactoryClass();
    description = customRes.getDescription();
                if(AMXUtil.isEE())
                    handlerCtx.setOutputValue("enabledString", TargetUtil.getEnabledStatus(customRes, false));
                else
                    handlerCtx.setOutputValue("enabled", TargetUtil.isResourceEnabled(customRes, "server" ));
                Map<String, String> props = customRes.getProperties();
                handlerCtx.setOutputValue("Properties", props);
      } else{
    JNDIResourceConfig jndiRes = AMXUtil.getDomainConfig().getJNDIResourceConfigMap().get(jndiName);
    if (jndiRes == null) {
        GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.NoSuchExternalResource"));
View Full Code Here

Examples of com.sun.appserv.management.config.CustomResourceConfig

                }
                String jndiName = (String) handlerCtx.getInputValue("jndiName");
                String type = (String) handlerCtx.getInputValue("type");
                ResourceConfig resource = null;
                if (type.equals("custom")){
                    CustomResourceConfig custom;
                    resource = custom = AMXUtil.getDomainConfig().getCustomResourceConfigMap().get(jndiName);
                    if (resource == null){
                        GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.NoSuchResource"));
                        return;
                    }
                    custom.setResType((String)handlerCtx.getInputValue("resType"));
                    custom.setFactoryClass((String)handlerCtx.getInputValue("factoryClass"));
                }else{
                    JNDIResourceConfig jndi = null;
                    resource = jndi = AMXUtil.getDomainConfig().getJNDIResourceConfigMap().get(jndiName);
                    if (resource == null){
                        GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.NoSuchResource"));
View Full Code Here

Examples of com.sun.appserv.management.config.CustomResourceConfig

   
   
        public static CustomResourceConfig
  ensureDefaultInstance( final DomainConfig domainConfig )
  {
      CustomResourceConfig   result  =
          domainConfig.getCustomResourceConfigMap().get( getDefaultInstanceName() );
     
      if ( result == null )
      {
          result  = createInstance( domainConfig,
View Full Code Here

Examples of com.sun.appserv.management.config.CustomResourceConfig

      final String    name,
      final String    resType,
      final String    factoryClass,
      final Map<String,String> optional )
  {
      final CustomResourceConfig  config  =
          domainConfig.createCustomResourceConfig( name, resType, factoryClass, optional );
   
    return config;
  }
View Full Code Here

Examples of com.sun.appserv.management.config.CustomResourceConfig

  }
   
    protected final AMXConfig
  createProgeny(final String name, final Map<String,String> options )
  {
      final CustomResourceConfig   config =
          createInstance( getDomainConfig(), name, RES_TYPE, FACTORY_CLASS, options );
     
    addReference( config );
   
    return config;
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.