Examples of ConfigurationService


Examples of org.jmanage.core.services.ConfigurationService

            return false;
        }

        String appName = args[0];

        ConfigurationService configService =
                ServiceFactory.getConfigurationService();
        List<MBeanData> mbeanDataList =
                configService.getConfiguredMBeans(
                        context.getServiceContext(appName));
        assert mbeanDataList != null;
        CommandUtils.printMBeans(mbeanDataList);
        return true;
    }
View Full Code Here

Examples of org.jmanage.core.services.ConfigurationService

    public static void main(String[] args) {

        RemoteServiceContextFactory.setJManageURL("http://localhost:9090");
        ServiceContext context =
                RemoteServiceContextFactory.getServiceContext("admin", "123456", null, null);
        ConfigurationService configService = ServiceFactory.getConfigurationService();

        /* Build ApplicationConfigData object */
        ApplicationConfigData configData = new ApplicationConfigData();
        configData.setHost("localhost");
        configData.setPort(new Integer(1099));
        configData.setName("testApp1");
        configData.setType("jboss");
        /* add application */
        configData = configService.addApplication(context, configData);
        System.out.println("ApplicationId:" + configData.getApplicationId());
    }
View Full Code Here

Examples of org.jmanage.core.services.ConfigurationService

        /* initialize ServiceFactory */
        ServiceFactory.init(ServiceFactory.MODE_REMOTE);
    }

    public static void main(String[] args){
        ConfigurationService configService =
                ServiceFactory.getConfigurationService();

        ApplicationConfigData configData = new ApplicationConfigData();
        configData.setHost("localhost");
        configData.setPort(new Integer(7001));
        configData.setName("testApp");
        configData.setType("weblogic");
        configData.setUsername("system");
        configData.setPassword("12345678");

        configData = configService.addApplication(getServiceContext(),
                configData);
        System.out.println("ApplicationId:" + configData.getApplicationId());
        System.out.println("Host:" + configData.getHost());
        System.out.println("Port:" + configData.getPort());
        System.out.println("Name:" + configData.getName());
View Full Code Here

Examples of org.kuali.rice.core.api.config.property.ConfigurationService

  @Test
  /**
   * Test method for {@link org.martinlaw.auth. OpenIDSuccessAuthenticationSuccessHandler#emailSetupOk()}
   */
  public void testEmailSetupOk() throws IOException {
    ConfigurationService cfgSvc = mock(ConfigurationService.class);
    when(cfgSvc.getPropertyValueAsString(anyString())).thenReturn("");
    OpenIDSuccessAuthenticationSuccessHandler successHander = new OpenIDSuccessAuthenticationSuccessHandler();
    successHander.setConfigurationService(cfgSvc);
    assertFalse("no email config params exist", successHander.emailSetupOk());
    when(cfgSvc.getPropertyValueAsString(MartinlawConstants.EmailParameters.HOST_PROPERTY)).thenReturn("host");
    assertFalse("not all email config params exist", successHander.emailSetupOk());
    when(cfgSvc.getPropertyValueAsString(MartinlawConstants.EmailParameters.PORT_PROPERTY)).thenReturn("port");
    assertTrue("all email config params exist", successHander.emailSetupOk());
  }
View Full Code Here

Examples of org.richfaces.application.configuration.ConfigurationService

        @Override
        public Object getValue(ELContext context) {
            FacesContext facesContext = getFacesContext(context);

            ConfigurationService configurationService = ServiceTracker.getService(ConfigurationService.class);

            boolean controls = configurationService.getBooleanValue(facesContext,
                CoreConfiguration.Items.standardControlsSkinning);
            boolean classes = configurationService.getBooleanValue(facesContext,
                CoreConfiguration.Items.standardControlsSkinningClasses);

            if (controls && classes) {
                return BOTH_SKINNING;
            }
View Full Code Here

Examples of org.richfaces.application.configuration.ConfigurationService

        @Override
        public Object getValue(ELContext context) {
            FacesContext facesContext = getFacesContext(context);

            ConfigurationService configurationService = ServiceTracker.getService(ConfigurationService.class);

            return configurationService.getBooleanValue(facesContext, CoreConfiguration.Items.standardControlsSkinning)
                || configurationService.getBooleanValue(facesContext, CoreConfiguration.Items.standardControlsSkinningClasses);
        }
View Full Code Here

Examples of org.richfaces.application.configuration.ConfigurationService

    /**
     * A factory method for creating {@link JMSTopicsContextImpl} initialized from context
     */
    public static JMSTopicsContextImpl getInstanceInitializedFromContext(ThreadFactory threadFactory, FacesContext facesContext)
            throws NamingException {
        ConfigurationService configurationService = ServiceTracker.getService(ConfigurationService.class);

        InitialContext initialContext = new InitialContext();

        NameParser nameParser = initialContext.getNameParser("");

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.