Class ObjectHookRegistry

    • Constructor Detail

      • ObjectHookRegistry

        public ObjectHookRegistry()
    • Method Detail

      • getObjectFilter

        public ObjectFilter getObjectFilter​(step.core.AbstractContext context)
        Parameters:
        context -
        Returns:
        the composed ObjectFilter based on all the registered hooks
      • getObjectEnricher

        public ObjectEnricher getObjectEnricher​(step.core.AbstractContext context)
        Parameters:
        context -
        Returns:
        the composed ObjectEnricher based on all the registered hooks
      • rebuildContext

        public void rebuildContext​(step.core.AbstractContext context,
                                   EnricheableObject object)
                            throws Exception
        Rebuilds an AbstractContext based on an object that has been previously enriched with the composed ObjectEnricher of this registry
        Parameters:
        context - the context to be recreated
        object - the object to base the context reconstruction on
        Throws:
        Exception
      • isObjectAcceptableInContext

        public boolean isObjectAcceptableInContext​(step.core.AbstractContext context,
                                                   EnricheableObject object)
        Parameters:
        context -
        object -
        Returns:
        true if the provided object belongs to the provided context or doesn't belong to any context