Refine search
@Stateful @SessionScoped public class Espoo_Broken implements EspooLocal_Broken { @Inject District district; @Remove public void bye() { } }
/** * A request scoped Stateful Session Bean acting as as a JavaDelegate * * @author Daniel Meyer * */ @Named @Stateful @RequestScoped public class RequestScopedSFSBDelegate implements JavaDelegate { private int invocationCounter = 0; public void execute(DelegateExecution execution) throws Exception { invocationCounter++; execution.setVariable("invocationCounter", invocationCounter); } }
@SessionScoped @Stateful @Named("John") public class WrappedEnterpriseBean implements WrappedEnterpriseBeanLocal { @Remove public void bye() { } }
@Stateful @SessionScoped public class SetterInjectionCorralBroken extends Corral { private Cow cow; @Inject public void setCow(@British Cow cow){ this.cow = cow; } public void ping(){ } }
@Stateful public class CartBean {
/** * Return the name attribute of given annotation. * @param annotation * @return name */ protected String getAnnotatedName(Annotation annotation) { Stateful sfAn = (Stateful)annotation; return sfAn.name(); }
protected SessionBeanMetaData create(Class<?> beanClass, Stateful annotation) { return create(beanClass, annotation.name(), annotation.mappedName(), annotation.description()); } }
doDescriptionProcessing(sful.description(), ejbDesc); doMappedNameProcessing(sful.mappedName(), ejbDesc); ejbSessionDesc.setPassivationCapable(sful.passivationCapable());
/** * Set Annotation information to Descriptor. * This method will also be invoked for an existing descriptor with * annotation as user may not specific a complete xml. * @param ejbDesc * @param ainfo * @return HandlerProcessingResult */ protected HandlerProcessingResult setEjbDescriptorInfo( EjbDescriptor ejbDesc, AnnotationInfo ainfo) throws AnnotationProcessorException { EjbSessionDescriptor ejbSessionDesc = (EjbSessionDescriptor)ejbDesc; // set session bean type in case it wasn't set in a sparse ejb-jar.xml. if( !ejbSessionDesc.isSessionTypeSet() ) { ejbSessionDesc.setSessionType(EjbSessionDescriptor.STATEFUL); } Stateful sful = (Stateful) ainfo.getAnnotation(); doDescriptionProcessing(sful.description(), ejbDesc); doMappedNameProcessing(sful.mappedName(), ejbDesc); return setBusinessAndHomeInterfaces(ejbDesc, ainfo); } }
if (stateful.mappedName() != null) { sessionBean.setMappedName(stateful.mappedName());
if (stateful.mappedName() != null) { sessionBean.setMappedName(stateful.mappedName()); sessionBean.setPassivationCapable(stateful.passivationCapable());
@Stateful @SessionScoped public class Espoo_Broken implements EspooLocal_Broken { @Inject District district; @Remove public void bye() { } }
@SuppressWarnings("serial") @SessionScoped @Stateful @Named("John") public class WrappedEnterpriseBean implements WrappedEnterpriseBeanLocal { @Remove public void bye() { } }
@Stateful @SessionScoped public class Maarianhamina_Broken implements MaarianHaminaLocal_Broken { @Remove public void bye() { } }
@Stateful public class CartBeanWithInterface implements Cart {
/** * Return the name attribute of given annotation. * @param annotation * @return name */ protected String getAnnotatedName(Annotation annotation) { Stateful sfAn = (Stateful)annotation; return sfAn.name(); }
protected SessionBeanMetaData create(Class<?> beanClass, Stateful annotation) { return create(beanClass, annotation.name(), annotation.mappedName(), annotation.description()); }
if (stateful.mappedName() != null) { sessionBean.setMappedName(stateful.mappedName());