Sub Packages

I am at a client site that want's to use sub packages for different
parts of their application. For instance search JSPs and ViewBeans
would be in a top.SearchPages package. Is this possible?
Thanks,
Jason Smith
jsmith@E...

In my sleep I think I arrived where I wanted to go yesterday. Make a
servlet for each sub-application. Let's start with a request for the
main servlet with a page request.
The page requested must be in the same sub-application that the servlet
lives in so as to accomodate the "hard-coding" of the package, etc. You
will only change sub-applications in the click event of the button or
href so I think it is OK.
For example, if you desire to go to the pgSearch1 page of the search
sub-application when you click on a button on the pgMenu1 page of the
menues sub-application then it happens on the
application.menues.pgMenu1 in the click event. The forward looks like
this;
getParentViewBean().forward("/cedg/searches/pgSearch1.jsp", targetView,
getRequestContext());
That is what "switches" from one sub-application to another. I think
the code on the servlet;
protected void initializeRequestContext(RequestContext requestContext)
super.initializeRequestContext(requestContext);
// Set a view bean manager in the request context. This must be
// done at the module level because the view bean manager is
// module specifc.
// TODO: Is this a problem for ViewBeans that cross module boundaries?
viewBeanManager = new ViewBeanManager(requestContext, PACKAGE_NAME);
((RequestContextImpl) requestContext).setViewBeanManager
(viewBeanManager);
will work ok when you get the request back because you'll be pointing
at a new sub-application servlet.
Tell me where this falls apart. It should be OK because the FORM build
in the formTag code uses the bean that is instantiated in the
useBeanTag so the correct servlet should be pointed to.
----- Original Message -----
From: jsmith@E...
Date: Monday, February 5, 2001 9:35 pm
Subject: [iPlanet-JATO] Re: Sub Packages
--- In iPlanet-JATO@y..., "Todd Fast" <Todd.Fast@S...> wrote:
Hi Jason--
I am at a client site that want's to use sub packages for
different
parts of their application. For instance search JSPs and ViewBeans
would be in a top.SearchPages package. Is this possible?Each JATO application is subdivided into modules, which are each subpackages
of the "root" application package. In your example, "top" would be
the
application package, and "SearchPages" a module package. So, from
the JATO
perspective, this is perfectly feasible and I'll be happy to discuss it with
you if you have further questions.
But, I'm not sure if you're referring to a migrated project or a new
project. The migration process takes the original ND projects and
converts
them to JATO modules. Therefore, for a migrated project, unless the
original SearchPages was an ND project, you will not have a separate
SearchPages package without manually creating it and moving the desired
pages/ViewBeans there.
Please give me more information and I can elaborate further if necessary.
ToddThanks for the response. This is a single project that has
already
been migrated. The user had folders in NetDynamics that of course
are just symbolic, however they want to maintain this structure
for
development. So, we have moved all objects into the packages they
want. However, it appears that JATO expects all ViewBeans to be
in
the same package as the servlet. What it appears is that I need
to
store the full class name including package, in the page so that
when
the page is rendered the full package name is in the hidden field.
JATO does a few things that make this difficult. It automatically
places the package name of the servlet onto the ViewBean.
Therefore,
if I added the full package name in the page,
top.SearchPages.pgSearchForSomething, it would attempt to
instantiate
top.top.SearchPages.pgSearchForSomething.
I believe I can modify JATO to accomplish what they desire.
However,
I don't think this is wise. I am relatively new to JATO and if
this
is not clear please let me know and I'll try to expand. Any help
you
can offer is appreciated.
[email protected]

Similar Messages

  • Grant access to sub-package via hdbsql

    Hi All,
    I am having trouble running an hdbsql command in a shell script and wondering if anyone could help. (I am running HANA DB SP6, Revision 60)
    Basically, I would like to give a user REPO.READ access to the Competition sub-package as shown below.
    I am attempting to use the following command:
    su - <sid>adm -c "hdbsql -i <##> -u SYSTEM -p <password> \ "GRANT REPO.READ on "ERPSIM.Competition" to USER\""
    but I am getting this error - "424: invalid name of package COMPETITION: line 1 col 7 (at pos 6) SQLSTATE: HY000"
    The weird thing is that that SQL command will work as intended if I run it in HANA Studio, but not when I run it though hdbsql. Also, if I do a GRANT REPO.READ on ERPSIM.ERPSIM, it will succesfully authorize the user for the ERPSIM package.
    Does anyone know how to authorize a user for a sub-package via a hdbsql script?
    Thanks in advance!
    Jerad

    SAP Support was able to resolve this issue for me . The following syntax allowed me to assign privileges for a sub-package via hdbsql:
    su - <sid>adm -c "hdbsql -i <##> -u SYSTEM -p <password> \"GRANT REPO.READ on \\\"ERPSIM.Competition\\\" to USER\""

  • Changing classpath of all sub-packages when moving package

    So I'm new to Flash Builder and trying to make a Starling project. I want the Starling package to reside inside of a package called "code" instead of just residing in the root of my project. I can move it to the code package via drag-and-drop, but the classpaths of all the packages inside starling still say "starling.xxx" - whereas I want them to now say "code.starling.xxx".
    How do I 'mass update' the paths of all the packages?

    Adding a new sourcepath is just that... Starting in root package, paths are read from your new classpath.
    So, you need to do a formal move to put starling files in the new sub package either before or after placing them in the new source directory.
    G

  • Compiling application (with several sub-packages) from another java app

    Hi,
    I'm writing my own build tool and need to be able to compile an external application (pulled from cvs, subversion, ...) from within this build tool.
    Probably I need to use com.sun.tools.javac.Main.compile ?
    But how do I pass classpath, output dir, etc to this class and how can I make it compile all files in all (sub)packages of the given folder ?
    thanks for any help.

    Never mind my previous post, I found a solution to the "the input line is too long" problem:
    Putting all the files in a temporary file and then providing that file as the source to compile, like this:
    javac -g:none -cp <classpath> -d classes @sourcefiles.txtwhere sourcefiles.txt is the name of the temporary file that contains the names of the source files (note the "@"-prefix)
    For some reason, this is not mentioned/documented in the java docs (at least not in my docs)
    Ok, so everything is compiling now, but I have one problem remaining:
    For each "module" that I compile (the application I use for my tests consists of several "modules", i.e. subpackages), I get an error stating that "The system cannot find the path specified"
    This seems obvious, because it is trying to write a file <package-name>\classes\<package-name>\<classname>.class
    But why is it trying to write that file ?
    -> Is this a known bug or something ?
    Let me explain a little more...
    For each compilation I do using the com.sun.tools.javac.Main.compile() method, it is giving this error.
    Everything is compiling correctly, but it seems it is trying to write an extra class file to a wrong path.
    Until now, it was always the first file in the row that gave the problem.
    Example:
    ** module 1:
    sources/com/example/module1/class1.java
    sources/com/example/module1/class2.java
    sources/com/example/module1/class3.java
    sources/com/example/module1/sub1/subclass1.java
    sources/com/example/module1/sub1/subclass2.java
    sources/com/example/module1/sub1/subclass3.java
    ** module 2:
    sources/com/example/module2/class1.java
    sources/com/example/module2/class2.java
    sources/com/example/module2/class3.java
    sources/com/example/module2/sub1/subclass1.java
    sources/com/example/module2/sub1/subclass2.java
    sources/com/example/module2/sub1/subclass3.java
    => My application will compile module 1, do some other things with it and the module 2 and again do some other things with it.
    The result would be:
    Application started.
    Loading configuration: OK
    Compiling sources for module module1: E:\temp\_User_\project\packaging\workingdir\source\com/example/module1\class1.java:12: error while writing com.example.module1.class1: com\example\module1\classes\com\example\module1\class1.class (The system cannot find the path specified)public class class1 extends Thread {
           ^
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -deprecation for details.
    1 error
    OK
    Note: Contents of my classes directory for module1:
    classes/com/example/module1/class1.class
    classes/com/example/module1/class2.class
    classes/com/example/module1/class3.class
    classes/com/example/module1/sub1/subclass1.class
    classes/com/example/module1/sub1/subclass2.class
    classes/com/example/module1/sub1/subclass3.class
    => all class files are correctly compiled
    Compiling sources for module module2: E:\temp\_User_\project\packaging\workingdir\source\com/example/module2\class1.java:12: error while writing com.example.module2.class1: com\example\module2\classes\com\example\module2\class1.class (The system cannot find the path specified)public class class1 extends Thread {
           ^
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -deprecation for details.
    1 error
    OK
    Application finished without errors.
    Note: Contents of my classes directory for module2:
    classes/com/example/module2/class1.class
    classes/com/example/module2/class2.class
    classes/com/example/module2/class3.class
    classes/com/example/module2/sub1/subclass1.class
    classes/com/example/module2/sub1/subclass2.class
    classes/com/example/module2/sub1/subclass3.class
    So, as you can see everything compiles as expected, but an error message is displayed related to each first file that is compiled.
    ==> Is this a known issue ?
    ==> What can I do about it ?
    Suggestions welcome

  • Package Visability in Sub-Packages

    Is there any way to make a class or interface visible to all the other classes in a package (package A) and any classes within a package that is within package A (package A.B, A.C, etc) but not visible outside of Package A?
    Kind of a package hierarchal visibility?
    Is this too way out for a JSR?

    There is no "package hierarchy". A.B is not related at all to A in the context of package names. A.B might just as well be treated as if it were named X.Y

  • Bubbling exceptions up from sub packages

    Hi.  We run 2012 std.  We r trying 2 get our heads around the options we would have customizing capture of exceptions that bubble up (if that is possible) to our master pkg from sub pkgs.  This question is independent of ssis's sys logging.
    My recollection is that ssis tells us a lot (maybe too much repetition) about exceptions.  Our goal is to customize how we deal with exceptions at lower levels in the master pkg itself (perhaps in the .net service that calls the mstr if that can be
    bubbled up) so that we aren't incorporating the same custom logging at every level of the ssis call "tree/structure".
    We capture some exceptions already in vars by incorporating try catch blocks in our c# scripts.  But haven't addressed yet how those might be bubbled up.  It is hoped that whatever we do with these can mimic what we do with exceptions thrown by
    other ssis components where there is no c# code to catch the exception.
    Can the community get us started?

    this is what I'm concluding from what I see and what the community has said thus far:
    If our goal is a tool that can answer most inquiries about what our etl has done,
    1)   forget about dbo.sysssislogs .  It doesn't record exceptions.  Traceability may be present but at what cost?  It is susceptible to different approaches used by different programmers working on different pkgs.  Its
    not a question of if but rather when it will be truncated and thus be out of sync with supporting custom log tables.  It is probably going to behave differently from release to release of ssiis.
    2)  keep that flat file ssis log around.  I'm not sure what its formal name is but we often append a datestamp to a file name we give it when running pkgs from the command line.  As much of a challenge as it is to read that
    file, it seems more informative and friendly to me than dbo.sysssislog.  And kills two birds with one stone in the event that custom logging cant make a connection to the db where custom logging takes place.
    3)   get serious about ssis component naming conventions.   How informative is "For Each Loop" when trying to make heads or tails of what a log is trying to tell you.
    4)  don't allow parallel processing (neither in cf not df) until ssis gets better at the whole var locking unlocking race condition thing.  Handle locking yourself.  Incorporate multiple pkgs if both parallel processing and
    useful logging r important.
    5)  bake record counts, start times and end times into your logging solution.  Reject counts as well if applicable.         
    6) use pre, post and error handlers to do the logging with a std toolbox item if possible thus leaving pkgs more readable.  Record parent child component traceability info that is exposed in these handlers thru system vars.  Supplement latter with exceptions
    caught in c# scripts.  Use views and indexes for the dashboards that will need to look at this stuff from different perspectives and permissions after the fact.  Prepare for repetition where errors bubbled up thru parent ssis components.
    7)  get an answer on guids when ssis components r copied from place to place.  If a new guid isn't created, find a way (I think there is a tool for this), to generate a new guid for the new component.  I think a component guid column
    would be germane to a custom logging tool.  Similarly watch out for changing a component's guid once logging has begun. 

  • Creation of developement class,package and access key

    COULD ANYBODY EXPLAIN about
    creation of developement class,package and access key
    and who will create them?

    Working With Development Objects
    Any component of an application program that is stored as a separate unit in the R/3 Repository is called a development object or a Repository Object. In the SAP System, all development objects that logically belong together are assigned to the same development class.
    Object Lists
    In the Object Navigator, development objects are displayed in object lists, which contain all of the elements in a development class, a program, global class, or function group.
    Object lists show not only a hierarchical overview of the development objects in a category, but also tell you how the objects are related to each other. The Object Navigator displays object lists as a tree.
    The topmost node of an object list is the development class. From here, you can navigate right down to the lowest hierarchical level of objects. If you select an object from the tree structure that itself describes an object list, the system displays just the new object list.
    For example:
    Selecting an Object List in the Object Navigator
    To select development objects, you use a selection list in the Object Navigator. This contains the following categories:
    Category
    Meaning
    Application hierarchy
    A list of all of the development classes in the SAP System. This list is arranged hierarchically by application components, component codes, and the development classes belonging to them
    Development class
    A list of all of the objects in the development class
    Program
    A list of all of the components in an ABAP program
    Function group
    A list of all of the function modules and their components that are defined within a function group
    Class
    A list of all of the components of a global class. It also lists the superclasses of the class, and all of the inherited and redefined methods of the current class.
    Internet service
    A list of all of the componentse of an Internet service:
    Service description, themes, language resources, HTML templates and MIME objects.
    When you choose an Internet service from the tree display, the Web Application Builder is started.
    See also Integrating Internet Services.
    Local objects
    A list of all of the local private objects of a user.
    Objects in this list belong to development class $TMP and are not transported. You can display both your own local private objects and those of other users. Local objects are used mostly for testing. If you want to transport a local object, you must assign it to another development class. For further information, refer to Changing Development Classes
    http://help.sap.com/saphelp_46c/helpdata/en/d1/80194b454211d189710000e8322d00/content.htm
    Creating the Main Package
    Use
    The main package is primarily a container for development objects that belong together, in that they share the same system, transport layer, and customer delivery status. However, you must store development objects in sub-packages, not in the main package itself.
    Several main packages can be grouped together to form a structure package.
    Prerequisites
    You have the authorization for the activity L0 (All Functions) using the S_DEVELOP authorization object.
    Procedure
    You create each normal package in a similar procedure to the one described below. It can then be included as a sub-package in a main package.
    To create a main package:
    1.       Open the Package Builder initial screen (SE21 or SPACKAGE).
    2.       In the Package field, enter a name for the package that complies with the tool’s Naming Conventions
    Within SAP itself, the name must begin with a letter from A to S, or from U to X.
    3.       Choose Create.
    The system displays the Create Package dialog box.
    4.       Enter the following package attributes:
    Short Text
    Application Component
    From the component hierarchy of the SAP system, choose the abbreviation for the application component to which you want to assign the new package.
    Software component
    Select an entry. The software component describes a set of development objects that can only be delivered in a single unit. You should assign all the sub-packages of the main package to this software component.
    Exception: Sub-packages that will not be delivered to customers must be assigned to the HOMEsoftware component.
    Main Package
    This checkbox appears only if you have the appropriate authorization (see Prerequisites).
    To indicate that the package is a main package, check this box.
    5.       Choose  Save.
    6.       In the dialog box that appears, assign a transport request.
    Result
    The Change package screen displays the attributes of the new package. To display the object list for the package in the Object Navigator as well, choose  from the button bar.
    You have created your main package and can now define a structure within it. Generally, you will continue by adding sub-packages to the main package. They themselves will contain the package elements you have assigned.
    See also
    Adding Sub-Packages to the Main Package
    http://help.sap.com/saphelp_nw04/helpdata/en/ea/c05d8cf01011d3964000a0c94260a5/content.htm
    access key used for change standard program.
    www.sap.service.com

  • SSIS Package runs from the Package executer and from BIDS but not from the sql agent schedular

    Hi Experts,
    I have 2 packages :
    1. Main Package -For each loop package
    2. Sub Package - As we need to collect the information from several other DB with same table structures .
    The Main Package calls the Sub Package and loops through several linked server (9 of them ) .
    From last 2 weeks the scheduler is running on time but no data is loaded into our destination DB . 
    Daily i need to manually run the package .
    The SQL Agent task is scheduled using the service account from which  the sql server was installed on the server so it has the full privledges.
    If i run the Main package from the BIDS i see 2 messages related to the configuration of xml no error message and executes fine.
    If i run the Package from the execute package utility it runs fine.
    Now if the package is scheduled for a nightly load it executes fine successfully no error message also in the Job History
    but when i check for the data loaded on that day no data loads up in the destination DB . Due to this behavior of the sql agent even if am on leave i have to login on to the server and exec manually so if at times i forget the exec we are in big trouble
    Please experts help me in troubleshooting the issue.
    Thanks
    Priya

    Hi Visakh16 ,
    We are using a service account to run the package .. Earlier in the BIDS i was getting the error crypotgenic
    something password .. I googled out and changed the security : Protection Level : Dont save Sensitive
    information . So that error now its not showing in the BIDS
    And how is login mapping done for the linked servers?  You've configured a mapped login for the service account also?
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Difficult to get good package names with ojspc in automated build

    If I understand the documentation for "ojspc" correctly, there is an aspect of its functionality that makes it difficult to have a convenient automated build which can also get good package names for the generated Java source files.
    If you don't specify the "-packageName" option, ojspc will build a package name relative to the current directory, including sub-directories. However, specifying "-packageName" will ONLY use that package, and will not create sub-packages associated with sub-directories.
    If you don't use the "-packageName" option, then you have to run the build from the root directory of your JSP files. When you're running an automated build with ANT, it's not convenient to do this.
    The likely result of this is that I would have to make sure that all of my JSP files are named differently, even if they're in different directories, and use the "-packageName" option to specify a particular package name for all of the generated source files.

    After more careful reading, I realized that using the "-appRoot" option (without using "-packageName") makes it possible for an ANT build to generate good package names (with directories).
    The following note, however, in the ojspc documentation is kind of odd:
    "It is advisable that you run ojspc once for each directory of your JSP application, so files in different directories can be given different package names, as appropriate."
    I assume this is referring to using the "-packageName" option. If you don't need to use "-packageName", especially if you have multiple directories of JSP pages, it is much easier to just let ojspc pick the package names.

  • Package concept?

    Hi,
    I am confusing how to understand the term "package" in javacard.
    Is it similar concept in java? example, java.lang, java.io, ... are packages?
    if they are packages then do they have AIDs ?
    my own thought, the concept of package in javacard is not the same as in normal java. Package must have AID, and two different packages must have two different AID. Two same "package name, example java.lang", might belong to different packages.
    thanks,
    Hoang Long
    Edited by: CardM on Jul 11, 2011 2:24 AM

    safarmer wrote:
    Hi,
    You must start from the bottom up dependency wise. You can not have packages that have circular references. I have commented on this recently but it is to do with CAP file load order on the card.
    You can convert packages with sub packages but each package is converted individually regardless of if they are nested.
    Cheers,
    ShaneIn short, if i have 2 java packages: java.A and java.A.B
    There is no circular references. java.A uses classes in java.A.B. Am i able to convert java.A to CAP file without pre-converting java.A.B?
    (I am using converter companion with java card dev kit 2.2)
    ps: is there any conversion issue if i have deeper level of inheritance?
    thanks for your help,
    Hoang Long

  • What is package structure for Client ABAP Proxy?

    1.     What is the package structure need to be  followed for creating abap client proxy.
    2.     I read some where in the form, it need to be 4 levels. Why is it?
    Thank you
    Ganges Leaves

    Hi
    U hav to create a 4 level package structure for client ABAP proxy.
    U can create ur on packages
    1st level-structure package.
    2nd level-main package.
    3rd and 4th level-sub packages.
    To the 4th level only u hav to create proxy.
    The classes and code wil be automatically generated at the time of proxy creation.
    I think the 4 level structure bcz while in r/3 everythin in integration builder like software component version and all wil be takin as different levels.
    Also u can go through the weblogs in the above replies u got.
    Regards
    Victoria.

  • JDeveloper IDE - Displaying Packages in Application Navigator

    Hi All,
    I am using JDeveloper 11g Release 2.
    I want to customize how the packages are displayed in Jdeveloper. My application package name starts with com.fireblaze.xfb.appuc001 . and project packages are com.fireblaze.xfb.appuc001.model and com.fireblaze.xfb.appuc001.ui. Now in the model package I have further sub-packages like com.fireblaze.xfb.appuc001.model.queries, and many more...
    In my case, the Jdeveloper packages are displayed in application navigator are given below:
    com.fireblaze.xfb.appuc001.model
    com.fireblaze.xfb.appuc001.model.queries.main
    com.fireblaze.xfb.appuc001.model.queries.validators
    com.fireblaze.xfb.appuc001.model.queries.lovs
    com.fireblaze.xfb.appuc001.model.services
    What I want is like:
    com.fireblaze.xfb.appuc001
    --------------------------------------model
    -----------------------------------------------queries
    ----------------------------------------------------------main
    -----------------------------------------------------------------view 1
    -----------------------------------------------------------------view n
    ----------------------------------------------------------validators
    -----------------------------------------------------------------------view 1
    -----------------------------------------------------------------------view n
    ----------------------------------------------------------lovs
    ---------------------------------------------------------------view 1
    ---------------------------------------------------------------view n
    -----------------------------------------------services
    How to achieve it in JDeveloper 11g?
    Any help will be appreciated.
    Thanks in advance
    Regards
    Bilal

    hi user,
    Create Package. and use the source directory box. properly :)
    updated lately.
    i hope that you are looking for like this.
    while creating your eo,vo,am you may see package..
    in that you should specify
    "while creating your eo:"
    com.xxx.model.*eo*"while creating your vo"
    com.xxx.model.*vo*"while creating your am"
    com.xxx.model.*am*

  • Problem with package creation

    Hi ,
    I created package name  BBP_ESI, with the following information:
    Appl. Component - MM
    software component - SAP_APPL
    Assign BBP_ESI as a sub package to PI-B2B .
    1, Where can i find  Allowed Objects types in the package creation ,i am using SAP  6.0 version .
    2, When i create a report and save it in this package BBP_ESI, its giving error Customer object PROG ZFCI_BBP_ESI_IDOC_SETUP cannot be assigned to package BBP_ESI . Please let me know why i am getting this error .
    Thanks In Advance .
    Regards,
    Neelima

    see SAP documentation for package naming convention:
    Packages
    The following namespaces are available for packages:
    Package names beginning with a letter from A to S, or from U to X.
      Package names beginning with these letters are reserved for objects of the SAP standard system from the SAP namespace. You cannot create customer objects or objects from prefix namespaces in these packages.
    Note that the package name must be no more than 30 characters long. The name of the main package should reflect the content of the package Adjacent packages should have similar names.
    The Transport Organizer records changes to objects in these packages, so that they can be transported.
    These packages belong to the "SAP" transport layer and are assigned to an SAP software component (such as SAP_BASIS, SAP_APPL).
    Package names beginning with Y or Z
      You can create customer-specific objects from the customer namespace in these packages.
    The Transport Organizer records changes to objects in these packages, so that they can be transported, provided the SAP System has been set up appropriately. (For more information, see Setting the System Change Option). These packages are assigned to the software component HOME.
    So create the packages accordingly...

  • [solved] Can pacman find out the dependence tree of a package ?

    like xfce4-session:
    ➜  Android  pacman -Qi xfce4-session
    Name           : xfce4-session
    Version        : 4.8.2-2
    URL            : http://www.xfce.org/
    Licenses       : GPL2
    Groups         : xfce4
    Provides       : None
    Depends On     : xfce4-panel  gconf  libgnome-keyring  libwnck  libsm  xorg-iceauth  upower  consolekit  hicolor-icon-theme
    Optional Deps  : fortune-mod: for xfce4-tips
    Required By    : None
    Conflicts With : None
    Replaces       : xfce4-toys
    Installed Size : 2556.00 K
    Packager       : Evangelos Foutras <[email protected]>
    Architecture   : i686
    Build Date     : Wed 02 Nov 2011 10:32:54 PM HKT
    Install Date   : Wed 07 Dec 2011 02:10:28 PM HKT
    Install Reason : Explicitly installed
    Install Script : Yes
    Description    : A session manager for Xfce
    I also want to know xfce4-panel depends on,. ... etc.
    only Use one cmd??
    Last edited by jinleileiking (2011-12-12 02:34:11)

    Hmm. Wouldn't be hard to script. Just recursively call "pacman -Qi <sub-packages>" based on the output of "pacman -Qi <package> | grep Depends" ...

  • 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

Maybe you are looking for