-
- All Superinterfaces:
- Relation
- All Known Implementing Classes:
- RelationSupport
public interface RelationSupportMBean extends Relation
A RelationSupport object is used internally by the Relation Service to represent simple relations (only roles, no properties or methods), with an unlimited number of roles, of any relation type. As internal representation, it is not exposed to the user.RelationSupport class conforms to the design patterns of standard MBean. So the user can decide to instantiate a RelationSupport object himself as a MBean (as it follows the MBean design patterns), to register it in the MBean Server, and then to add it in the Relation Service.
The user can also, when creating his own MBean relation class, have it extending RelationSupport, to retrieve the implementations of required interfaces (see below).
It is also possible to have in a user relation MBean class a member being a RelationSupport object, and to implement the required interfaces by delegating all to this member.
RelationSupport implements the Relation interface (to be handled by the Relation Service).
- Since:
- 1.5
-
-
Method Summary
Methods Modifier and Type Method and Description Boolean
isInRelationService()
Returns an internal flag specifying if the object is still handled by the Relation Service.void
setRelationServiceManagementFlag(Boolean flag)
Specifies whether this relation is handled by the Relation Service.-
Methods inherited from interface javax.management.relation.Relation
getAllRoles, getReferencedMBeans, getRelationId, getRelationServiceName, getRelationTypeName, getRole, getRoleCardinality, getRoles, handleMBeanUnregistration, retrieveAllRoles, setRole, setRoles
-
-
-
-
Method Detail
-
isInRelationService
Boolean isInRelationService()
Returns an internal flag specifying if the object is still handled by the Relation Service.- Returns:
- a Boolean equal to
Boolean.TRUE
if the object is still handled by the Relation Service andBoolean.FALSE
otherwise.
-
setRelationServiceManagementFlag
void setRelationServiceManagementFlag(Boolean flag) throws IllegalArgumentException
Specifies whether this relation is handled by the Relation Service.
BEWARE, this method has to be exposed as the Relation Service will access the relation through its management interface. It is RECOMMENDED NOT to use this method. Using it does not affect the registration of the relation object in the Relation Service, but will provide wrong information about it!
- Parameters:
flag
- whether the relation is handled by the Relation Service.- Throws:
IllegalArgumentException
- if null parameter
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
17/11/2024 17:36:13 Cette version de la page est en cache (à la date du 17/11/2024 17:36:13) afin d'accélérer le traitement. Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la dernère version de la page.Document créé le 01/09/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/management/relation/relationsupportmbean.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.