FileDocCategorySizeDatePackage
ServiceFactory.javaAPI DocExample789Mon Aug 23 16:34:02 BST 2004com.oreilly.strutsckbk.ch10

ServiceFactory

public class ServiceFactory extends Object

Fields Summary
private static Log
log
private String
securityServiceImpl
Constructors Summary
Methods Summary
public SecurityServicecreateSecurityService()

    
       
        SecurityService service = null;
        try {
            service = (SecurityService) Class.forName(securityServiceImpl).newInstance();
        } catch (Exception e) {
            log.error("Unable to create SecurityService for impl:"+securityServiceImpl);
        }
        return service;
    
protected voidsetSecurityServiceImpl(java.lang.String securityServiceImpl)

        this.securityServiceImpl = securityServiceImpl;