Class ThreadSafeComponentManager.ComponentFactory
- java.lang.Object
-
- org.ametys.runtime.plugin.component.ThreadSafeComponentManager.ComponentFactory
-
- Direct Known Subclasses:
PluginsComponentManager.ProxyComponentFactory
- Enclosing class:
- ThreadSafeComponentManager<T>
class ThreadSafeComponentManager.ComponentFactory extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Class<? extends T>
_componentClass
(package private) Configuration
_configuration
(package private) String
_featureName
(package private) org.slf4j.Logger
_logger
(package private) String
_pluginName
(package private) String
_role
(package private) ServiceManager
_serviceManager
-
Constructor Summary
Constructors Constructor Description ComponentFactory(String pluginName, String featureName, String role, Class<? extends T> componentClass, Configuration configuration, ServiceManager serviceManager, org.slf4j.Logger logger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
configureAndStart(T component)
(package private) T
instanciate()
(package private) T
newInstance()
-
-
-
Field Detail
-
_pluginName
String _pluginName
-
_featureName
String _featureName
-
_componentClass
Class<? extends T> _componentClass
-
_configuration
Configuration _configuration
-
_serviceManager
ServiceManager _serviceManager
-
_logger
org.slf4j.Logger _logger
-
-
Constructor Detail
-
ComponentFactory
ComponentFactory(String pluginName, String featureName, String role, Class<? extends T> componentClass, Configuration configuration, ServiceManager serviceManager, org.slf4j.Logger logger)
-
-
Method Detail
-
instanciate
T instanciate() throws Exception
- Throws:
Exception
-
configureAndStart
void configureAndStart(T component) throws Exception
- Throws:
Exception
-
newInstance
T newInstance() throws Exception
- Throws:
Exception
-
-