PropertyProviderImpl Class

com.bea.p13n.content
PropertyProviderImpl Class

public class PropertyProviderImpl

    extends Object
    implements PropertyProvider

A generic implementation of a property provider, that supports user, request, session, and event properties.


Hierarchy
Object
  PropertyProviderImpl
All Implemented Interfaces

PropertyProvider

Constructor Summary

PropertyProviderImpl()

Empty constructor.
PropertyProviderImpl(ProfileWrapper userWrapper, Request request, Session session, Event event)

Create a new PropertyProvider, initializing possible sources for the property value.
PropertyProviderImpl(String userId, Request request, Session session, Event event)

Create a new PropertyProvider, initializing possible sources for the property value.
 

Method Summary

public Object
getProperty(String propertySetType, String propertySet, String propertyName)
Retrieve a property value.
 
Methods from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
   
Methods from interface com.bea.p13n.content.PropertyProvider
getProperty
 

Constructor Detail

PropertyProviderImpl

public PropertyProviderImpl()
Empty constructor.

PropertyProviderImpl

public PropertyProviderImpl(ProfileWrapper userWrapper, 
                            Request request, 
                            Session session, 
                            Event event)
Create a new PropertyProvider, initializing possible sources for the property value. All parameters are optional.

PropertyProviderImpl

public PropertyProviderImpl(String userId, 
                            Request request, 
                            Session session, 
                            Event event)
Create a new PropertyProvider, initializing possible sources for the property value. All parameters are optional.
 

Method Detail

getProperty(String, String, String) Method

public Object getProperty(String propertySetType, 
                          String propertySet, 
                          String propertyName)
throws IllegalArgumentException
Retrieve a property value.

Parameters

propertySetType
the type of property set (user, request, session, event).
propertySet
the name of the property set.
propertyName
the name of the property.

Returns

the property value as a string, or null.

Exceptions

IllegalArgumentException
if an arg is invalid or the PropertyProvider isn't configured for the specified args.