Class SiteWorksWrapperFactory

    • Constructor Detail

      • SiteWorksWrapperFactory

        public SiteWorksWrapperFactory()
    • Method Detail

      • setHttpServletRequest

        public void setHttpServletRequest​(javax.servlet.http.HttpServletRequest request)
        Description copied from interface: WrapperFactory
        Set the request object.
        Specified by:
        setHttpServletRequest in interface WrapperFactory
        Parameters:
        request - The request for the factory, that can be used for creating new instances.
      • setHttpServletResponse

        public void setHttpServletResponse​(javax.servlet.http.HttpServletResponse response)
        Description copied from interface: WrapperFactory
        Set the response object.
        Specified by:
        setHttpServletResponse in interface WrapperFactory
        Parameters:
        response - The request for the factory
      • getHttpServletRequest

        public javax.servlet.http.HttpServletRequest getHttpServletRequest()
      • getHttpServletResponse

        public javax.servlet.http.HttpServletResponse getHttpServletResponse()
      • getInstance

        public Object getInstance​(int id,
                                  Class targetClass)
        Description copied from interface: WrapperFactory
        Returns an instance of the specified class wrapping the specified id.
        Specified by:
        getInstance in interface WrapperFactory
        Parameters:
        id - The identifier for the new instance.
        targetClass - The type of the new instance
        Returns:
        The new instance of the specified type, with the specified id.
      • getInstance

        public Object getInstance​(int id,
                                  String targetClassname)
        Description copied from interface: WrapperFactory
        Returns an instance of the class represented by the given string. Needed for classes that are only loaded in the framework and not in SiteWorks.
        Specified by:
        getInstance in interface WrapperFactory
        Returns:
        Object with HtmlObject-id id and of class represented by targetClassname
      • createInstance

        public Object createInstance​(String targetClassname)
        Description copied from interface: WrapperFactory
        Create new object of class represented by the string. Should be a fully qualified classname
        Specified by:
        createInstance in interface WrapperFactory
        Returns:
        Object of given class