Search in sources :

Example 1 with Filter

use of org.glassfish.hk2.api.Filter in project Payara by payara.

the class TransactionalInterceptorBase method getTransactionalAnnotation.

private Transactional getTransactionalAnnotation(InvocationContext invocationContext) {
    Optional<Transactional> optionalTransactional;
    // Try the Weld bindings first. This gives us the *exact* binding which caused this interceptor being called
    @SuppressWarnings("unchecked") Set<Annotation> bindings = (Set<Annotation>) invocationContext.getContextData().get("org.jboss.weld.interceptor.bindings");
    if (bindings != null) {
        optionalTransactional = bindings.stream().filter(annotation -> annotation.annotationType().equals(Transactional.class)).findAny().map(annotation -> Transactional.class.cast(annotation));
        if (optionalTransactional.isPresent()) {
            return optionalTransactional.get();
        }
    }
    BeanManager beanManager = CDI.current().getBeanManager();
    // Failing the Weld binding, check the method first
    optionalTransactional = getAnnotation(beanManager, invocationContext.getMethod(), Transactional.class);
    if (optionalTransactional.isPresent()) {
        return optionalTransactional.get();
    }
    // If nothing found on the method, check the the bean class
    optionalTransactional = getAnnotation(beanManager, invocationContext.getTarget().getClass(), Transactional.class);
    if (optionalTransactional.isPresent()) {
        return optionalTransactional.get();
    }
    // find it signals a critical error.
    throw new IllegalStateException("@Transactional not found on " + invocationContext.getTarget().getClass());
}
Also used : InvocationManager(org.glassfish.api.invocation.InvocationManager) InvocationContext(javax.interceptor.InvocationContext) Globals(org.glassfish.internal.api.Globals) LoggerInfo(org.glassfish.logging.annotation.LoggerInfo) NamingException(javax.naming.NamingException) SEVERE(java.util.logging.Level.SEVERE) Level(java.util.logging.Level) ComponentInvocation(org.glassfish.api.invocation.ComponentInvocation) PreDestroy(javax.annotation.PreDestroy) NameNotFoundException(javax.naming.NameNotFoundException) FINE(java.util.logging.Level.FINE) Transaction(javax.transaction.Transaction) LogMessageInfo(org.glassfish.logging.annotation.LogMessageInfo) InitialContext(javax.naming.InitialContext) Transactional(javax.transaction.Transactional) WARNING(java.util.logging.Level.WARNING) Set(java.util.Set) CDI(javax.enterprise.inject.spi.CDI) Logger(java.util.logging.Logger) TransactionScopedCDIUtil.getAnnotation(org.glassfish.cdi.transaction.TransactionScopedCDIUtil.getAnnotation) Serializable(java.io.Serializable) SystemException(javax.transaction.SystemException) LogMessagesResourceBundle(org.glassfish.logging.annotation.LogMessagesResourceBundle) Annotation(java.lang.annotation.Annotation) PostConstruct(javax.annotation.PostConstruct) Optional(java.util.Optional) ServiceLocator(org.glassfish.hk2.api.ServiceLocator) TransactionOperationsManager(com.sun.enterprise.transaction.spi.TransactionOperationsManager) TransactionManager(javax.transaction.TransactionManager) BeanManager(javax.enterprise.inject.spi.BeanManager) Set(java.util.Set) BeanManager(javax.enterprise.inject.spi.BeanManager) TransactionScopedCDIUtil.getAnnotation(org.glassfish.cdi.transaction.TransactionScopedCDIUtil.getAnnotation) Annotation(java.lang.annotation.Annotation) Transactional(javax.transaction.Transactional)

Example 2 with Filter

use of org.glassfish.hk2.api.Filter in project Payara by payara.

the class CreateResourceRef method chooseRefContainer.

private RefContainer chooseRefContainer(final AdminCommandContext context) {
    final ActionReport report = context.getActionReport();
    Class<?>[] allInterfaces = resourceOfInterest.getClass().getInterfaces();
    for (Class<?> resourceInterface : allInterfaces) {
        ResourceConfigCreator resourceConfigCreator = resourceInterface.getAnnotation(ResourceConfigCreator.class);
        if (resourceConfigCreator != null) {
            commandName = resourceConfigCreator.commandName();
        }
    }
    if (commandName != null) {
        List<ServiceHandle<?>> serviceHandles = locator.getAllServiceHandles(new Filter() {

            @Override
            public boolean matches(Descriptor arg0) {
                String name = arg0.getName();
                return name != null && name.equals(commandName);
            }
        });
        for (ServiceHandle<?> handle : serviceHandles) {
            ActiveDescriptor<?> descriptor = handle.getActiveDescriptor();
            if (descriptor.getName().equals(commandName)) {
                if (!descriptor.isReified()) {
                    locator.reifyDescriptor(descriptor);
                }
                AdminCommand service = locator.<AdminCommand>getService(descriptor.getImplementationClass());
                if (service != null) {
                    TargetType targetType = descriptor.getImplementationClass().getAnnotation(TargetType.class);
                    targets = targetType.value();
                    break;
                }
            }
        }
        if (!(isTargetValid = validateTarget(target, targets))) {
            return null;
        }
        Config config = domain.getConfigs().getConfigByName(target);
        if (config != null) {
            return config;
        }
        Server server = configBeansUtilities.getServerNamed(target);
        if (server != null) {
            return server;
        }
        DeploymentGroup deploymentGroup = domain.getDeploymentGroupNamed(target);
        if (deploymentGroup != null) {
            return deploymentGroup;
        }
        return domain.getClusterNamed(target);
    } else {
        report.setMessage(LOCAL_STRINGS.getLocalString("create.resource.ref.failed", "Resource ref {0} creation failed", refName));
        report.setActionExitCode(ActionReport.ExitCode.FAILURE);
        return null;
    }
}
Also used : ActionReport(org.glassfish.api.ActionReport) Filter(org.glassfish.hk2.api.Filter) ServiceHandle(org.glassfish.hk2.api.ServiceHandle) TargetType(org.glassfish.config.support.TargetType) ActiveDescriptor(org.glassfish.hk2.api.ActiveDescriptor) Descriptor(org.glassfish.hk2.api.Descriptor) DeploymentGroup(fish.payara.enterprise.config.serverbeans.DeploymentGroup)

Example 3 with Filter

use of org.glassfish.hk2.api.Filter in project Payara by payara.

the class GetHttpListener method execute.

@Override
public void execute(AdminCommandContext context) {
    ActionReport report = context.getActionReport();
    // Check that a configuration can be found
    if (targetUtil.getConfig(target) == null) {
        report.failure(logger, MessageFormat.format(logger.getResourceBundle().getString(LogFacade.UNKNOWN_CONFIG), target));
        return;
    }
    Config config = targetUtil.getConfig(target);
    // Check that a matching listener can be found
    List<NetworkListener> listeners = config.getNetworkConfig().getNetworkListeners().getNetworkListener();
    Optional<NetworkListener> optionalListener = listeners.stream().filter(listener -> listener.getName().equals(listenerName)).findFirst();
    if (!optionalListener.isPresent()) {
        report.failure(logger, MessageFormat.format(logger.getResourceBundle().getString(LogFacade.UNKNOWN_NETWORK_LISTENER), listenerName, target));
        return;
    }
    NetworkListener listener = optionalListener.get();
    // Write message body
    report.appendMessage(String.format("Name: %s\n", listener.getName()));
    report.appendMessage(String.format("Enabled: %s\n", listener.getEnabled()));
    report.appendMessage(String.format("Port: %s\n", listener.getPort()));
    if (listener.getPortRange() != null) {
        report.appendMessage(String.format("Port Range: %s\n", listener.getPortRange()));
    }
    report.appendMessage(String.format("Address: %s\n", listener.getAddress()));
    report.appendMessage(String.format("Protocol: %s\n", listener.getProtocol()));
    if (verbose) {
        report.appendMessage(String.format("Transport: %s\n", listener.getTransport()));
        report.appendMessage(String.format("Type: %s\n", listener.getType()));
        report.appendMessage(String.format("Thread Pool: %s\n", listener.getThreadPool()));
        report.appendMessage(String.format("JK Enabled: %s\n", listener.getJkEnabled()));
        report.appendMessage(String.format("JK Configuration File: %s\n", listener.getJkConfigurationFile()));
    }
    // Write the variables as properties
    Properties properties = new Properties();
    properties.put("name", listener.getName());
    properties.put("enabled", listener.getEnabled());
    properties.put("port", listener.getPort());
    if (listener.getPortRange() != null) {
        properties.put("portRange", listener.getPortRange());
    }
    properties.put("address", listener.getAddress());
    properties.put("protocol", listener.getProtocol());
    properties.put("transport", listener.getTransport());
    properties.put("type", listener.getType());
    properties.put("threadPool", listener.getThreadPool());
    properties.put("jkEnabled", listener.getJkEnabled());
    properties.put("jkConfigurationFile", listener.getJkConfigurationFile());
    report.setExtraProperties(properties);
}
Also used : Param(org.glassfish.api.Param) LogFacade(org.glassfish.web.admin.LogFacade) RestEndpoint(org.glassfish.api.admin.RestEndpoint) CommandLock(org.glassfish.api.admin.CommandLock) MessageFormat(java.text.MessageFormat) I18n(org.glassfish.api.I18n) PerLookup(org.glassfish.hk2.api.PerLookup) Inject(javax.inject.Inject) ActionReport(org.glassfish.api.ActionReport) ExecuteOn(org.glassfish.api.admin.ExecuteOn) RuntimeType(org.glassfish.api.admin.RuntimeType) NetworkListener(org.glassfish.grizzly.config.dom.NetworkListener) RestEndpoints(org.glassfish.api.admin.RestEndpoints) AdminCommand(org.glassfish.api.admin.AdminCommand) Properties(java.util.Properties) TargetType(org.glassfish.config.support.TargetType) Logger(java.util.logging.Logger) List(java.util.List) Target(org.glassfish.internal.api.Target) Service(org.jvnet.hk2.annotations.Service) AdminCommandContext(org.glassfish.api.admin.AdminCommandContext) CommandTarget(org.glassfish.config.support.CommandTarget) HttpService(com.sun.enterprise.config.serverbeans.HttpService) Optional(java.util.Optional) SystemPropertyConstants(com.sun.enterprise.util.SystemPropertyConstants) Config(com.sun.enterprise.config.serverbeans.Config) Config(com.sun.enterprise.config.serverbeans.Config) ActionReport(org.glassfish.api.ActionReport) Properties(java.util.Properties) NetworkListener(org.glassfish.grizzly.config.dom.NetworkListener)

Example 4 with Filter

use of org.glassfish.hk2.api.Filter in project Payara by payara.

the class SafeProperties method getPersistentSchedules.

private Map<Method, List<ScheduledTimerDescriptor>> getPersistentSchedules() {
    Map<Method, List<ScheduledTimerDescriptor>> persistentSchedules = new HashMap<>();
    for (Entry<Method, List<ScheduledTimerDescriptor>> entry : schedules.entrySet()) {
        Method method = entry.getKey();
        List<ScheduledTimerDescriptor> descriptors = entry.getValue().stream().filter(descriptor -> descriptor.getPersistent()).collect(toList());
        if (!descriptors.isEmpty()) {
            persistentSchedules.put(method, descriptors);
        }
    }
    return persistentSchedules;
}
Also used : EJBMetaDataImpl(com.sun.ejb.portable.EJBMetaDataImpl) RequestTraceSpanLog(fish.payara.notification.requesttracing.RequestTraceSpanLog) LifecycleCallbackDescriptor(com.sun.enterprise.deployment.LifecycleCallbackDescriptor) ComponentInvocation(org.glassfish.api.invocation.ComponentInvocation) EjbTimedObjectStatsProvider(com.sun.ejb.monitoring.stats.EjbTimedObjectStatsProvider) Future(java.util.concurrent.Future) EjbThreadPoolExecutorStatsProvider(com.sun.ejb.monitoring.stats.EjbThreadPoolExecutorStatsProvider) JCDIService(com.sun.enterprise.container.common.spi.JCDIService) ScheduledTimerDescriptor(org.glassfish.ejb.deployment.descriptor.ScheduledTimerDescriptor) EjbPoolStatsProvider(com.sun.ejb.monitoring.stats.EjbPoolStatsProvider) Transaction(javax.transaction.Transaction) EjbMonitoringUtils(com.sun.ejb.monitoring.stats.EjbMonitoringUtils) ServiceInterfaceGenerator(com.sun.ejb.codegen.ServiceInterfaceGenerator) ComponentType(com.sun.enterprise.admin.monitor.callflow.ComponentType) EnvironmentProperty(com.sun.enterprise.deployment.EnvironmentProperty) Serializable(java.io.Serializable) InvocationTargetException(java.lang.reflect.InvocationTargetException) AroundConstruct(javax.interceptor.AroundConstruct) MethodDescriptor(com.sun.enterprise.deployment.MethodDescriptor) EntityManagerFactory(javax.persistence.EntityManagerFactory) DeploymentException(org.glassfish.deployment.common.DeploymentException) EJB_WEB_SERVICE(com.sun.enterprise.deployment.MethodDescriptor.EJB_WEB_SERVICE) EjbInvocationFactory(com.sun.ejb.EjbInvocationFactory) Span(io.opentracing.Span) Descriptor(org.glassfish.deployment.common.Descriptor) ServiceLocator(org.glassfish.hk2.api.ServiceLocator) InvocationManager(org.glassfish.api.invocation.InvocationManager) java.util(java.util) Proxy(java.lang.reflect.Proxy) CallFlowInfo(com.sun.enterprise.admin.monitor.callflow.CallFlowInfo) AccessException(java.rmi.AccessException) SecurityManager(com.sun.enterprise.security.SecurityManager) ComponentContext(com.sun.ejb.ComponentContext) IndirectlySerializable(com.sun.enterprise.container.common.spi.util.IndirectlySerializable) Constructor(java.lang.reflect.Constructor) ASURLClassLoader(com.sun.enterprise.loader.ASURLClassLoader) MethodMap(com.sun.ejb.containers.util.MethodMap) StringRefAddr(javax.naming.StringRefAddr) LocalStringManagerImpl(com.sun.enterprise.util.LocalStringManagerImpl) ProtocolManager(org.glassfish.enterprise.iiop.api.ProtocolManager) EjbContainerInterceptor(org.glassfish.ejb.spi.EjbContainerInterceptor) RequestTracingService(fish.payara.nucleus.requesttracing.RequestTracingService) InterceptorDescriptor(com.sun.enterprise.deployment.InterceptorDescriptor) EjbTimedObjectProbeProvider(com.sun.ejb.monitoring.probes.EjbTimedObjectProbeProvider) UserTransaction(javax.transaction.UserTransaction) EntityManager(javax.persistence.EntityManager) EjbContainerFacade(org.glassfish.enterprise.iiop.spi.EjbContainerFacade) EjbBundleDescriptorImpl(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl) SystemException(javax.transaction.SystemException) JavaEETransactionManager(com.sun.enterprise.transaction.api.JavaEETransactionManager) InjectionManager(com.sun.enterprise.container.common.spi.util.InjectionManager) InvocationHandler(java.lang.reflect.InvocationHandler) EjbEndpointFacade(org.glassfish.ejb.api.EjbEndpointFacade) JavaEETransaction(com.sun.enterprise.transaction.api.JavaEETransaction) NamingException(javax.naming.NamingException) EjbOptionalIntfGenerator(com.sun.ejb.codegen.EjbOptionalIntfGenerator) RemoteReferenceFactory(org.glassfish.enterprise.iiop.api.RemoteReferenceFactory) PreDestroy(javax.annotation.PreDestroy) OpenTracingService(fish.payara.opentracing.OpenTracingService) WSEjbEndpointRegistry(org.glassfish.ejb.spi.WSEjbEndpointRegistry) Method(java.lang.reflect.Method) Reference(javax.naming.Reference) Vetoed(javax.enterprise.inject.Vetoed) EJBUtils(com.sun.ejb.EJBUtils) EjbApplicationExceptionInfo(org.glassfish.ejb.deployment.descriptor.EjbApplicationExceptionInfo) Logger(java.util.logging.Logger) DistributedLockType(fish.payara.cluster.DistributedLockType) InterceptorManager(com.sun.ejb.containers.interceptors.InterceptorManager) RemoteException(java.rmi.RemoteException) EjbInvocation(com.sun.ejb.EjbInvocation) EjbInitInfo(org.glassfish.ejb.deployment.descriptor.EjbInitInfo) EjbCacheProbeProvider(com.sun.ejb.monitoring.probes.EjbCacheProbeProvider) Modifier(java.lang.reflect.Modifier) Entry(java.util.Map.Entry) PostConstruct(javax.annotation.PostConstruct) ProbeProviderFactory(org.glassfish.flashlight.provider.ProbeProviderFactory) Application(com.sun.enterprise.deployment.Application) EjbDescriptor(org.glassfish.ejb.deployment.descriptor.EjbDescriptor) EjbSessionDescriptor(org.glassfish.ejb.deployment.descriptor.EjbSessionDescriptor) Globals(org.glassfish.internal.api.Globals) InvocationInfo(com.sun.ejb.InvocationInfo) EjbCacheStatsProvider(com.sun.ejb.monitoring.stats.EjbCacheStatsProvider) ComponentEnvManager(com.sun.enterprise.container.common.spi.util.ComponentEnvManager) Level(java.util.logging.Level) JavaEEContainer(com.sun.enterprise.container.common.spi.JavaEEContainer) OptionalLocalInterfaceProvider(com.sun.ejb.spi.container.OptionalLocalInterfaceProvider) RollbackException(javax.transaction.RollbackException) MethodLockInfo(com.sun.ejb.MethodLockInfo) SystemInterceptorProxy(com.sun.ejb.containers.interceptors.SystemInterceptorProxy) EjbMonitoringProbeProvider(com.sun.ejb.monitoring.probes.EjbMonitoringProbeProvider) FINE(java.util.logging.Level.FINE) LogMessageInfo(org.glassfish.logging.annotation.LogMessageInfo) TypeUtil(com.sun.enterprise.deployment.util.TypeUtil) Container(com.sun.ejb.Container) Utility(com.sun.enterprise.util.Utility) Tracer(io.opentracing.Tracer) GlassFishORBHelper(org.glassfish.enterprise.iiop.api.GlassFishORBHelper) CallbackType(com.sun.enterprise.deployment.LifecycleCallbackDescriptor.CallbackType) RuntimeTagNames(com.sun.enterprise.deployment.xml.RuntimeTagNames) EjbMonitoringStatsProvider(com.sun.ejb.monitoring.stats.EjbMonitoringStatsProvider) Status(javax.transaction.Status) Collectors.toList(java.util.stream.Collectors.toList) WebServiceEndpoint(com.sun.enterprise.deployment.WebServiceEndpoint) WebServicesDescriptor(com.sun.enterprise.deployment.WebServicesDescriptor) javax.ejb(javax.ejb) LogFacade(org.glassfish.ejb.LogFacade) GlassfishNamingManager(org.glassfish.api.naming.GlassfishNamingManager) ScheduledTimerDescriptor(org.glassfish.ejb.deployment.descriptor.ScheduledTimerDescriptor) Collectors.toList(java.util.stream.Collectors.toList) Method(java.lang.reflect.Method)

Example 5 with Filter

use of org.glassfish.hk2.api.Filter in project Payara by payara.

the class SafeProperties method getNonPersistentSchedules.

private Map<Method, List<ScheduledTimerDescriptor>> getNonPersistentSchedules() {
    Map<Method, List<ScheduledTimerDescriptor>> nonPersistentSchedules = new HashMap<>();
    for (Entry<Method, List<ScheduledTimerDescriptor>> entry : schedules.entrySet()) {
        Method method = entry.getKey();
        List<ScheduledTimerDescriptor> descriptors = entry.getValue().stream().filter(descriptor -> !descriptor.getPersistent()).collect(toList());
        if (!descriptors.isEmpty()) {
            nonPersistentSchedules.put(method, descriptors);
        }
    }
    return nonPersistentSchedules;
}
Also used : EJBMetaDataImpl(com.sun.ejb.portable.EJBMetaDataImpl) RequestTraceSpanLog(fish.payara.notification.requesttracing.RequestTraceSpanLog) LifecycleCallbackDescriptor(com.sun.enterprise.deployment.LifecycleCallbackDescriptor) ComponentInvocation(org.glassfish.api.invocation.ComponentInvocation) EjbTimedObjectStatsProvider(com.sun.ejb.monitoring.stats.EjbTimedObjectStatsProvider) Future(java.util.concurrent.Future) EjbThreadPoolExecutorStatsProvider(com.sun.ejb.monitoring.stats.EjbThreadPoolExecutorStatsProvider) JCDIService(com.sun.enterprise.container.common.spi.JCDIService) ScheduledTimerDescriptor(org.glassfish.ejb.deployment.descriptor.ScheduledTimerDescriptor) EjbPoolStatsProvider(com.sun.ejb.monitoring.stats.EjbPoolStatsProvider) Transaction(javax.transaction.Transaction) EjbMonitoringUtils(com.sun.ejb.monitoring.stats.EjbMonitoringUtils) ServiceInterfaceGenerator(com.sun.ejb.codegen.ServiceInterfaceGenerator) ComponentType(com.sun.enterprise.admin.monitor.callflow.ComponentType) EnvironmentProperty(com.sun.enterprise.deployment.EnvironmentProperty) Serializable(java.io.Serializable) InvocationTargetException(java.lang.reflect.InvocationTargetException) AroundConstruct(javax.interceptor.AroundConstruct) MethodDescriptor(com.sun.enterprise.deployment.MethodDescriptor) EntityManagerFactory(javax.persistence.EntityManagerFactory) DeploymentException(org.glassfish.deployment.common.DeploymentException) EJB_WEB_SERVICE(com.sun.enterprise.deployment.MethodDescriptor.EJB_WEB_SERVICE) EjbInvocationFactory(com.sun.ejb.EjbInvocationFactory) Span(io.opentracing.Span) Descriptor(org.glassfish.deployment.common.Descriptor) ServiceLocator(org.glassfish.hk2.api.ServiceLocator) InvocationManager(org.glassfish.api.invocation.InvocationManager) java.util(java.util) Proxy(java.lang.reflect.Proxy) CallFlowInfo(com.sun.enterprise.admin.monitor.callflow.CallFlowInfo) AccessException(java.rmi.AccessException) SecurityManager(com.sun.enterprise.security.SecurityManager) ComponentContext(com.sun.ejb.ComponentContext) IndirectlySerializable(com.sun.enterprise.container.common.spi.util.IndirectlySerializable) Constructor(java.lang.reflect.Constructor) ASURLClassLoader(com.sun.enterprise.loader.ASURLClassLoader) MethodMap(com.sun.ejb.containers.util.MethodMap) StringRefAddr(javax.naming.StringRefAddr) LocalStringManagerImpl(com.sun.enterprise.util.LocalStringManagerImpl) ProtocolManager(org.glassfish.enterprise.iiop.api.ProtocolManager) EjbContainerInterceptor(org.glassfish.ejb.spi.EjbContainerInterceptor) RequestTracingService(fish.payara.nucleus.requesttracing.RequestTracingService) InterceptorDescriptor(com.sun.enterprise.deployment.InterceptorDescriptor) EjbTimedObjectProbeProvider(com.sun.ejb.monitoring.probes.EjbTimedObjectProbeProvider) UserTransaction(javax.transaction.UserTransaction) EntityManager(javax.persistence.EntityManager) EjbContainerFacade(org.glassfish.enterprise.iiop.spi.EjbContainerFacade) EjbBundleDescriptorImpl(org.glassfish.ejb.deployment.descriptor.EjbBundleDescriptorImpl) SystemException(javax.transaction.SystemException) JavaEETransactionManager(com.sun.enterprise.transaction.api.JavaEETransactionManager) InjectionManager(com.sun.enterprise.container.common.spi.util.InjectionManager) InvocationHandler(java.lang.reflect.InvocationHandler) EjbEndpointFacade(org.glassfish.ejb.api.EjbEndpointFacade) JavaEETransaction(com.sun.enterprise.transaction.api.JavaEETransaction) NamingException(javax.naming.NamingException) EjbOptionalIntfGenerator(com.sun.ejb.codegen.EjbOptionalIntfGenerator) RemoteReferenceFactory(org.glassfish.enterprise.iiop.api.RemoteReferenceFactory) PreDestroy(javax.annotation.PreDestroy) OpenTracingService(fish.payara.opentracing.OpenTracingService) WSEjbEndpointRegistry(org.glassfish.ejb.spi.WSEjbEndpointRegistry) Method(java.lang.reflect.Method) Reference(javax.naming.Reference) Vetoed(javax.enterprise.inject.Vetoed) EJBUtils(com.sun.ejb.EJBUtils) EjbApplicationExceptionInfo(org.glassfish.ejb.deployment.descriptor.EjbApplicationExceptionInfo) Logger(java.util.logging.Logger) DistributedLockType(fish.payara.cluster.DistributedLockType) InterceptorManager(com.sun.ejb.containers.interceptors.InterceptorManager) RemoteException(java.rmi.RemoteException) EjbInvocation(com.sun.ejb.EjbInvocation) EjbInitInfo(org.glassfish.ejb.deployment.descriptor.EjbInitInfo) EjbCacheProbeProvider(com.sun.ejb.monitoring.probes.EjbCacheProbeProvider) Modifier(java.lang.reflect.Modifier) Entry(java.util.Map.Entry) PostConstruct(javax.annotation.PostConstruct) ProbeProviderFactory(org.glassfish.flashlight.provider.ProbeProviderFactory) Application(com.sun.enterprise.deployment.Application) EjbDescriptor(org.glassfish.ejb.deployment.descriptor.EjbDescriptor) EjbSessionDescriptor(org.glassfish.ejb.deployment.descriptor.EjbSessionDescriptor) Globals(org.glassfish.internal.api.Globals) InvocationInfo(com.sun.ejb.InvocationInfo) EjbCacheStatsProvider(com.sun.ejb.monitoring.stats.EjbCacheStatsProvider) ComponentEnvManager(com.sun.enterprise.container.common.spi.util.ComponentEnvManager) Level(java.util.logging.Level) JavaEEContainer(com.sun.enterprise.container.common.spi.JavaEEContainer) OptionalLocalInterfaceProvider(com.sun.ejb.spi.container.OptionalLocalInterfaceProvider) RollbackException(javax.transaction.RollbackException) MethodLockInfo(com.sun.ejb.MethodLockInfo) SystemInterceptorProxy(com.sun.ejb.containers.interceptors.SystemInterceptorProxy) EjbMonitoringProbeProvider(com.sun.ejb.monitoring.probes.EjbMonitoringProbeProvider) FINE(java.util.logging.Level.FINE) LogMessageInfo(org.glassfish.logging.annotation.LogMessageInfo) TypeUtil(com.sun.enterprise.deployment.util.TypeUtil) Container(com.sun.ejb.Container) Utility(com.sun.enterprise.util.Utility) Tracer(io.opentracing.Tracer) GlassFishORBHelper(org.glassfish.enterprise.iiop.api.GlassFishORBHelper) CallbackType(com.sun.enterprise.deployment.LifecycleCallbackDescriptor.CallbackType) RuntimeTagNames(com.sun.enterprise.deployment.xml.RuntimeTagNames) EjbMonitoringStatsProvider(com.sun.ejb.monitoring.stats.EjbMonitoringStatsProvider) Status(javax.transaction.Status) Collectors.toList(java.util.stream.Collectors.toList) WebServiceEndpoint(com.sun.enterprise.deployment.WebServiceEndpoint) WebServicesDescriptor(com.sun.enterprise.deployment.WebServicesDescriptor) javax.ejb(javax.ejb) LogFacade(org.glassfish.ejb.LogFacade) GlassfishNamingManager(org.glassfish.api.naming.GlassfishNamingManager) ScheduledTimerDescriptor(org.glassfish.ejb.deployment.descriptor.ScheduledTimerDescriptor) Collectors.toList(java.util.stream.Collectors.toList) Method(java.lang.reflect.Method)

Aggregations

Logger (java.util.logging.Logger)9 Globals (org.glassfish.internal.api.Globals)6 List (java.util.List)5 Set (java.util.Set)5 ServiceLocator (org.glassfish.hk2.api.ServiceLocator)5 Serializable (java.io.Serializable)3 Collections (java.util.Collections)3 HashSet (java.util.HashSet)3 Level (java.util.logging.Level)3 FINE (java.util.logging.Level.FINE)3 Collectors.toSet (java.util.stream.Collectors.toSet)3 PostConstruct (javax.annotation.PostConstruct)3 PreDestroy (javax.annotation.PreDestroy)3 NamingException (javax.naming.NamingException)3 SystemException (javax.transaction.SystemException)3 Transaction (javax.transaction.Transaction)3 ActionReport (org.glassfish.api.ActionReport)3 ComponentInvocation (org.glassfish.api.invocation.ComponentInvocation)3 InvocationManager (org.glassfish.api.invocation.InvocationManager)3 Type (org.glassfish.hk2.classmodel.reflect.Type)3