Application.getRegistrationName
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using com.sun.enterprise.deployment.Application.getRegistrationName (Showing top 20 results out of 315)

  • Common ways to obtain Application
private void myMethod () {
Application a =
  • ApplicationInfo appInfo;appInfo.getMetaData(Application.class)
  • BundleDescriptor bundleDescriptor;bundleDescriptor.getApplication()
  • DeploymentContext context;context.getModuleMetaData(Application.class)
  • Smart code suggestions by Codota
}
origin: org.glassfish.ejb/ejb-container

/**
 * return the name of the application to which the bean belongs
 * it will be the j2ee app name if the bean is part of a j2ee app
 * it will be the ejb module name if the bean is a stand-alone ejb module
 */
private String getApplicationName() {
  Application application = _ejbDescriptor.getApplication();
  return application.getRegistrationName();
}
origin: org.glassfish.security/security

private String getAppId() {
  return wbd.getApplication().getRegistrationName();
}
origin: org.glassfish.main.security/security-ee

private String getAppId() {
  return wbd.getApplication().getRegistrationName();
}
origin: org.glassfish.main.deployment/dol

/**
 * Return the resource object corresponding to the supplied name or throw an illegal argument exception.
 */
public ResourceReferenceDescriptor getResourceReferenceByName(String name) {
  for (Iterator itr = this.getResourceReferenceDescriptors().iterator(); itr.hasNext();) {
    ResourceReferenceDescriptor next = (ResourceReferenceDescriptor) itr.next();
    if (next.getName().equals(name)) {
      return next;
    }
  }
  throw new IllegalArgumentException(localStrings.getLocalString(
      "enterprise.deployment.exceptionapphasnoresourcerefbyname",
      "This app {0} has no resource reference by the name of {1}",
      new Object[]{getRegistrationName(), name}));
}
origin: org.glassfish.deployment/dol

/**
 * Return the resource object corresponding to the supplied name or throw an illegal argument exception.
 */
public ResourceReferenceDescriptor getResourceReferenceByName(String name) {
  for (Iterator itr = this.getResourceReferenceDescriptors().iterator(); itr.hasNext();) {
    ResourceReferenceDescriptor next = (ResourceReferenceDescriptor) itr.next();
    if (next.getName().equals(name)) {
      return next;
    }
  }
  throw new IllegalArgumentException(localStrings.getLocalString(
      "enterprise.deployment.exceptionapphasnoresourcerefbyname",
      "This app {0} has no resource reference by the name of {1}",
      new Object[]{getRegistrationName(), name}));
}
origin: org.glassfish.deployment/dol

/**
 * Returns the environment property object searching on the supplied key.
 * throws an illegal argument exception if no such environment property exists.
 */
public EnvironmentProperty getEnvironmentPropertyByName(String name) {
  for (Iterator itr = this.getEnvironmentProperties().iterator(); itr.hasNext();) {
    EnvironmentProperty ev = (EnvironmentProperty) itr.next();
    if (ev.getName().equals(name)) {
      return ev;
    }
  }
  throw new IllegalArgumentException(localStrings.getLocalString(
      "enterprise.deployment.exceptionapphasnoenvpropertybyname",
      "This app {0} has no environment property by the name of {1}",
      new Object[]{getRegistrationName(), name}));
}
origin: org.glassfish.deployment/dol

/**
 * Return a reference to another ejb by the same name or throw an IllegalArgumentException.
 */
public JmsDestinationReferenceDescriptor getJmsDestinationReferenceByName(String name) {
  for (Iterator itr = this.getJmsDestinationReferenceDescriptors().iterator(); itr.hasNext();) {
    JmsDestinationReferenceDescriptor jdr = (JmsDestinationReferenceDescriptor) itr.next();
    if (jdr.getName().equals(name)) {
      return jdr;
    }
  }
  throw new IllegalArgumentException(localStrings.getLocalString(
      "enterprise.deployment.exceptionapphasnojmsdestrefbyname",
      "This app {0} has no resource environment reference by the name of {1}",
      new Object[] {getRegistrationName(), name}));
}
origin: org.glassfish.main.deployment/dol

/**
 * Returns the environment property object searching on the supplied key.
 * throws an illegal argument exception if no such environment property exists.
 */
public EnvironmentProperty getEnvironmentPropertyByName(String name) {
  for (Iterator itr = this.getEnvironmentProperties().iterator(); itr.hasNext();) {
    EnvironmentProperty ev = (EnvironmentProperty) itr.next();
    if (ev.getName().equals(name)) {
      return ev;
    }
  }
  throw new IllegalArgumentException(localStrings.getLocalString(
      "enterprise.deployment.exceptionapphasnoenvpropertybyname",
      "This app {0} has no environment property by the name of {1}",
      new Object[]{getRegistrationName(), name}));
}
origin: org.glassfish.main.deployment/dol

/**
 * Return a reference to another ejb by the same name or throw an IllegalArgumentException.
 */
public ResourceEnvReferenceDescriptor getResourceEnvReferenceByName(String name) {
  for (Iterator itr = this.getResourceEnvReferenceDescriptors().iterator(); itr.hasNext();) {
    ResourceEnvReferenceDescriptor jdr = (ResourceEnvReferenceDescriptor) itr.next();
    if (jdr.getName().equals(name)) {
      return jdr;
    }
  }
  throw new IllegalArgumentException(localStrings.getLocalString(
      "enterprise.deployment.exceptionapphasnoresourceenvrefbyname",
      "This app {0} has no resource environment reference by the name of {1}",
      new Object[] {getRegistrationName(), name}));
}
origin: org.glassfish.main.ejb/ejb-container

String getTimedObjectApplicationName() {
  EjbDescriptor ejbDesc = container_.getEjbDescriptor();
  Application app = ejbDesc.getApplication();
  return (app != null) ? app.getRegistrationName() : "";
}
origin: org.glassfish.ejb/ejb-container

String getTimedObjectApplicationName() {
  EjbDescriptor ejbDesc = container_.getEjbDescriptor();
  Application app = ejbDesc.getApplication();
  return (app != null) ? app.getRegistrationName() : "";
}
origin: org.glassfish.security/security

 public static String getContextID(WebBundleDescriptor wbd) {
  String cid = null;
  if (wbd != null ) {
    //String moduleId = wbd.getUniqueFriendlyId();
    cid = VersioningUtils.getRepositoryName(wbd.getApplication().getRegistrationName()) +
      '/' + wbd.getUniqueFriendlyId();
  }
  return cid;
}
 
origin: org.glassfish.main.security/security-ee

 public static String getContextID(WebBundleDescriptor wbd) {
  String cid = null;
  if (wbd != null ) {
    //String moduleId = wbd.getUniqueFriendlyId();
    cid = VersioningUtils.getRepositoryName(wbd.getApplication().getRegistrationName()) +
      '/' + wbd.getUniqueFriendlyId();
  }
  return cid;
}
 
origin: org.glassfish.main.persistence.cmp/cmp-support-ejb

/** 
 * Create GeneratorException for this message key.
 * @param key the message key in the bundle.
 * @param bundle the ejb bundle.
 * @param e the Exception to use for the message.
 * @return GeneratorException.
 */
public static GeneratorException createGeneratorException(
    String key, EjbBundleDescriptor bundle,  Exception e) {
  return new GeneratorException(I18NHelper.getMessage(
    messages, key,
    bundle.getApplication().getRegistrationName(),
    getModuleName(bundle), 
    e.getMessage()));
}
origin: org.glassfish.main.persistence.cmp/cmp-support-ejb

/** 
 * Create GeneratorException for this message key and bean name.
 * @param key the message key in the bundle.
 * @param bundle the ejb bundle.
 * @return GeneratorException.
 */
public static GeneratorException createGeneratorException(
    String key, String beanName, EjbBundleDescriptor bundle) {
  return new GeneratorException(I18NHelper.getMessage(
    messages, key, beanName,
    bundle.getApplication().getRegistrationName(),
    getModuleName(bundle)));
}
origin: org.glassfish.main.persistence.cmp/cmp-support-ejb

/**
 * Create GeneratorException for this message key.
 * @param key the message key in the bundle.
 * @param bundle the ejb bundle.
 * @return GeneratorException.
 */
public static GeneratorException createGeneratorException(
    String key, EjbBundleDescriptor bundle) {
  return new GeneratorException(I18NHelper.getMessage(
    messages, key,
    bundle.getApplication().getRegistrationName(),
    getModuleName(bundle)));
}
origin: org.glassfish.deployment/dol

public String getModuleName() {
  String moduleName = null;
  // for standalone jars, return its registration name
  // for applications, return the module uri
  if (getApplication().isVirtual()) {
    moduleName = getApplication().getRegistrationName();
  } else {
    moduleName = getModuleDescriptor().getArchiveUri();
  }
  return moduleName;
}
origin: org.glassfish.main.deployment/dol

public String getModuleName() {
  String moduleName = null;
  // for standalone jars, return its registration name
  // for applications, return the module uri
  if (getApplication().isVirtual()) {
    moduleName = getApplication().getRegistrationName();
  } else {
    moduleName = getModuleDescriptor().getArchiveUri();
  }
  return moduleName;
}
origin: org.glassfish.main.ejb/ejb-container

CallFlowInfoImpl(BaseContainer container, EjbDescriptor descriptor,
    ComponentType compType) {
  this.container = container;
  this.ejbDescriptor = descriptor;
  
  this.appName = (ejbDescriptor.getApplication().isVirtual()) ? null
      : ejbDescriptor.getApplication().getRegistrationName();
  String archiveuri = ejbDescriptor.getEjbBundleDescriptor()
      .getModuleDescriptor().getArchiveUri();
  this.modName = com.sun.enterprise.util.io.FileUtils
      .makeFriendlyFilename(archiveuri);
  this.ejbName = ejbDescriptor.getName();
  
  this.componentType = compType;
}

origin: org.glassfish.ejb/ejb-container

CallFlowInfoImpl(BaseContainer container, EjbDescriptor descriptor,
    ComponentType compType) {
  this.container = container;
  this.ejbDescriptor = descriptor;
  
  this.appName = (ejbDescriptor.getApplication().isVirtual()) ? null
      : ejbDescriptor.getApplication().getRegistrationName();
  String archiveuri = ejbDescriptor.getEjbBundleDescriptor()
      .getModuleDescriptor().getArchiveUri();
  this.modName = com.sun.enterprise.util.io.FileUtils
      .makeFriendlyFilename(archiveuri);
  this.ejbName = ejbDescriptor.getName();
  
  this.componentType = compType;
}

com.sun.enterprise.deploymentApplicationgetRegistrationName

Javadoc

Returns the registration name of this application.

Popular methods of Application

  • getAppName
    Returns the value of the app-name element in the application.xml if it's defined. The default EE app
  • isVirtual
    Returns the virtual status of this application.
  • getBundleDescriptors
    Obtain a full set of bundle descriptors for a particular type
  • getName
  • getRealm
  • getKeepState
  • getLibraryDirectory
    Returns an "intelligent" value for the library directory setting, meaning the current value if it ha
  • getModules
    Obtain a full set of module descriptors
  • getRoleMapper
    Return my mapping of rolename to users and groups on a particular server.
  • isInitializeInOrder
  • setName
    Reset the display name of this application.
  • setVirtual
    Sets the virtual status of this application. If this application object represents a stand alone mod
  • setName,
  • setVirtual,
  • <init>,
  • getClassLoader,
  • getModuleByUri,
  • getRelativeBundle,
  • getRoles,
  • setAppName,
  • setRegistrationName

Popular in Java

  • Making http requests using okhttp
  • setContentView (Activity)
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)