com.sun.jersey.test.framework
Class AppDescriptor.AppDescriptorBuilder<T extends AppDescriptor.AppDescriptorBuilder,V extends AppDescriptor>

java.lang.Object
  extended by com.sun.jersey.test.framework.AppDescriptor.AppDescriptorBuilder<T,V>
Type Parameters:
T - the type of the builder.
V - the type of the descriptor
Direct Known Subclasses:
LowLevelAppDescriptor.Builder, WebAppDescriptor.Builder
Enclosing class:
AppDescriptor

protected abstract static class AppDescriptor.AppDescriptorBuilder<T extends AppDescriptor.AppDescriptorBuilder,V extends AppDescriptor>
extends Object

The base builder for building an application descriptor.

If properties of the builder are not modified default values be utilized. The default value for client configuration is an instance of DefaultClientConfig.

After the build() has been invoked the state of the builder will be reset to the default values.


Field Summary
protected  ClientConfig cc
           
 
Constructor Summary
protected AppDescriptor.AppDescriptorBuilder()
           
 
Method Summary
abstract  V build()
           
 T clientConfig(ClientConfig cc)
          Set the client configuration.
protected  void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cc

protected ClientConfig cc
Constructor Detail

AppDescriptor.AppDescriptorBuilder

protected AppDescriptor.AppDescriptorBuilder()
Method Detail

clientConfig

public T clientConfig(ClientConfig cc)
Set the client configuration.

Parameters:
cc - the client configuration.
Returns:
this builder.

build

public abstract V build()

reset

protected void reset()


Copyright © 2013 Oracle Corporation. All Rights Reserved.