Examples of ConfigurationType


Examples of org.apache.tapestry5.ioc.internal.ConfigurationType

        {
            private boolean seenOne;

            public <T> T findResource(Class<T> resourceType, Type genericType)
            {
                ConfigurationType thisType = PARAMETER_TYPE_TO_CONFIGURATION_TYPE.get(resourceType);

                if (thisType == null) return null;

                if (seenOne)
                    throw new RuntimeException(IOCMessages.tooManyConfigurationParameters(creatorDescription));
View Full Code Here

Examples of org.apache.tapestry5.ioc.internal.ConfigurationType

        {
            private boolean seenOne;

            public <T> T findResource(Class<T> resourceType, Type genericType)
            {
                ConfigurationType thisType = PARAMETER_TYPE_TO_CONFIGURATION_TYPE.get(resourceType);

                if (thisType == null) return null;

                if (seenOne)
                    throw new RuntimeException(IOCMessages.tooManyConfigurationParameters(creatorDescription));
View Full Code Here

Examples of org.apache.tapestry5.ioc.internal.ConfigurationType

        String serviceId = stripMethodPrefix(method, CONTRIBUTE_METHOD_NAME_PREFIX);

        Class returnType = method.getReturnType();
        if (!returnType.equals(void.class)) logger.warn(IOCMessages.contributionWrongReturnType(method));

        ConfigurationType type = null;

        for (Class parameterType : method.getParameterTypes())
        {
            ConfigurationType thisParameter = PARAMETER_TYPE_TO_CONFIGURATION_TYPE
                    .get(parameterType);

            if (thisParameter != null)
            {
                if (type != null)
View Full Code Here

Examples of org.apache.tapestry5.ioc.internal.ConfigurationType

     */
    protected final Map<Class, Object> getParameterDefaultsWithConfiguration(Class[] parameterTypes,
                                                                             Type[] genericParameterTypes)
    {
        Map<Class, Object> result = CollectionFactory.newMap(parameterDefaults);
        ConfigurationType type = null;

        for (int i = 0; i < parameterTypes.length; i++)
        {
            Class parameterType = parameterTypes[i];

            ConfigurationType thisType = PARAMETER_TYPE_TO_CONFIGURATION_TYPE.get(parameterType);

            if (thisType == null) continue;

            if (type != null)
            {
View Full Code Here

Examples of org.apache.tapestry5.ioc.internal.ConfigurationType

        String serviceId = stripMethodPrefix(method, CONTRIBUTE_METHOD_NAME_PREFIX);

        Class returnType = method.getReturnType();
        if (!returnType.equals(void.class)) logger.warn(IOCMessages.contributionWrongReturnType(method));

        ConfigurationType type = null;

        for (Class parameterType : method.getParameterTypes())
        {
            ConfigurationType thisParameter = PARAMETER_TYPE_TO_CONFIGURATION_TYPE
                    .get(parameterType);

            if (thisParameter != null)
            {
                if (type != null)
View Full Code Here

Examples of org.exolab.castor.tests.framework.testDescriptor.ConfigurationType

        if (config == null) {
            config = _configuration;
        }

        if (config != null) {
            ConfigurationType marshal = config.getMarshal();
            List returnValues = invokeEnumeratedMethods(marshaller, marshal);
            returnValues.clear(); // We don't care about the return values
        }//-- config != null

        if (_mapping != null) {
View Full Code Here

Examples of org.exolab.castor.tests.framework.testDescriptor.ConfigurationType

        }

        unmar.setDebug(_verbose);

        if (config != null) {
            ConfigurationType unmarshal = config.getUnmarshal();
            List returnValues = invokeEnumeratedMethods(unmar, unmarshal);
            returnValues.clear(); // We don't care about the return values
        }

        return unmar;
View Full Code Here

Examples of org.exolab.castor.tests.framework.testDescriptor.ConfigurationType

        List returnValues = null;

        try {
            CustomTest customTest = _delegate._unitTest.getCustomTest();
            ConfigurationType testConfig = customTest.getMethods();
            Object object = getTestObject(customTest.getTestClass());
            returnValues = _delegate.invokeEnumeratedMethods(object, testConfig);
        } catch (Exception e) {
            if (!_delegate.checkExceptionWasExpected(e, FailureStepType.CUSTOM_TEST)) {
                fail("Exception running the custom test " + e);
View Full Code Here

Examples of org.jboss.jbosswsTools.ConfigurationType

  }

  private ConfigurationDocument createConfigFile( StringToStringMap values )
  {
    ConfigurationDocument configDocument = ConfigurationDocument.Factory.newInstance();
    ConfigurationType config = configDocument.addNewConfiguration();

    JavaToWsdlType java2Wsdl = config.addNewJavaWsdl();
    ServiceType service = java2Wsdl.addNewService();
    service.setEndpoint( values.get( ENDPOINT ) );
    service.setStyle( Style.Enum.forString( values.get( STYLE ) ) );
    service.setParameterStyle( ParameterStyle.Enum.forString( values.get( PARAMETER_STYLE ) ) );
    service.setName( values.get( SERVICE_NAME ) );
View Full Code Here

Examples of org.jboss.jbosswsTools.ConfigurationType

  }

  private ConfigurationDocument createConfigFile( StringToStringMap values, Interface modelItem )
  {
    ConfigurationDocument configDocument = ConfigurationDocument.Factory.newInstance();
    ConfigurationType config = configDocument.addNewConfiguration();

    try
    {
      StringToStringMap nsMappings = StringToStringMap.fromXml( values.get( NAMESPACE_MAPPING ) );
      if( !nsMappings.isEmpty() )
      {
        GlobalType global = config.addNewGlobal();

        for( String namespace : nsMappings.keySet() )
        {
          PkgNSType entry = global.addNewPackageNamespace();
          entry.setNamespace( namespace );
          entry.setPackage( nsMappings.get( namespace ) );
        }
      }
    }
    catch( Exception e )
    {
      SoapUI.logError( e );
    }

    WsdlToJavaType wsdl2Java = config.addNewWsdlJava();

    String wsdlUrl = getWsdlUrl( values, modelItem );
    try
    {
      new URL( wsdlUrl );
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.