[Design of POJO Server] - Re: SerializableDeploymentRepository notions
by scott.stark@jboss.org
"bill.burke(a)jboss.com" wrote : I'm thinking of:
|
|
| | DeploymentContext.getAttachments().addAttachment(key, value, List<VirtualFile> metaSources);
| |
|
| Then, when getAttachment() is called, DC scans and checks to see if that attachment should be killed.
|
It should be the repository that scans the deployment and throws aways preprocessed content, not the DC. The repository could already have an index of metadata files, etc. I would rather have the api just provide the DC relative metadata file path than the full VirtualFile.
"bill.burke(a)jboss.com" wrote :
| Also, there should be additional methods on DeploymentContext:
|
|
| | getAttachments();
| | getManagedObjects();
| |
|
| These attachments would actually be serialized with the profile while getTransientAttachments() would not.
|
| If i'm being too obvious, then apologies.
|
There is no difference between getAttachments() and getManagedObjects(). Both are attachments, or are you saying you want to express a DC ManagedObject at that level rather than use the ManagedObjectBuilder:
| public interface ManagedObjectBuilder
| {
| /**
| * Build managed objects for this deployment context
| *
| * @param unit the deployment unit
| * @param managedObjects the managed objects
| * @throws DeploymentException
| */
| void build(DeploymentUnit unit, Map<String, ManagedObject> managedObjects) throws DeploymentException;
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002948#4002948
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002948
19 years, 2 months
[Design of AOP on JBoss (Aspects/JBoss)] - Update to maven pom.xml
by pgier
I updated the maven build script (pom.xml) because I noticed a couple things weren't working (missing dependencies, some files not compiling).
A couple things to note: the JRockit source files are skipped because they are dependent on a file not in the maven repo. And the JUnit tests are skipped for now. But the project builds ok, and I put a snapshot version in the maven repository.
| <project xmlns="http://maven.apache.org/POM/4.0.0"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
| <modelVersion>4.0.0</modelVersion>
| <groupId>jboss</groupId>
| <artifactId>jboss-aop</artifactId>
| <packaging>jar</packaging>
| <version>snapshot</version>
| <name>Maven Quick Start Archetype</name>
| <url>http://maven.apache.org</url>
|
| <repositories>
| <repository>
| <id>jboss</id>
| <name>JBoss Inc. Repository</name>
| <layout>default</layout>
| <url>http://repository.jboss.com/maven2/</url>
| <snapshots>
| <enabled>true</enabled>
| </snapshots>
| </repository>
| </repositories>
|
| <build>
| <sourceDirectory>src/main/</sourceDirectory>
| <testSourceDirectory>src/test/</testSourceDirectory>
| <plugins>
| <plugin>
| <groupId>org.apache.maven.plugins</groupId>
| <artifactId>maven-compiler-plugin</artifactId>
| <configuration>
| <source>1.5</source>
| <target>1.5</target>
| <excludes>
| <exclude>org/jboss/aop/hook/JRockit*</exclude>
| </excludes>
| </configuration>
| </plugin>
| <plugin>
| <groupId>org.apache.maven.plugins</groupId>
| <artifactId>maven-surefire-plugin</artifactId>
| <configuration>
| <skip>true</skip>
| </configuration>
| </plugin>
| </plugins>
| </build>
|
| <dependencies>
| <dependency>
| <groupId>ant</groupId>
| <artifactId>ant</artifactId>
| <version>1.6.5</version>
| </dependency>
| <dependency>
| <groupId>javassist</groupId>
| <artifactId>javassist</artifactId>
| <version>3.4.GA</version>
| </dependency>
| <dependency>
| <groupId>jboss</groupId>
| <artifactId>jboss-dependency</artifactId>
| <version>2.0.0.Beta</version>
| </dependency>
| <dependency>
| <groupId>jboss</groupId>
| <artifactId>jboss-container</artifactId>
| <version>2.0.0.Beta</version>
| </dependency>
| <dependency>
| <groupId>jboss</groupId>
| <artifactId>jboss-test</artifactId>
| <version>1.0.1.GA</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>jboss.profiler.jvmti</groupId>
| <artifactId>jboss-profiler-jvmti</artifactId>
| <version>1.0.0.CR5</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>junit</groupId>
| <artifactId>junit</artifactId>
| <version>3.8.1</version>
| <scope>test</scope>
| </dependency>
| <dependency>
| <groupId>oswego-concurrent</groupId>
| <artifactId>concurrent</artifactId>
| <version>1.3.4</version>
| </dependency>
| <dependency>
| <groupId>qdox</groupId>
| <artifactId>qdox</artifactId>
| <version>1.6</version>
| </dependency>
| <dependency>
| <groupId>trove</groupId>
| <artifactId>trove</artifactId>
| <version>2.1.1</version>
| </dependency>
| </dependencies>
|
| <distributionManagement>
| <repository>
| <id>cvs-file-repository</id>
| <!-- Set maven.cvs.root in your maven/conf/settings.xml
| See http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossCommonProject
| -->
| <url>file://${maven.cvs.root}</url>
| </repository>
| </distributionManagement>
|
| </project>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002930#4002930
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002930
19 years, 2 months
[Design of POJO Server] - Re: bean/mbean integration issue
by alesj
I separated the DispatchContext into two interfaces = AttributeDispatchContext and InvokeDispatchContext:
| public interface AttributeDispatchContext
| {
| /**
| * Getter property / attribute
| *
| * @param name
| * @return target's property / attribute instance
| * @throws Throwable
| */
| Object get(String name) throws Throwable;
|
| /**
| * Setter property / attribute
| *
| * @param name
| * @param value set target's property / attribute instance
| * @throws Throwable
| */
| void set(String name, Object value) throws Throwable;
| }
|
| public interface InvokeDispatchContext extends AttributeDispatchContext
| {
| /**
| * Invoke method / operation
| *
| * @param name
| * @param parameters
| * @param signature
| * @return inovocation's return object
| * @throws Throwable
| */
| Object invoke(String name, Object parameters[], String[] signature) throws Throwable;
|
| /**
| * Get any target
| *
| * @return the target
| */
| Object getTarget();
|
| /**
| * Get context's classloader.
| * Used when determining type info for parameter and
| * getting the parameter actual value.
| *
| * @return context's classloader
| * @throws Throwable
| */
| ClassLoader getClassLoader() throws Throwable;
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4002917#4002917
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4002917
19 years, 2 months