All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.mx.modelmbean.XMBeanConstants Maven / Gradle / Ivy

There is a newer version: 6.0.0.M1
Show newest version
/*
 * JBoss, Home of Professional Open Source.
 * Copyright 2008, Red Hat Middleware LLC, and individual contributors
 * as indicated by the @author tags. See the copyright.txt file in the
 * distribution for a full listing of individual contributors.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */
package org.jboss.mx.modelmbean;

/**
 * Constraint definitions for the {@link XMBean} implementation.
 *
 * @author  Juha Lindfors.
 * @version $Revision: 81026 $
 */
public interface XMBeanConstants extends ModelMBeanConstants
{

   // Resource Types ------------------------------------------------
   
   /**
    * Resource type string identifying a resource object that implements
    * an interface adhering to the Standard MBean naming conventions.
    */
   final static String STANDARD_INTERFACE = "StandardInterface";   


   final static String STANDARD_MBEAN     = "StandardMBean";
   
   
   /**
    * Resource type string identifying a resource object that is part of
    * a descriptor object.
    */
   final static String DESCRIPTOR = "descriptor";

   
   // Descriptor string prefixes ------------------------------------   
   
   /**
    * Descriptor field naming prefix for {@link XMBean} configuration. Descriptor
    * fields matching to this prefix follow the "xmbean.*" naming 
    * convention in field names.
    */
   final static String XMBEAN_DESCRIPTOR_PREFIX   = "xmbean.";

   /**
    * Descriptor field naming prefix for {@link XMBean} configuration. Descriptor
    * fields matching to this prefix follow the "xmbean.metadata.*" naming 
    * convention in field names.
    */
   final static String METADATA_DESCRIPTOR_PREFIX = XMBEAN_DESCRIPTOR_PREFIX + "metadata.";

   /**
    * Descriptor field naming prefix for {@link XMBean} configuration. Descriptor
    * fields matching to this prefix follow the "xmbean.resource.*" naming 
    * convention in field names.
    */
   final static String RESOURCE_DESCRIPTOR_PREFIX = XMBEAN_DESCRIPTOR_PREFIX + "resource.";
   
   
   // Resource descriptor string ------------------------------------
   
   /**
   * Mandatory descriptor field when {@link #DESCRIPTOR} resource type is used.
   * The value of this field contains a reference to the resource
   * object the Model MBean represents.   

* * This field matches to the {@link #RESOURCE_DESCRIPTOR_PREFIX} naming pattern. * * @see org.jboss.mx.modelmbean.XMBean */ final static String RESOURCE_REFERENCE = RESOURCE_DESCRIPTOR_PREFIX + "reference"; /** * Mandatory descriptor field when {@link #DESCRIPTOR} resource type is used. * The value of this field contains the actual resource type of the resource * object defined by the {@link #RESOURCE_REFERENCE} field.

* * This field matches to the {@link #RESOURCE_DESCRIPTOR_PREFIX} naming pattern. * * @see org.jboss.mx.modelmbean.XMBean */ final static String RESOURCE_TYPE = RESOURCE_DESCRIPTOR_PREFIX + "type"; // Metadata configuration descriptor strings -------------------- /** * XML metadata descriptor field name. This descriptor field matches the * {@link #METADATA_DESCRIPTOR_PREFIX} and is therefore passed as a * configuration property to all metadata builder implementations.

* * This specific field is used in a {@link #DESCRIPTOR} resource type to * configure JDOM based metadata builders * to override the default JAXP SAX parser settings. * * @see org.jboss.mx.modelmbean.XMBean */ final static String SAX_PARSER = METADATA_DESCRIPTOR_PREFIX + "sax.parser"; /** * XML metadata descriptor field name. This descriptor field matches the * {@link #METADATA_DESCRIPTOR_PREFIX} and is therefore passed as a * configuration property to all metadata builder implementations.

* * This specific field can be used to indicate the XML based builder * implementations to validate the document instance before creating the * metadata. * * @see org.jboss.mx.modelmbean.XMBean */ final static String XML_VALIDATION = METADATA_DESCRIPTOR_PREFIX + "xml.validate"; String GET_METHOD_ATTRIBUTE = "getMethod"; String SET_METHOD_ATTRIBUTE = "setMethod"; }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy