Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * JBoss, Home of Professional Open Source
   * Copyright 2010, Red Hat, Inc., and individual contributors
   * by the @authors tag. See the copyright.txt in the distribution for a
   * full listing of individual contributors.
   *
   * Licensed under the Apache License, Version 2.0 (the "License");
   * you may not use this file except in compliance with the License.
   * You may obtain a copy of the License at
  * http://www.apache.org/licenses/LICENSE-2.0
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
 
 package org.jboss.weld.ejb.spi;
 
 
 import  javax.ejb.Stateful;

EJB metadata from the EJB descriptor. The implementation may optionally implement SubclassedComponentDescriptor if it uses an enhances subclass to implement EJB functionality.

Parameters:
<T> the bean type
Author(s):
Pete Muir
 
 public interface EjbDescriptor<T> {

    
Gets the EJB type

Returns:
The EJB Bean class
 
     Class<T> getBeanClass();

    
Gets the local business interfaces of the EJB

Returns:
An iterator over the local business interfaces
 
Gets the remote business interfaces of the EJB

Returns:
An iterator over the remote business interfaces
 
Get the EJB name

Returns:
 
     String getEjbName();

    
Get the remove methods of the EJB

Returns:
An iterator over the remove methods
 
     Collection<MethodgetRemoveMethods();

    
Indicates if the bean is a stateless session bean

Returns:
True if stateless, false otherwise
 
     boolean isStateless();

    
Indicates if the bean is a EJB 3.1 Singleton session bean

Returns:
True if the bean is a singleton, false otherwise
 
     boolean isSingleton();

    
Indicates if the EJB is a stateful session bean

Returns:
True if the bean is stateful, false otherwise
 
     boolean isStateful();

    
Indicates if the EJB is an MDB

Returns:
True if the bean is an MDB, false otherwise
 
     boolean isMessageDriven();

    

Indicates if the EJB is passivation capable.

  • Stateless session beans, singleton session beans and MDBs are not passivation capable.
  • A stateful session bean is passivation capable unless the passivationCapable element of the Stateful annotation is set to false or the passivation-capable element of the session deployment descriptor element is set to false

Returns:
true if the EJB is passivation capable
    boolean isPassivationCapable();
New to GrepCode? Check out our FAQ X