Class ServiceContainerFactory
java.lang.Object
org.apache.fulcrum.yaafi.framework.factory.ServiceContainerFactory
A factory to hide how to initialize YAFFI since this might change over the time
- Author:
- Siegfried Goeschl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceContainer
create
(ServiceContainerConfiguration serviceManagerConfig) Create a fully initialized YAFFI service container.static ServiceContainer
create
(ServiceContainerConfiguration serviceManagerConfig, org.apache.avalon.framework.context.Context context) Create a fully initialized YAFFI service containerstatic boolean
dispose
(ServiceContainer container) Disposes the container.
-
Constructor Details
-
ServiceContainerFactory
public ServiceContainerFactory()
-
-
Method Details
-
create
public static ServiceContainer create(ServiceContainerConfiguration serviceManagerConfig) throws Exception Create a fully initialized YAFFI service container.- Parameters:
serviceManagerConfig
- the configuration to use- Returns:
- the service container
- Throws:
Exception
- the creation failed
-
create
public static ServiceContainer create(ServiceContainerConfiguration serviceManagerConfig, org.apache.avalon.framework.context.Context context) throws Exception Create a fully initialized YAFFI service container- Parameters:
serviceManagerConfig
- the configuration to usecontext
- the context to use- Returns:
- the service container
- Throws:
Exception
- the creation failed
-
dispose
Disposes the container.- Parameters:
container
- the container to be disposed- Returns:
- true if the disposal was successful or false otherwise
-