net.dpml.transit.info
Class TransitDirective

java.lang.Object
  extended bynet.dpml.lang.AbstractDirective
      extended bynet.dpml.transit.info.TransitDirective
All Implemented Interfaces:
Serializable

public class TransitDirective
extends AbstractDirective

The CodeBaseDirective is immutable datastructure used to describe a codebase.

Version:
1.0.1
Author:
Digital Product Meta Library
See Also:
Serialized Form

Field Summary
static TransitDirective CLASSIC_PROFILE
          Classic configuration profile.
 
Constructor Summary
TransitDirective(ProxyDirective proxy, CacheDirective cache)
          Creation of a new codebase descriptor.
 
Method Summary
 boolean equals(Object other)
          Test if the supplied object is equal to this object.
 CacheDirective getCacheDirective()
          Return the cache configuration directive.
 ProxyDirective getProxyDirective()
          Return the proxy configuration.
 int hashCode()
          Compute the instance hashcode value.
 
Methods inherited from class net.dpml.lang.AbstractDirective
equals, hashArray, hashValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASSIC_PROFILE

public static final TransitDirective CLASSIC_PROFILE
Classic configuration profile.

Constructor Detail

TransitDirective

public TransitDirective(ProxyDirective proxy,
                        CacheDirective cache)
                 throws NullPointerException
Creation of a new codebase descriptor.

Parameters:
proxy - the proxy configuration
cache - the cache configuration
Throws:
NullPointerException - if the cache configuration arguments is null
Method Detail

getCacheDirective

public CacheDirective getCacheDirective()
Return the cache configuration directive.

Returns:
the cache directive

getProxyDirective

public ProxyDirective getProxyDirective()
Return the proxy configuration.

Returns:
the proxy directive (possibly null)

equals

public boolean equals(Object other)
Test if the supplied object is equal to this object.

Overrides:
equals in class AbstractDirective
Parameters:
other - the object to evaluate
Returns:
true if this object is equal to the supplied object

hashCode

public int hashCode()
Compute the instance hashcode value.

Overrides:
hashCode in class AbstractDirective
Returns:
the hashcode