/** {@inheritDoc} */ public String getAlias(Object instance) { return getClassName(instance); }
/** {@inheritDoc} */ public String getAlias(Object instance) { return getClassName(instance); }
/** {@inheritDoc} */ public String getAlias(Object instance) { return getClassName(instance); }
/** * Construct a new BeanProxy with the provided default instance. * * @param defaultInstance defines the alias if provided */ public BeanProxy(Object defaultInstance) { super(defaultInstance); // Override default behavior here... standard Map implementations // are treated as anonymous Objects, i.e. without an alias. if (defaultInstance != null) alias = getClassName(defaultInstance); }
/** * Construct a new BeanProxy with the provided default instance. * * @param defaultInstance defines the alias if provided */ public BeanProxy(Object defaultInstance) { super(defaultInstance); // Override default behavior here... standard Map implementations // are treated as anonymous Objects, i.e. without an alias. if (defaultInstance != null) alias = getClassName(defaultInstance); }
/** * Construct a new BeanProxy with the provided default instance. * * @param defaultInstance defines the alias if provided */ public BeanProxy(Object defaultInstance) { super(defaultInstance); // Override default behavior here... standard Map implementations // are treated as anonymous Objects, i.e. without an alias. if (defaultInstance != null) { alias = getClassName(defaultInstance); } }
/** * Return the classname of the instance, including ASObject types. * If the instance is a Map and is in the java.util package, we return null. * @param instance the object to find the class name of * @return the class name of the object. */ @Override protected String getClassName(Object instance) { return (instance != null && instance instanceof Map && instance.getClass().getName().startsWith("java.util."))? null : super.getClassName(instance); }
/** * Return the classname of the instance, including ASObject types. * If the instance is a Map and is in the java.util package, we return null. * @param instance the object to find the class name of * @return the class name of the object. */ @Override protected String getClassName(Object instance) { return (instance != null && instance instanceof Map && instance.getClass().getName().startsWith("java.util."))? null : super.getClassName(instance); }
/** * Return the classname of the instance, including ASObject types. * If the instance is a Map and is in the java.util package, we return null. * @param instance the object to find the class name of * @return the class name of the object. */ protected String getClassName(Object instance) { if (instance != null && instance instanceof Map && instance.getClass().getName().startsWith("java.util.")) { return null; } return super.getClassName(instance); } }