|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.registry.BusinessPolicyRegistry
BusinessPolicyRegistry is where the business policies are cached.
Inner Class Summary | |
class |
BusinessPolicyRegistry.TypeAndStoreKey
|
Field Summary | |
protected static java.util.Hashtable |
policyByTypeAndStoreCache
|
protected static java.util.Hashtable |
policyCache
|
protected static java.util.Hashtable |
policyTypeCache
|
protected static BusinessPolicyRegistry |
singleton
|
Fields inherited from interface com.ibm.commerce.registry.Registry |
COPYRIGHT |
Constructor Summary | |
BusinessPolicyRegistry()
BusinessPolicyRegistry constructor comment. |
Method Summary | |
BusinessPolicyAccessBean |
findPolicy(java.lang.String policyId)
Returns the BusinessPolicyAccessBean with the given policyId |
static java.lang.String |
getCommandClassNameFromInterface(java.lang.String commandInterfaceName)
This method returns the default implementation of an interface. |
BusinessPolicyRegistryEntry |
getPolicyRegistryEntry(java.lang.String policyId)
Returns the BusinessPolicyRegistryEntry associated with a policy Id |
BusinessPolicyRegistryEntry[] |
getPolicyRegistryEntryByTypeAndStore(java.lang.String asType,
java.lang.Integer anStoreId)
Returns the BusinessPolicyRegistryEntry by Type and Store |
void |
initialize()
Initializes the BusinessPolicyRegistry. |
void |
refresh()
This method refresh the view registry from the database. |
void |
refresh(java.lang.String policyId)
This method refresh the registry entry for a particular policy id. |
void |
removeAllElements()
Removes all Elements in this cache. |
boolean |
removeElement(BusinessPolicyRegistryEntry ta)
Removes a BusinessPolicyRegistryEntry from the cache. |
static BusinessPolicyRegistry |
singleton()
This method returns a singleton BusinessPolicyRegistry object |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static java.util.Hashtable policyByTypeAndStoreCache
protected static java.util.Hashtable policyCache
protected static java.util.Hashtable policyTypeCache
protected static BusinessPolicyRegistry singleton
Constructor Detail |
public BusinessPolicyRegistry()
Method Detail |
public BusinessPolicyAccessBean findPolicy(java.lang.String policyId) throws ECException
policyId
- Stringpublic static java.lang.String getCommandClassNameFromInterface(java.lang.String commandInterfaceName)
public BusinessPolicyRegistryEntry getPolicyRegistryEntry(java.lang.String policyId) throws ECException
policyId
- Stringpublic BusinessPolicyRegistryEntry[] getPolicyRegistryEntryByTypeAndStore(java.lang.String asType, java.lang.Integer anStoreId) throws ECException
Type
- StringStoreId
- Stringpublic void initialize() throws java.lang.Exception
initialize
in interface Registry
public void refresh() throws java.lang.Exception
refresh
in interface Registry
java.lang.Exception
- public void refresh(java.lang.String policyId) throws java.lang.Exception
policyId
- Stringjava.lang.Exception
- public void removeAllElements()
public boolean removeElement(BusinessPolicyRegistryEntry ta)
obj
- BusinessPolicyRegistryEntry - entry to be removed from cache.public static BusinessPolicyRegistry singleton()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |