How to search for available class in given package?

How to search for available class in given package or sub package?

Finally i did it. I make hibernate and spring without much configuration. I just pass the package pattern to search for all bean. I named it package pattern injection.
My website is still under construction yet. It named Jimmy6 Framework.
The code it just the following for all hibernate and spring bean for the whole project.
<bean id="sessionFactory" class="com.j6.framework.JAnnotationSessionFactoryBean">
          <property name="annotatationOrHbmXmlPackagePattern">
               <list>
                    <value>com\.j6\.project.+?\.vo\..+?</value>                    
               </list>
          </property>               
<bean id="autoBeanCreatorFactoryManager" class="com.j6.framework.resource.AutoBeanCreatorFactory">
          <property name="packagePatterns">
               <list>
                    <value>com\.j6\.project\..+?\.manager\..+?</value>
               </list>
          </property>
     </bean>
     <bean id="autoBeanCreatorFactoryDao" class="com.j6.framework.resource.AutoBeanCreatorFactory">
          <property name="packagePatterns">
               <list>
                    <value>com\.j6\.project\..+?\.dao\.hibernate.+?</value>
               </list>
          </property>
     </bean>Feel free to have a look and gv some comments. Thanks :)
Regards,
Jimmy6
Edited by: jimmy6 on Nov 4, 2008 8:15 AM

Similar Messages

  • How to search for perticular substring in given string.

    Hi, Can any one tell me how to search for perticular substring in given string.
    example:
    I have to search for CA in given Order type it may be CA10 or CA15. Please Do the needful.

    Hi Aniruddha,
    check this...
    Data var string,
    var = 'India'.
    search var for 'Ind'.
    if sy-subrc = 0.    " var having ind
    Message 'Ind found' type 'I'.
    else  .            "var not having ind
    Message 'Ind not Found' type 'I'.
    endif.
    thanx
    bgan.

  • How to search for a class to know it is in which Jar file

    Hi Guys,
       Can any tell me how to search a class file. I have a set of Jar files in which the required class file is there. But i don't know in which Jar file the class is. Is there any way to find out.
    Regards,
    Gowtham K.

    Hi Gowtham,
    Please download the Class locator from the following site. This will help to know what you are looking for.
    <b>http://www.alphaworks.ibm.com/tech/jarclassfinder</b>
    <b>http://sourceforge.net/projects/classlocator</b>
    I hope this solves your problem.
    Regards
    Pravesh
    PS: Please consider rewarding points for helpful answer.

  • How to search for a Class by incomplete name?

    Hello.
    Does anyone know if it is possible to get an instance of the Class object for a class that I don't have a fully qualified name for?
    For example, I want to get the object I would normally get by calling
    my.project.package.web.jsf.MyConstants.classexcept that I only have the "MyConstants" part of the name.
    Is it possible to somehow use the classloader to search for <i>my.project.package.web.jsf.MyConstants</i> class when I only have <i>MyConstants</i> to start with?
    Thanks.

    vace117 wrote:
    Besides, getting this to work is not really that important. At this point it mostly bothers me as a theoretical question. Can it be done?If you're asking whether it's possible to have a situation where you have two classes with the same name, but in different packages, and that the JVM can look at just the class name and figure out which of the two classes you really meant to use...well, sure, in that (I suppose) you could write something that would search the entire classpath looking for the matching classes, and then apply some heuristics with something like BCEL to try to guess which class you really meant to use. It'll be ugly code and it won't be foolproof, but if you really want it...there you go.
    Ultimately, there's a baseline of information that the JVM needs -- in this case the full name of the class. If you start with only partial information, you're going to have to provide some way to derive the full information. Information doesn't just pop into existence magically. The cleanest, easiest way to provide the information is to provide all of it to begin with. The second cleanest, easiest way is to prepend a standard package name. It gets uglier from there.
    You could do is design a custom classloader that specifies classes in a different way...but I suspect that you'd find that ugly as well.

  • Hi - how do  I download items already purchased?  I have tried store and search for available nloads but it t

    Hi - how do  I download items already purchased?  I have tried store and search for available downloads but it tells me they are already downloaded - they are not however - fyi I lost my phone so I am using a new phone with the same apple id and assumed I could just re-access my previously purcahsed items - how do I find them to download?
    Many thanks

    many thanks for a really fast response - Yes I have seen on other postings since you only get one hit and you are right I should have backed up and didn't as I am a bit of a novice and naive (but learning fast now).  Have used your suggestion and accessed and downloaded some historical apps.
    many thanks - I will ensure I back up regularly going forward. 
    Thanks again

  • How to search for a BADI in a transaction

    Hi All,
    Please let me know the steps to find a BADI for a transaction.
    Thanks,
    Jaffer Ali.S

    check this.
    u can find BADI's in different ways...
    1>First go to any transaction->iN THE menu bar SYSTEM->STATUS->Get the program name ->double click->u will go to the program attached to the tcode.Now search term will be CALL CL_EXITHANDLER.Now u will get list of BADI'S available..
    2>Goto SE24->Give class name as CL_EXITHANDLER->Display->double click on get_instance mathod->Now u will go inside the method->Now put break point on the cl_exithandler.Now go to any transaction code and pass dat..U will see that it will be stopped on the break point which u set on the cl_exithandler...In the exit name u can find list of badi's attached to the tcode..
    There are multiple ways of searching for BADI.
    • Finding BADI Using CL_EXITHANDLER=>GET_INSTANCE
    • Finding BADI Using SQL Trace (TCODE-ST05).
    • Finding BADI Using Repository Information System (TCODE- SE84).
    1. Go to the Transaction, for which we want to find the BADI, take the example of Transaction VD02. Click on System->Status. Double click on the program name. Once inside the program search for ‘CL_EXITHANDLER=>GET_INSTANCE’.
    Make sure the radio button “In main program” is checked. A list of all the programs with call to the BADI’s will be listed.
    The export parameter ‘EXIT_NAME’ for the method GET_INSTANCE of class CL_EXITHANDLER will have the user exit assigned to it. The changing parameter ‘INSTANCE’ will have the interface assigned to it. Double click on the method to enter the source code.Definition of Instance would give you the Interface name.
    2. Start transaction ST05 (Performance Analysis).
    /people/alwin.vandeput2/blog/2006/04/13/how-to-search-for-badis-trace-it
    3. Go to “Maintain Transaction” (TCODE- SE93).
    Enter the Transaction VD02 for which you want to find BADI.
    Click on the Display push buttons.
    Get the Package Name. (Package VS in this case)
    Go to TCode: SE84->Enhancements->Business Add-inns->Definition
    Enter the Package Name and Execute.
    Here you get a list of all the Enhancement BADI’s for the given package MB.
    The simplese way for finding BADI is
    1. chooes Tcode Program & package for that Tcode.
    2. Go to Tcode se18
    3. Press F4
    4. search by package or by program.
    Regards
    Kiran Sure

  • Anyone know how to find available classes in a package?

    Anyone know how to find available classes in a package?
    Given a String like "java.io" I would like to write a method to extract the available classes in this package. I can't seem to find a method for this anywhere in the docs. The package class does not seem to have a method like this.

    Here is some code I tried.
    I'm not very familiar with manipulating JARs The code below is what I tried, but how do I access the packages like "java.io" in the JarFile? and then get the available classes?
    import java.io.*;
    import java.util.*;
    import java.util.jar.*;
    class Tester
         public static void main(String args[])
              try {
                   JarFile jf = new JarFile("c:/jdk1.3/lib/dt.jar");/* usually rt.jar (and 1.4)*/
                   Enumeration e = jf.entries();
                        while (e.hasMoreElements())
                             Object current = e.nextElement();
                             System.out.println(current.toString() + "class:"+current.getClass());
                             try {
                                  Thread.sleep(300);
                             } catch (InterruptedException ie) {}
              } catch (IOException ioe) {System.out.println(ioe.toString());}
                   /*also tried      ClassLoader cl = ClassLoader.getSystemClassLoader();
              try {
                   Enumeration e = cl.getResources("c:/jdk1.3/lib/dt.jar");
                   System.out.println(e.nextElement());
                   while (e.hasMoreElements())
                   System.out.println(e.nextElement());
              } catch (IOException ioe) {System.out.println(ioe.toString());}

  • How to search for a particular word in a string?

    How to search for a particular word in a string?
    thanks for your help....

    This works fine.
    public class Foo {
        public static void main(String[] args) {
        String s = "Now is the time for all good...";
        String s2 = "the time";
        System.out.println(s.contains(s2));
        System.out.println(s.contains("for al"));
        System.out.println(s.contains("not here"));
    }output:true
    true
    falseYou must have something else wrong in your code.
    JJ

  • How to search for upper/lower case using string using JAVA!!!?

    -I am trying to write a program that will examine each letter in the string and count how many time the upper-case letter 'E' appears, and how many times the lower-case letter 'e' appears.
    -I also have to use a JOptionPane.showMessageDialog() to tell the user how many upper and lower case e's were in the string.
    -This will be repeated until the user types the word "Stop". 
    please help if you can
    what i have so far:
    [code]
    public class Project0 {
    public static void main(String[] args) {
      String[] uppercase = {'E'};
      String[] lowercase = {'e'};
      String isOrIsNot, inputWord;
      while (true) {
       // This line asks the user for input by popping out a single window
       // with text input
       inputWord = JOptionPane.showInputDialog(null, "Please enter a sentence");
       if ( inputWord.equals("stop") )
        System.exit(0);
       // if the inputWord is contained within uppercase or
       // lowercase return true
       if (wordIsThere(inputWord, lowercase))
        isOrIsNot = "Number of lower case e's: ";
       if (wordIsThere(inputword, uppercase))
         isOrIsNot = "number of upper case e's: ";
       // Output to a JOptionPane window whether the word is on the list or not
       JOptionPane.showMessageDialog(null, "The word " + inputWord + " " + isOrIsNot + " on the list.");
    } //main
    public static boolean wordIsThere(String findMe, String[] theList) {
      for (int i=0; i<theList.length; ++i) {
       if (findMe.equals(theList[i])) return true;
      return false;
    } // wordIsThere
    } // class Lab4Program1
    [/code]

    So what is your question? Do you get any errors? If so, post them. What doesn't work?
    And crossposted: how to search for upper/lower case using string using JAVA!!!?

  • How to search for a particular pattern in a string

    Hi,

    Hi ,
    How to search for a particular pattern in a string?
    I heard about java.util.regex; and used it in my jsp program.
    Program I used:
    <% page import="java.util.regex"%>
    <% boolean b=Pattern.matches("hello world","hello");
    out.println(b);%>
    I run this program using netbeans and am getting the following error message.
    "Cannot find the symbol : class regex"
    "Cannot find the symbol : variable Pattern "
    How to correct the error?

  • How to search for data on the web and return to jsp

    I need to collect data from a web site and return that data to my jsp file. The page should consist of a web page in which the user search for available flights then I conect to easyjet automatically fill in the form and return the result from easyjet.com to my jsp file..Do anyone know how can I do this?? I need to use java for this and not cgi..I found also some JavaScripts that can perform the same thing..Thanks...

    Hi,
    are you able to change dynamically the  operation.url = "assets/data/shopping.xml";?
    i need to do that based on the users input.
    Thanks in advance,

  • How to search for (new) BAdIs?

    Hi,
    I found some forum threads, blogs, and wikis in sdn about "How to search for BAdIs".
    Here the list I found:
    1. SE18 u2013 BADI Definition
    2. SE81 u2013 Application Hierarchy
    3. SPRO u2013 SAP IMG Reference
    4. SE84 u2013 Object Navigator u2013 Repository Information System
    5. SPAU_ENH (ECC6.0) u2013 Enhancements -> Simple or Composite (spots, implementations, sections, upgrades)
    6. ST05 u2013 SQL Trace -> Buffer Trace
    7. SE24 -> CL_EXITHANDLER -> Breakpoint at Method GET_INSTANCE -> Run Transaction -> Exit_name -> BADI name
    The fastest ways are ST05 and SE24, I think. Are there such effective ways for the new, kernel based BAdIs? ST05 and CL_EXITHANDLER with debugger donu2019t work.
    thanks in adavance,
    Michael

    Hi,
        Missed one more method
    The below steps should enable you to find any BADI related to any transaction in a matter of minutes.
      Go to the transaction SE37 to find your function module.
      Locate the function SXV_GET_CLIF_BY_NAME.
      Put a breakpoint there.
      Now open a new session.
      Go to your transaction.
      Goto the screen where you want to find any BADI available, it will stop in this function.
      Double click on the function field EXIT_NAME.
      That will give you name of the BADI that is provided in your transaction.
      Again execute and it stop again and fill with new BADI name if any
      Repeat the same step and you come to know how many BADI exist
    Regards
    Bala Krishna

  • How to search for file in jsp page

    i need help on how to search for a file in a folder where there is a lot of subfolder.like how u search in a document in windows. i need a complete codes in jsp page.
    thank you in advance.
    Message was edited by:
    n_dilah

    no i need to do a search engine in jsp page which is the j2ee.
    i type smth than tat file from any folder will appear the same way when u need to search your file in a document in windows.
    well can u nice people tell me where i can get the codes bcos i stinks when it come to programming.
    thank you very very very much.

  • How To Search For a Specific File name?

    Hello Everybody
    How To Search For a File Like NewFile.txt in a Root Like C:\\
    And If The File Is Found Open It And Write In It?

    http://forum.java.sun.com/thread.jspa?threadID=5194090&messageID=9763314

  • How to search for a fields ?

    Hello,
    I know it's an easy question but I've not find, how to search for a fields in Database on CR XI R2 ?
    Thanks in advance

    Hi Alexandre
    Do you want to see which database fields you have inserted in Crystal Reports and in which section you have inserted what fields?
    If yes then
    -open formula editor
    -In the right side pane expand Formatting Formulas.
    -Expand all the sections one by one and it will show you database fields,formulas and all the objects used in the sections.
    Hope this will clarify your doubts.
    Regards
    Asha.

Maybe you are looking for

  • Macbook Air random freeze and reboot, plus other problems

    I've had my Macbook Air for about 6 weeks and am having several issues. It is the 13" model, special ordered with 8GB of ram so it came straight from the factory. I copied all my data over from a mid-2010 15" Macbook Pro using migration assistant, an

  • Updates are not showing in other websites

    I have kept my firefox updated automatically. When looking at the info about firefox, it says I am running 16.0.2 HOwever, there are many websites that do not let me view video or audio streams or other items because it says I am running firefox 3, a

  • StarCam 370i with Apple Mac

    I have a serious problem with StarCam 370i : - I used this webcam earlier with my old mac mini (with PowerPC processor) OS-X 10.4.7, with no problem, cam works very well - now I have a new mac mini (now with Intel CoreDuo processor) OS-X 10.4.10 and

  • How can I get my iPhone to let me know when I get an email from Outlook?

    How can I get my iPhone to let me know when I get an email from Outlook?

  • Usage of FM TMS_MGR_READ_TRANSPORT_QUEUE

    Hi there, i want to use the function module TMS_MGR_READ_TRANSPORT_QUEUE but unfortunately it has no documentation and i do not want to change any data. do i change any data if i keep the parameters IV_CLEAR_LOCKS and IV_UPDATE_CACHE at their default