public class SpringBeanFactoryImpl extends Object implements org.refcodes.factory.BeanFactory<String>
Constructor and Description |
---|
SpringBeanFactoryImpl(URI[] aConfigurationFiles)
Creates a factory with the given Spring configuration files.
|
SpringBeanFactoryImpl(URI[] aConfigurationFiles,
Map<String,String> aProperties)
Creates a factory with the given Spring configuration files and the given
properties.
|
SpringBeanFactoryImpl(URI[] aConfigurationFiles,
URI[] aPropertyFiles)
Creates a factory with the given Spring configuration files.
|
SpringBeanFactoryImpl(URI[] aConfigurationFiles,
URI[] aPropertyFiles,
Map<String,String> aProperties)
Creates a factory with the given Spring configuration files and the given
properties.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
createInstance(String aIdentifier)
To instance.
|
<T> T |
createInstance(String aIdentifier,
Map<String,String> aProperties) |
<T> Set<T> |
createInstances(Class<?> aType)
To instances.
|
<T> Set<T> |
toInstances(Class<?> aType,
Map<String,String> aProperties)
To instances.
|
public SpringBeanFactoryImpl(URI[] aConfigurationFiles) throws MalformedURLException
aConfigurationFiles
- The URIs of the configuration files describing
the handled Spring application context.MalformedURLException
- If a given URI is malformed.public SpringBeanFactoryImpl(URI[] aConfigurationFiles, URI[] aPropertyFiles) throws MalformedURLException
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 placeholders.MalformedURLException
- If a given URI is malformedpublic SpringBeanFactoryImpl(URI[] aConfigurationFiles, Map<String,String> aProperties) throws MalformedURLException
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.MalformedURLException
- If a given URI is malformedpublic SpringBeanFactoryImpl(URI[] aConfigurationFiles, URI[] aPropertyFiles, Map<String,String> aProperties) throws MalformedURLException
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 placeholders.aProperties
- The dynamic properties which are not defined by an
configuration file.MalformedURLException
- If a given URI is malformedpublic <T> T createInstance(String aIdentifier)
public <T> T createInstance(String aIdentifier, Map<String,String> aProperties)
createInstance
in interface org.refcodes.factory.BeanLookupFactory<String>
public <T> Set<T> createInstances(Class<?> aType)
createInstances
in interface org.refcodes.factory.BeanFactory<String>
createInstances
in interface org.refcodes.factory.TypeLookupFactory
T
- the generic typeaType
- the a typepublic <T> Set<T> toInstances(Class<?> aType, Map<String,String> aProperties)
toInstances
in interface org.refcodes.factory.TypeLookupFactory
T
- the generic typeaType
- the a typeaProperties
- the a propertiesCopyright © 2018. All rights reserved.