at.ac.tuwien.infosys.sm4all.copal.api.service
Interface ContextEventTypeRegistry

All Superinterfaces:
Observable<RegistryObservable.RegistrationState,ContextEventType,RegistryObservable.RegistryObserver<ContextEventType>>, Registry<java.lang.String,ContextEventType>
All Known Implementing Classes:
ContextEventTypeRegistryImpl

public interface ContextEventTypeRegistry
extends Registry<java.lang.String,ContextEventType>, Observable<RegistryObservable.RegistrationState,ContextEventType,RegistryObservable.RegistryObserver<ContextEventType>>

Interface which COPAL provides to register, unregister, and query ContextEventTypes.

Author:
sanjin

Method Summary
 ContextEventType get(java.lang.String name)
          Returns ContextEventType with specified name.
 ContextEventType[] getAll()
          Returns all currently registered ContextEventTypes.
 boolean isRegistered(java.lang.String name)
          Returns if a ContextEventType with specified name is currently registered.
 void register(ContextEventType eventType)
          Register specified ContextEventType.
 void unregister(java.lang.String name)
          Unregister ContextEventType with specified name.
 
Methods inherited from interface at.ac.tuwien.infosys.sm4all.copal.api.util.Observable
attach, detach
 

Method Detail

register

void register(ContextEventType eventType)
              throws AlreadyRegisteredException
Register specified ContextEventType.

Specified by:
register in interface Registry<java.lang.String,ContextEventType>
Parameters:
eventType - the ContextEventType.
Throws:
AlreadyRegisteredException - if a ContextEventType with same name is already registered.

unregister

void unregister(java.lang.String name)
                throws NotRegisteredException
Unregister ContextEventType with specified name.

Specified by:
unregister in interface Registry<java.lang.String,ContextEventType>
Parameters:
name - the name of the ContextEventType.
Throws:
NotRegisteredException - if no ContextEventType with specified name is registered.

isRegistered

boolean isRegistered(java.lang.String name)
Returns if a ContextEventType with specified name is currently registered.

Specified by:
isRegistered in interface Registry<java.lang.String,ContextEventType>
Parameters:
name - the name of the ContextEventType.
Returns:
if a ContextEventType with specified name is currently registered.

get

ContextEventType get(java.lang.String name)
Returns ContextEventType with specified name.

Specified by:
get in interface Registry<java.lang.String,ContextEventType>
Parameters:
name - the name of the ContextEventType.
Returns:
the ContextEventType or null if there is no such ContextEventType registered.

getAll

ContextEventType[] getAll()
Returns all currently registered ContextEventTypes.

Specified by:
getAll in interface Registry<java.lang.String,ContextEventType>
Returns:
all currently registered ContextEventTypes.


Copyright © 2010 Distributed Systems Group, Vienna University of Technology. All Rights Reserved.