All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sun.jaw.impl.mapper.DefaultMapper

java.lang.Object
   |
   +----com.sun.jaw.impl.mapper.DefaultMapper

public class DefaultMapper
extends Object
implements MapperSrvIf
The DefaultMapper class provides an implementation of a mapping service.

The implementation uses pattern matching rules for providing its services. In order to determine the name of the Java class to use for representing a C-bean, the class will first extract the class name contained in the object name. Then, if the class name ends with

If the class name does not end with one of the two previous suffixes, then the mapper will add the "MOStub" suffix at the end of the class name.

In order to determine the name of the Java class to use for representing an M-bean, the class will first extract the class name contained in the object name. Then, if the class name ends with

If the class name does not end with one of the two previous suffixes, then the mapper will return the class name unchanged.

See Also:
MapperSrvIf

Constructor Index

 o DefaultMapper()
 o DefaultMapper(String, String)
Allows to create a default mapper using different suffixes.

Method Index

 o cbeanToUse(ObjectName)
Get name of a Java class to use for representing a C-bean.
 o getClassVersion()
Returns the version of this class.
 o mbeanToUse(ObjectName)
Get name of a Java class to use for representing an M-bean.

Constructors

 o DefaultMapper
 public DefaultMapper()
 o DefaultMapper
 public DefaultMapper(String mo,
                      String mostub)
Allows to create a default mapper using different suffixes.

Methods

 o cbeanToUse
 public String cbeanToUse(ObjectName name) throws MappingException
Get name of a Java class to use for representing a C-bean.

Parameters:
name - The logical name of the object for which the implementing name is requested.
Returns:
The name of the Java class to use for representing the C-bean.
Throws: MappingException
An error occurs.
 o mbeanToUse
 public String mbeanToUse(ObjectName name) throws MappingException
Get name of a Java class to use for representing an M-bean.

Parameters:
name - The logical name of the object for which the implementing name is requested.
Returns:
The name of the Java class to use for representing the M-bean.
Throws: MappingException
An error occurs.
 o getClassVersion
 public static String getClassVersion()
Returns the version of this class.


All Packages  Class Hierarchy  This Package  Previous  Next  Index