Klasse ServiceContainerFactory

java.lang.Object
org.apache.fulcrum.yaafi.framework.factory.ServiceContainerFactory

public class ServiceContainerFactory extends Object
A factory to hide how to initialize YAFFI since this might change over the time
Autor:
Siegfried Goeschl
  • 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 use
      context - the context to use
      Gibt zurück:
      the service container
      Löst aus:
      Exception - the creation failed
    • dispose

      public static boolean dispose(ServiceContainer container)
      Disposes the container.
      Parameter:
      container - the container to be disposed
      Gibt zurück:
      true if the disposal was successful or false otherwise