Class ManagementContextImpl

    • Method Detail

      • setScopingData

        public <S> void setScopingData​(Class<S> scopeType,
                                       S scopingData)
        Description copied from interface: ManagedResource
        Callback made by the provider to the resource to signal that scoping data that is used for the managed resource.
        Specified by:
        setScopingData in interface ManagedResource
        Type Parameters:
        S - the generic type of the scope type
        Parameters:
        scopeType - the scope type
        scopingData - the scoping data
      • unregister

        public void unregister​(Object o)
        Unregisters an object from its managed life cycle.
        Specified by:
        unregister in interface ManagementContext
        Parameters:
        o - the object to be unmanaged
      • unregisterAll

        public void unregisterAll()
        Unmanages (unregisters) all early registered MBeans in ManagementProviders
      • getScopingData

        public <S> List<S> getScopingData​(Class<S> scopeType)
        Description copied from interface: ManagedResource
        Returns the scoping data of the context. The list contains the scoping properties registered by the provider if a call has been made to the ManagedResource.setScopingData(Class, Object) method plus the scoping properties of the parent context.
        Specified by:
        getScopingData in interface ManagedResource
        Type Parameters:
        S - the generic type of the scope type
        Parameters:
        scopeType - the scope type
        Returns:
        the scoping properties
      • beforeInvoke

        public void beforeInvoke​(Object managedResource)
        Description copied from interface: ManagedResource
        Before a managed resource is invoked by the management layer.
        Specified by:
        beforeInvoke in interface ManagedResource
        Parameters:
        managedResource - the managed resource
      • afterInvoke

        public void afterInvoke​(Object managedResource)
        Description copied from interface: ManagedResource
        After a managed resource is invoked by the management layer.
        Specified by:
        afterInvoke in interface ManagedResource
        Parameters:
        managedResource - the managed resource