public AppClientContext(ApplicationClientDescriptor appClientDescriptor) { super(appClientDescriptor); componentClassName = appClientDescriptor.getMainClassName(); }
public AppClientContext(ApplicationClientDescriptor appClientDescriptor) { super(appClientDescriptor); componentClassName = appClientDescriptor.getMainClassName(); }
/** * @return a set of class names that need to have full annotation processing */ public Set<String> getComponentClassNames() { Set set = new HashSet<String>(); set.add(getMainClassName()); return set; }
/** * @return a set of class names that need to have full annotation processing */ public Set<String> getComponentClassNames() { Set set = new HashSet<String>(); set.add(getMainClassName()); return set; }
/** * writes the content of an archive to a JarFile * * @param in the input archive * @param out the archive output stream to write to * @param entriesToSkip the files to not write from the original archive */ @Override protected void writeContents(ReadableArchive in, WritableArchive out, Vector entriesToSkip) throws IOException { // prepare the manifest file to add the main class entry if (manifest == null) { manifest = new Manifest(); } manifest.getMainAttributes().put(Attributes.Name.MANIFEST_VERSION, MANIFEST_VERSION_VALUE); manifest.getMainAttributes().put(Attributes.Name.MAIN_CLASS, ((ApplicationClientDescriptor) getDescriptor()).getMainClassName()); super.writeContents(in, out, entriesToSkip); }
/** * writes the content of an archive to a JarFile * * @param in the input archive * @param out the archive output stream to write to * @param entriesToSkip the files to not write from the original archive */ @Override protected void writeContents(ReadableArchive in, WritableArchive out, Vector entriesToSkip) throws IOException { // prepare the manifest file to add the main class entry if (manifest == null) { manifest = new Manifest(); } manifest.getMainAttributes().put(Attributes.Name.MANIFEST_VERSION, MANIFEST_VERSION_VALUE); manifest.getMainAttributes().put(Attributes.Name.MAIN_CLASS, ((ApplicationClientDescriptor) getDescriptor()).getMainClassName()); super.writeContents(in, out, entriesToSkip); }
/** * visits a appclient descriptor * @param appclientdescriptor the application client descriptor */ public void accept(ApplicationClientDescriptor appclientdescriptor) { bundleDescriptor = appclientdescriptor; // set the default lifecycle callback class for (LifecycleCallbackDescriptor next : appclientdescriptor.getPreDestroyDescriptors()) { next.setDefaultLifecycleCallbackClass( appclientdescriptor.getMainClassName()); } for (LifecycleCallbackDescriptor next : appclientdescriptor.getPostConstructDescriptors()) { next.setDefaultLifecycleCallbackClass( appclientdescriptor.getMainClassName()); } }
@Override public void accept(ApplicationClientDescriptor appclientdescriptor) { bundleDescriptor = appclientdescriptor; application = appclientdescriptor.getApplication(); // set the default lifecycle callback class for (LifecycleCallbackDescriptor next : appclientdescriptor.getPreDestroyDescriptors()) { next.setDefaultLifecycleCallbackClass( appclientdescriptor.getMainClassName()); } for (LifecycleCallbackDescriptor next : appclientdescriptor.getPostConstructDescriptors()) { next.setDefaultLifecycleCallbackClass( appclientdescriptor.getMainClassName()); } } }
String mainClassName = desc.getMainClassName(); addScanClassName(mainClassName);
String mainClassName = desc.getMainClassName(); addScanClassName(mainClassName);
(ApplicationClientDescriptor) env; id = "client" + ID_SEPARATOR + appEnv.getName() + ID_SEPARATOR + appEnv.getMainClassName(); } else if( env instanceof ManagedBeanDescriptor ) { id = ((ManagedBeanDescriptor) env).getGlobalJndiName();
ApplicationClientDescriptor appEnv = (ApplicationClientDescriptor) env; id = "client" + ID_SEPARATOR + appEnv.getName() + ID_SEPARATOR + appEnv.getMainClassName(); } else if (env instanceof ManagedBeanDescriptor) { id = ((ManagedBeanDescriptor) env).getGlobalJndiName();