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
- "MOStub": the DefaultMapper will return the class name contained
in the object name as the Java class name to use for representing the C-bean;
- "MO": the DefaultMapper will add the "Stub" suffix at the end
of the class name;
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
- "MOStub": the DefaultMapper will remove the suffix "MOStub"
from the class name and returns the new name as the class name to use;
- "MO": the DefaultMapper will remove the suffix "MO"
from the class name and returns the new name as the class name to use;
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
-
DefaultMapper()
-
-
DefaultMapper(String, String)
- Allows to create a default mapper using different suffixes.
-
cbeanToUse(ObjectName)
- Get name of a Java class to use for representing a C-bean.
-
getClassVersion()
- Returns the version of this class.
-
mbeanToUse(ObjectName)
- Get name of a Java class to use for representing an M-bean.
DefaultMapper
public DefaultMapper()
DefaultMapper
public DefaultMapper(String mo,
String mostub)
- Allows to create a default mapper using different suffixes.
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.
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.
getClassVersion
public static String getClassVersion()
- Returns the version of this class.
All Packages Class Hierarchy This Package Previous Next Index