Class SpringServiceLookupImpl<S extends org.refcodes.servicebus.Service<?>,SCTX>

  • Type Parameters:
    S - the generic type
    SCTX - the generic type


    public abstract class SpringServiceLookupImpl<S extends org.refcodes.servicebus.Service<?>,SCTX>
    extends org.refcodes.servicebus.ServiceLookupImpl<S,SCTX>
    The Class SpringServiceLookupImpl.
    • Constructor Summary

      Constructors 
      Constructor Description
      SpringServiceLookupImpl​(java.lang.Class<org.refcodes.servicebus.ServiceDescriptor<S,SCTX>> aType, java.net.URI[] aConfigurationFiles)
      Creates a factory with the given Spring configuration files.
      SpringServiceLookupImpl​(java.lang.Class<org.refcodes.servicebus.ServiceDescriptor<S,SCTX>> aType, java.net.URI[] aConfigurationFiles, java.net.URI[] aPropertyFiles)
      Creates a factory with the given Spring configuration files.
      SpringServiceLookupImpl​(java.lang.Class<org.refcodes.servicebus.ServiceDescriptor<S,SCTX>> aType, java.net.URI[] aConfigurationFiles, java.net.URI[] aPropertyFiles, java.util.Map<java.lang.String,java.lang.String> aProperties)
      Creates a factory with the given Spring configuration files and the given properties.
      SpringServiceLookupImpl​(java.lang.Class<org.refcodes.servicebus.ServiceDescriptor<S,SCTX>> aType, java.net.URI[] aConfigurationFiles, java.util.Map<java.lang.String,java.lang.String> aProperties)
      Creates a factory with the given Spring configuration files and the given properties.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from class org.refcodes.servicebus.ServiceLookupImpl

        getServiceDescriptors, hasService
    • Constructor Detail

      • SpringServiceLookupImpl

        public SpringServiceLookupImpl​(java.lang.Class<org.refcodes.servicebus.ServiceDescriptor<S,SCTX>> aType,
                                       java.net.URI[] aConfigurationFiles)
                                throws java.net.MalformedURLException
        Creates a factory with the given Spring configuration files.
        Parameters:
        aType - The actual type (class) of the ServiceDescriptor instances to be looked up.
        aConfigurationFiles - The URIs of the configuration files describing the handled Spring application context.
        Throws:
        java.net.MalformedURLException - If a given URI is malformed.
      • SpringServiceLookupImpl

        public SpringServiceLookupImpl​(java.lang.Class<org.refcodes.servicebus.ServiceDescriptor<S,SCTX>> aType,
                                       java.net.URI[] aConfigurationFiles,
                                       java.net.URI[] aPropertyFiles)
                                throws java.net.MalformedURLException
        Creates a factory with the given Spring configuration files. If the configuration files contains placeholder (e.g. ${jdbc.url}), the given property files are used to replace them. The provided property files have to follow the JAVA properties scheme (key=value).
        Parameters:
        aType - The actual type (class) of the ServiceDescriptor instances to be looked up.
        aConfigurationFiles - The URIs of the configuration files describing the handled Spring application context.
        aPropertyFiles - The URIs of the property files containing the values for the used placeholder.
        Throws:
        java.net.MalformedURLException - If a given URI is malformed
      • SpringServiceLookupImpl

        public SpringServiceLookupImpl​(java.lang.Class<org.refcodes.servicebus.ServiceDescriptor<S,SCTX>> aType,
                                       java.net.URI[] aConfigurationFiles,
                                       java.util.Map<java.lang.String,java.lang.String> aProperties)
                                throws java.net.MalformedURLException
        Creates a factory with the given Spring configuration files and the given properties. If the configuration files contains placeholder (e.g. ${jdbc.url}), the given properties are used to replace them.
        Parameters:
        aType - The actual type (class) of the ServiceDescriptor instances to be looked up.
        aConfigurationFiles - The URIs of the configuration files describing the handled Spring application context.
        aProperties - The dynamic properties which are not defined by an configuration file.
        Throws:
        java.net.MalformedURLException - If a given URI is malformed
      • SpringServiceLookupImpl

        public SpringServiceLookupImpl​(java.lang.Class<org.refcodes.servicebus.ServiceDescriptor<S,SCTX>> aType,
                                       java.net.URI[] aConfigurationFiles,
                                       java.net.URI[] aPropertyFiles,
                                       java.util.Map<java.lang.String,java.lang.String> aProperties)
                                throws java.net.MalformedURLException
        Creates a factory with the given Spring configuration files and the given properties. If the configuration files contains placeholder (e.g. ${jdbc.url}), the given property files and properties are used to replace them. The provided property files have to follow the JAVA properties scheme (key=value).
        Parameters:
        aType - The actual type (class) of the ServiceDescriptor instances to be looked up.
        aConfigurationFiles - The URIs of the configuration files describing the handled Spring application context.
        aPropertyFiles - The URIs of the property files containing the values for the used placeholder.
        aProperties - The dynamic properties which are not defined by an configuration file.
        Throws:
        java.net.MalformedURLException - If a given URI is malformed