FileDocCategorySizeDatePackage
ServiceFactory.javaAPI DocGlassfish v2 API2601Fri May 04 22:24:30 BST 2007com.sun.enterprise.admin.servermgmt

ServiceFactory

public final class ServiceFactory extends Object

Fields Summary
Constructors Summary
Methods Summary
public static final com.sun.enterprise.admin.servermgmt.ServicegetService()

        //this should be made more dynamic, but since for this release,
        //we don't have any other platforms, I am doing it rather ugly way.
        if (OS.isSun() && new File(SMFService.SVCADM).exists())
            return ( new SMFService() );
        else {
            throw new RuntimeException("noSuitableServiceImplementation");
        }