org.jboss.kernel.spi.registry
Interface KernelRegistry

All Superinterfaces:
KernelEventEmitter, KernelObject
All Known Implementing Classes:
AbstractKernelRegistry, BasicKernelRegistry

Deprecated. use the KernelBus for ad hoc invocations, and injection / Controller for anything else

@Deprecated
public interface KernelRegistry
extends KernelObject

A registry.

The registry is responsible for keeping track of named beans so they can be invoked over the bus and used in dependencies.

Version:
$Revision: 76179 $
Author:
Adrian Brock, Les A. Hazlewood

Field Summary
static String KERNEL_REGISTRY_MODIFIED
          Deprecated. Event type for modified event
static String KERNEL_REGISTRY_REGISTERED
          Deprecated. Event type for registered event
static String KERNEL_REGISTRY_UNREGISTERED
          Deprecated. Event type for unregistered event
 
Method Summary
 boolean containsEntry(Object name)
          Deprecated. Returns whether or not there exists a KernelRegistryEntry with the given name.
 KernelRegistryEntry findEntry(Object name)
          Deprecated. Find a registration
 KernelRegistryEntry getEntry(Object name)
          Deprecated. Get a registration
 void registerEntry(Object name, KernelRegistryEntry entry)
          Deprecated. Register an object
 KernelRegistryEntry unregisterEntry(Object name)
          Deprecated. Unregister an object
 
Methods inherited from interface org.jboss.kernel.spi.KernelObject
getKernel, setKernel
 
Methods inherited from interface org.jboss.kernel.spi.event.KernelEventEmitter
fireKernelEvent, registerListener, unregisterListener
 

Field Detail

KERNEL_REGISTRY_REGISTERED

static final String KERNEL_REGISTRY_REGISTERED
Deprecated. 
Event type for registered event

See Also:
Constant Field Values

KERNEL_REGISTRY_MODIFIED

static final String KERNEL_REGISTRY_MODIFIED
Deprecated. 
Event type for modified event

See Also:
Constant Field Values

KERNEL_REGISTRY_UNREGISTERED

static final String KERNEL_REGISTRY_UNREGISTERED
Deprecated. 
Event type for unregistered event

See Also:
Constant Field Values
Method Detail

findEntry

KernelRegistryEntry findEntry(Object name)
Deprecated. 
Find a registration

Parameters:
name - the name of the object
Returns:
the registration
Throws:
IllegalArgumentException - for a null name

getEntry

KernelRegistryEntry getEntry(Object name)
Deprecated. 
Get a registration

Parameters:
name - the name of the object
Returns:
the registration
Throws:
IllegalArgumentException - for a null name
KernelRegistryEntryNotFoundException - when not found

registerEntry

void registerEntry(Object name,
                   KernelRegistryEntry entry)
Deprecated. 
Register an object

Parameters:
name - the name of the object
entry - the registration
Throws:
IllegalArgumentException - for a null name or object
IllegalStateException - when the name is already registered

unregisterEntry

KernelRegistryEntry unregisterEntry(Object name)
Deprecated. 
Unregister an object

Parameters:
name - the name of the object
Returns:
the unregistered entry
Throws:
IllegalArgumentException - for a null name
IllegalStateException - when the name is not registered

containsEntry

boolean containsEntry(Object name)
Deprecated. 
Returns whether or not there exists a KernelRegistryEntry with the given name.

Parameters:
name - name of the KernelRegistryEntry
Returns:
true if there exists a KernelRegistryEntry with the given name, false otherwise.


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.