Policy
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| private static volatile PolicyFactory | |
| private PolicyFactory |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PolicyFactory(PolicyFactory
The implementation being wrapped. wrapped)If this factory has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public Policy | Returns: an Object that implements thePolicy interface corresponding to the identified policy context,
or a null if such an Object is not present.This method is used to obtain an instance of the provider specific class that implements the |
| public abstract Policy | Returns: an Object that implements thePolicy interface corresponding to the identified policy context,
or a null if such an Object is not present.This method is used to obtain an instance of the provider specific class that implements the |
| public static synchronized PolicyFactory | Returns: the system-wide singleton instance of the provider specific PolicyFactory implementation class.Get the system-wide PolicyFactory implementation. |
| public PolicyFactory | getWrapped()
If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. |
| public void | |
| public abstract void | |
| public static synchronized void | setPolicyFactory(PolicyFactory
The PolicyFactory instance, which may be null. policyFactory)Set the system-wide PolicyFactory implementation. |
| FACTORY_NAME | back to summary |
|---|---|
| public static final String FACTORY_NAME | |
| policyFactory | back to summary |
|---|---|
| private static volatile PolicyFactory policyFactory | |
| wrapped | back to summary |
|---|---|
| private PolicyFactory wrapped | |
| PolicyFactory | back to summary |
|---|---|
| public PolicyFactory() Default constructor for if no wrapping is needed | |
| PolicyFactory | back to summary |
|---|---|
| public PolicyFactory(PolicyFactory wrapped) If this factory has been decorated, the implementation doing the decorating should push the implementation being
wrapped to this constructor. The
| |
| getPolicy | back to summary |
|---|---|
| public Policy getPolicy() This method is used to obtain an instance of the provider specific class that implements the
For a given determined value of the policy context identifier, this method must always return the same instance of
This method should be logically identical to calling | |
| getPolicy | back to summary |
|---|---|
| public abstract Policy getPolicy(String contextId) This method is used to obtain an instance of the provider specific class that implements the
For a given determined value of the policy context identifier, this method must always return the same instance of
| |
| getPolicyFactory | back to summary |
|---|---|
| public static synchronized PolicyFactory getPolicyFactory() Get the system-wide PolicyFactory implementation. The name of the factory implementation class is obtained from the value of the system property,
This value can also be retrieved from the field PolicyFactory.FACTORY_NAME.
| |
| getWrapped | back to summary |
|---|---|
| public PolicyFactory getWrapped() If this factory has been decorated, the implementation doing the decorating may override this method to provide access to the implementation being wrapped. | |
| setPolicy | back to summary |
|---|---|
| public void setPolicy(Policy policy) Set the context Policy implementation. If an implementation was set previously, it will be replaced.
This method should be logically identical to calling
| |
| setPolicy | back to summary |
|---|---|
| public abstract void setPolicy(String contextId, Policy policy) Set the context Policy implementation. If an implementation was set previously, it will be replaced. | |
| setPolicyFactory | back to summary |
|---|---|
| public static synchronized void setPolicyFactory(PolicyFactory policyFactory) Set the system-wide PolicyFactory implementation. If an implementation was set previously, it will be replaced.
| |