de.smartics.properties.admin.domain.model
Class ApiServices.ServiceDescriptor

Package class diagram package ApiServices.ServiceDescriptor
java.lang.Object
  extended by de.smartics.properties.admin.domain.model.ApiServices.ServiceDescriptor
All Implemented Interfaces:
Serializable
Enclosing class:
ApiServices

public static final class ApiServices.ServiceDescriptor
     
     
extends Object
implements Serializable

The descriptor of the service that is part of the API.

See Also:
Serialized Form

Constructor Summary
ApiServices.ServiceDescriptor(String id, Class<?> resourceType)
          Default constructor.
 
Method Summary
 String getId()
          Returns the identifier of the service.
 Class<?> getResourceType()
          Returns the resource that implements the service.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ApiServices.ServiceDescriptor

public ApiServices.ServiceDescriptor(String id,
                                     Class<?> resourceType)
Default constructor.

Parameters:
id - the identifier of the service. It is used as a lookup key to attach metadata information.
resourceType - the resource that implements the service.
Method Detail

getId

public String getId()
Returns the identifier of the service. It is used as a lookup key to attach metadata information.

Returns:
the identifier of the service.

getResourceType

public Class<?> getResourceType()
Returns the resource that implements the service.

Returns:
the resource that implements the service.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.