Interface SlingBean

    • Method Detail

      • initialize

        @Deprecated
        void initialize​(BeanContext context)
        Deprecated.
        please use BeanContext.adaptTo(Class) with the needed SlingBean class to instantiate the object, since initialize(BeanContext) doesn't initialize fields injected by Sling-Models.
        Uses the context for initialization - must call the 'main' initialization - initialize(context,resource) - with the resource determined from the context.
        Parameters:
        context - the scripting context (e.g. a JSP PageContext or a Groovy scripting context)
      • getName

        String getName()
        returns the name of the resource wrapped by this bean
      • getPath

        String getPath()
        returns the path of the resource wrapped by this bean
      • getType

        String getType()
        returns the type of the resource wrapped by this bean