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 Detail

      • SpringServiceLookupImpl

        public SpringServiceLookupImpl​(Class<org.refcodes.servicebus.ServiceDescriptor<S,SCTX>> aType,
                                       URI[] aConfigurationFiles)
                                throws 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:
        MalformedURLException - If a given URI is malformed.
      • SpringServiceLookupImpl

        public SpringServiceLookupImpl​(Class<org.refcodes.servicebus.ServiceDescriptor<S,SCTX>> aType,
                                       URI[] aConfigurationFiles,
                                       URI[] aPropertyFiles)
                                throws 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:
        MalformedURLException - If a given URI is malformed
      • SpringServiceLookupImpl

        public SpringServiceLookupImpl​(Class<org.refcodes.servicebus.ServiceDescriptor<S,SCTX>> aType,
                                       URI[] aConfigurationFiles,
                                       Map<String,String> aProperties)
                                throws 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:
        MalformedURLException - If a given URI is malformed
      • SpringServiceLookupImpl

        public SpringServiceLookupImpl​(Class<org.refcodes.servicebus.ServiceDescriptor<S,SCTX>> aType,
                                       URI[] aConfigurationFiles,
                                       URI[] aPropertyFiles,
                                       Map<String,String> aProperties)
                                throws 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:
        MalformedURLException - If a given URI is malformed