Klasse 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
- Autor:
- Siegfried Goeschl
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic 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.
-
Konstruktordetails
-
ServiceContainerFactory
public ServiceContainerFactory()
-
-
Methodendetails
-
create
public static ServiceContainer create(ServiceContainerConfiguration serviceManagerConfig) throws Exception Create a fully initialized YAFFI service container.- Parameter:
serviceManagerConfig
- the configuration to use- Gibt zurück:
- the service container
- Löst aus:
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- Parameter:
serviceManagerConfig
- the configuration to usecontext
- the context to use- Gibt zurück:
- the service container
- Löst aus:
Exception
- the creation failed
-
dispose
Disposes the container.- Parameter:
container
- the container to be disposed- Gibt zurück:
- true if the disposal was successful or false otherwise
-