Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * JBoss, Home of Professional Open Source.
   * Copyright 2008, Red Hat Middleware LLC, and individual contributors
   * as indicated by the @author tags. See the copyright.txt file in the
   * distribution for a full listing of individual contributors.
    *
   * This is free software; you can redistribute it and/or modify it
   * under the terms of the GNU Lesser General Public License as
   * published by the Free Software Foundation; either version 2.1 of
  * the License, or (at your option) any later version.
  *
  * This software is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  * Lesser General Public License for more details.
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this software; if not, write to the Free
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  */
 package org.jboss.ejb3.common.registrar.spi;
 
 import java.util.Map;

Ejb3Registrar Defines the contract for implementations of the EJB3 Object Store, providing mechanisms to bind, unbind, and lookup generic Objects

Author(s):
ALR
Version:
$Revision: $
 
 public interface Ejb3Registrar
 {
   
Lists out all installed (bound) objects in form key == name , value == object. Primarily for metrics/debugging/management. If nothing is installed, an empty Map will be returned. The returned Map is immutable.

Returns:
 
    Map<ObjectObjectlist();

   
Obtains the value bound at the specified name, throwing NotBoundException if there is nothing bound at the key

Parameters:
name
Returns:
Throws:
NotBoundException
 
    Object lookup(Object namethrows NotBoundException;

   
Obtains the value bound at the specified name, throwing NotBoundException if there is nothing bound at the key. The value returned will be automatically casted to the specified type.

Parameters:
<T>
name
type
Returns:
Throws:
NotBoundException
 
    <T> T lookup(Object nameClass<T> typethrows NotBoundException;

   
Binds the specified value to the key of specified name, throwing a DuplicateBindException in the case the name is not unique

Parameters:
name
value
Throws:
DuplicateBindException
 
    void bind(Object nameObject valuethrows DuplicateBindException;

   
Binds the specified value to the key of specified name, optionally unbinding the current value if one exists

Parameters:
name
value
 
    void rebind(Object nameObject value);

   
Unbinds the object at the specified name, throwing NotBoundException if no object exists at that name

Parameters:
name
Throws:
NotBoundException
   void unbind(Object namethrows NotBoundException;

   
Invokes the specified method name on the object bound at the specified name, returning the result

Parameters:
name
methodName
arguments Arguments to pass to the method
signature String representation of fully-qualified class names of parameter types
Returns:
Throws:
NotBoundException If no object is bound at the specified name
   Object invoke(Object nameString methodNameObject[] argumentsString[] signaturethrows NotBoundException;

   
Returns a provider implementation-specific class to break contract and invoke upon vendor-specific features.

Returns:
New to GrepCode? Check out our FAQ X