Class SpringServiceLookupImpl<S extends org.refcodes.servicebus.Service<?>,SCTX>
- java.lang.Object
-
- org.refcodes.servicebus.ServiceLookupImpl<S,SCTX>
-
- org.refcodes.servicebus.alt.spring.SpringServiceLookupImpl<S,SCTX>
-
- Type Parameters:
S
- the generic typeSCTX
- the generic type
- All Implemented Interfaces:
org.refcodes.servicebus.ServiceLookup<S,SCTX>
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.
-
-
-
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 theServiceDescriptor
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 theServiceDescriptor
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 theServiceDescriptor
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 theServiceDescriptor
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
-
-