Java Doc for ModelMBeanConstructorInfo.java in  » 6.0-JDK-Core » management » javax » management » modelmbean » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Home
Java Source Code / Java Documentation
1.6.0 JDK Core
2.6.0 JDK Modules
3.6.0 JDK Modules com.sun
4.6.0 JDK Modules com.sun.java
5.6.0 JDK Modules sun
6.6.0 JDK Platform
7.Ajax
8.Apache Harmony Java SE
9.Aspect oriented
10.Authentication Authorization
11.Blogger System
12.Build
13.Byte Code
14.Cache
15.Chart
16.Chat
17.Code Analyzer
18.Collaboration
19.Content Management System
20.Database Client
21.Database DBMS
22.Database JDBC Connection Pool
23.Database ORM
24.Development
25.EJB Server
26.ERP CRM Financial
27.ESB
28.Forum
29.Game
30.GIS
31.Graphic 3D
32.Graphic Library
33.Groupware
34.HTML Parser
35.IDE
36.IDE Eclipse
37.IDE Netbeans
38.Installer
39.Internationalization Localization
40.Inversion of Control
41.Issue Tracking
42.J2EE
43.J2ME
44.JBoss
45.JMS
46.JMX
47.Library
48.Mail Clients
49.Music
50.Net
51.Parser
52.PDF
53.Portal
54.Profiler
55.Project Management
56.Report
57.RSS RDF
58.Rule Engine
59.Science
60.Scripting
61.Search Engine
62.Security
63.Sevlet Container
64.Source Control
65.Swing Library
66.Template Engine
67.Test Coverage
68.Testing
69.UML
70.Web Crawler
71.Web Framework
72.Web Mail
73.Web Server
74.Web Services
75.Web Services apache cxf 2.2.6
76.Web Services AXIS2
77.Wiki Engine
78.Workflow Engines
79.XML
80.XML UI
Java Source Code / Java Documentation » 6.0 JDK Core » management » javax.management.modelmbean 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.management.MBeanConstructorInfo
   javax.management.modelmbean.ModelMBeanConstructorInfo

ModelMBeanConstructorInfo
public class ModelMBeanConstructorInfo extends MBeanConstructorInfo implements DescriptorAccess(Code)
The ModelMBeanConstructorInfo object describes a constructor of the ModelMBean. It is a subclass of MBeanConstructorInfo with the addition of an associated Descriptor and an implementation of the DescriptorAccess interface.

 The fields in the descriptor are defined, but not limited to, the following: 

name : constructor name descriptorType : must be "operation" role : must be "constructor" displayName : human readable name of constructor visibility : 1-4 where 1: always visible 4: rarely visible presentationString : xml formatted string to describe how to present operation

The persistPolicy and currencyTimeLimit fields are meaningless for constructors, but are not considered invalid.

The default descriptor will have the name , descriptorType , displayName and role fields. The default value of the name and displayName fields is the name of the constructor.

The serialVersionUID of this class is 3862947819818064362L.
since:
   1.5




Constructor Summary
public  ModelMBeanConstructorInfo(String description, Constructor constructorMethod)
     Constructs a ModelMBeanConstructorInfo object with a default descriptor.
public  ModelMBeanConstructorInfo(String description, Constructor constructorMethod, Descriptor descriptor)
     Constructs a ModelMBeanConstructorInfo object.
public  ModelMBeanConstructorInfo(String name, String description, MBeanParameterInfo[] signature)
     Constructs a ModelMBeanConstructorInfo object with a default descriptor.
public  ModelMBeanConstructorInfo(String name, String description, MBeanParameterInfo[] signature, Descriptor descriptor)
     Constructs a ModelMBeanConstructorInfo object.
Parameters:
  name - The name of the constructor.
Parameters:
  description - A human readable description of the constructor.
Parameters:
  signature - MBeanParameterInfo objects describing the parameters(arguments) of the constructor.
Parameters:
  descriptor - An instance of Descriptor containing the appropriate metadatafor this instance of the MBeanConstructorInfo.
 ModelMBeanConstructorInfo(ModelMBeanConstructorInfo old)
     Constructs a new ModelMBeanConstructorInfo object from this ModelMBeanConstructor Object.

Method Summary
public  Objectclone()
     Creates and returns a new ModelMBeanConstructorInfo which is a duplicate of this ModelMBeanConstructorInfo.
public  DescriptorgetDescriptor()
     Returns a copy of the associated Descriptor.
public  voidsetDescriptor(Descriptor inDescriptor)
     Sets associated Descriptor (full replace) of ModelMBeanConstructorInfo.
public  StringtoString()
     Returns a string containing the entire contents of the ModelMBeanConstructorInfo in human readable form.


Constructor Detail
ModelMBeanConstructorInfo
public ModelMBeanConstructorInfo(String description, Constructor constructorMethod)(Code)
Constructs a ModelMBeanConstructorInfo object with a default descriptor. The Descriptor of the constructed object will include fields contributed by any annotations on the Constructor object that contain the DescriptorKey meta-annotation.
Parameters:
  description - A human readable description of the constructor.
Parameters:
  constructorMethod - The java.lang.reflect.Constructor objectdescribing the MBean constructor.



ModelMBeanConstructorInfo
public ModelMBeanConstructorInfo(String description, Constructor constructorMethod, Descriptor descriptor)(Code)
Constructs a ModelMBeanConstructorInfo object. The Descriptor of the constructed object will include fields contributed by any annotations on the Constructor object that contain the DescriptorKey meta-annotation.
Parameters:
  description - A human readable description of the constructor.
Parameters:
  constructorMethod - The java.lang.reflect.Constructor objectdescribing the ModelMBean constructor.
Parameters:
  descriptor - An instance of Descriptor containing theappropriate metadata for this instance of theModelMBeanConstructorInfo. If it is null, then a defaultdescriptor will be created. If the descriptor does notcontain all the following fields, the missing ones are added withtheir default values: displayName, name, role, descriptorType.
exception:
  RuntimeOperationsException - Wraps anIllegalArgumentException. The descriptor is invalid, ordescriptor field "name" is present but not equal to nameparameter, or descriptor field "descriptorType" is presentbut not equal to "operation" or descriptor field "role" ispresent but not equal to "constructor".



ModelMBeanConstructorInfo
public ModelMBeanConstructorInfo(String name, String description, MBeanParameterInfo[] signature)(Code)
Constructs a ModelMBeanConstructorInfo object with a default descriptor.
Parameters:
  name - The name of the constructor.
Parameters:
  description - A human readable description of the constructor.
Parameters:
  signature - MBeanParameterInfo object array describing the parameters(arguments) of the constructor.



ModelMBeanConstructorInfo
public ModelMBeanConstructorInfo(String name, String description, MBeanParameterInfo[] signature, Descriptor descriptor)(Code)
Constructs a ModelMBeanConstructorInfo object.
Parameters:
  name - The name of the constructor.
Parameters:
  description - A human readable description of the constructor.
Parameters:
  signature - MBeanParameterInfo objects describing the parameters(arguments) of the constructor.
Parameters:
  descriptor - An instance of Descriptor containing the appropriate metadatafor this instance of the MBeanConstructorInfo. If it is null then a default descriptor will be created.If the descriptor does notcontain all the following fields, the missing ones are added withtheir default values: displayName, name, role, descriptorType.
exception:
  RuntimeOperationsException - Wraps anIllegalArgumentException. The descriptor is invalid, ordescriptor field "name" is present but not equal to nameparameter, or descriptor field "descriptorType" is presentbut not equal to "operation" or descriptor field "role" ispresent but not equal to "constructor".



ModelMBeanConstructorInfo
ModelMBeanConstructorInfo(ModelMBeanConstructorInfo old)(Code)
Constructs a new ModelMBeanConstructorInfo object from this ModelMBeanConstructor Object.
Parameters:
  old - the ModelMBeanConstructorInfo to be duplicated




Method Detail
clone
public Object clone()(Code)
Creates and returns a new ModelMBeanConstructorInfo which is a duplicate of this ModelMBeanConstructorInfo.



getDescriptor
public Descriptor getDescriptor()(Code)
Returns a copy of the associated Descriptor. Descriptor associated with theModelMBeanConstructorInfo object.
See Also:   ModelMBeanConstructorInfo.setDescriptor



setDescriptor
public void setDescriptor(Descriptor inDescriptor)(Code)
Sets associated Descriptor (full replace) of ModelMBeanConstructorInfo. If the new Descriptor is null, then the associated Descriptor reverts to a default descriptor. The Descriptor is validated before it is assigned. If the new Descriptor is invalid, then a RuntimeOperationsException wrapping an IllegalArgumentException is thrown.
Parameters:
  inDescriptor - replaces the Descriptor associated withthe ModelMBeanConstructor. If the descriptor does notcontain all the following fields, the missing ones are added withtheir default values: displayName, name, role, descriptorType.
exception:
  RuntimeOperationsException - Wraps anIllegalArgumentException. The descriptor is invalid, ordescriptor field "name" is present but not equal to nameparameter, or descriptor field "descriptorType" is presentbut not equal to "operation" or descriptor field "role" ispresent but not equal to "constructor".
See Also:   ModelMBeanConstructorInfo.getDescriptor



toString
public String toString()(Code)
Returns a string containing the entire contents of the ModelMBeanConstructorInfo in human readable form.



Methods inherited from javax.management.MBeanConstructorInfo
public Object clone()(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
public MBeanParameterInfo[] getSignature()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public String toString()(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.