![JAR search and dependency download from the Maven repository](/logo.png)
com.remondis.limbus.system.ReflectiveObjectFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of limbus-system Show documentation
Show all versions of limbus-system Show documentation
The Limbus System is a small light-weight CDI framework managing the Limbus Core Components.
The object graph is represented by an XML configuration file or can be build using the Limbus System API.
This module delivers an optional system component that visualizes the object graph and its dependencies after initializing: com.remondis.limbus.system.visualize.LimbusSystemVisualizer
This component can be added to the Limbus System. To keep the dependencies of this module transparent and light-weight, the graph renderer is declared as an optional dependency. Add the following dependencies to your project to use the visualisation component:
<!-- Graph Stream for Visualization feature This is an optional dependency and only required if using the com.remondis.limbus.system.visualize.LimbusSystemVisualizer -->
<dependency>
<groupId>org.graphstream</groupId>
<artifactId>gs-core</artifactId>
<version>1.3</version>
</dependency>
<dependency>
<groupId>org.graphstream</groupId>
<artifactId>gs-ui</artifactId>
<version>1.3</version>
</dependency>
package com.remondis.limbus.system;
import com.remondis.limbus.IInitializable;
import com.remondis.limbus.utils.ObjectCreateException;
import com.remondis.limbus.utils.ReflectionUtil;
/**
* This {@link ObjectFactory} creates object using reflections.
*
* @author schuettec
*
*/
public class ReflectiveObjectFactory implements ObjectFactory {
@Override
public IInitializable> createObject(Class extends IInitializable>> requestType,
Class extends IInitializable>> implementationType) throws ObjectCreateException {
return ReflectionUtil.newInstance(requestType, implementationType);
}
@Override
public IInitializable> createObject(Class extends IInitializable>> implementationType)
throws ObjectCreateException {
return ReflectionUtil.newInstance(IInitializable.class, implementationType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy